Please refer to the PI Web API Advanced TechCon Lab 2016:
GitHub - osimloeff/techcon-2016-piwebapi-advanced: This is the lab for 'Advanced PI Web API' in TechCon 2016.
techcon-2016-piwebapi-advanced/piwebapiSolution.js at master · osimloeff/techcon-2016-piwebapi-advanced · GitHub
Hope this helps!
Would this be sufficient or do you need an example that includes Angular/jQuery?
Thank you Paul! This should get me started. I will get back if I have more questions.
I'd check out Lonnie Bowling blog post about Creating a Real-Time Dashboard Using AngularJS and OSIsoft PI Web API. This was used in a lab at the last UC and later converted to YouTube videos, he's also posted the source code.
FYI, it's using Angular 1. If you have questions about Angular 2 I'm doing a bit of work using Angular 2 at the moment.
Thank you Alan! I will check it out.
Just realized the example doesn't have any websocket implementations, it's purely AngularJS and PI Web API. I'd suggest looking for an Angular library for web sockets, I wouldn't be surprised if there were a half dozen of them. I think this library would have all the examples/functionality you would need.
Using Angular2 you can use RxJS as well. (Not that you can't in Angular 1, it's just not baked into everything.)
Thank you Marcos!
I understand the resources mentioned by Marcos Vainer Loeff contained the information you've been after. Please allow me to mark it the Correct Answer.
Retrieving data ...