Currently looking into ways to save a few seconds when initially loading a PI Vision display with a custom symbol (or many). Not needing the round trip to get the WebID's would save some time, so let's move on to WebID 2.0!
I know, a batch call could both get the WebIDs and the data, but i already have a complicated multi-stage batch call so i don't want to overcomplicate that one. Errorhandling is a pain with these batch calls!
But a bit uncertain how to proceed:
- I could do the encoding myself using the Path only in JS based on a parsed Path received in the symbol DataUpdate
- I could use the library for AngularJS, but that seems a bit overkill: GitHub - osimloeff/PI-Web-API-Client-AngularJS: PI Web API Client library for AngularJS generated using the Swagger spec…
Any suggestions / experiences? (or source code... ). Did not see a PI Vision custom symbol yet that leverages the WebID 2.0 for PI Web API calls