AnsweredAssumed Answered

Get bulk interpolated data through Pi Web API

Question asked by JensPr on Jun 23, 2016
Latest reply on Jun 24, 2016 by JensPr

I am trying to get one day hourly data for a larger set of tags (100-150) at the same time.

What is the best approach to do so?

 

I tried:

https://piafhar-sto-01/piwebapi/streamsets/s03rCkp0judEazHPxrmYHHRQUElIQVItU1RPLTAx/interpolated?nameFilter=TK?T*

Where the webId "s03r..." is the webId of the dataserver the tags are on. The name filter should limit the retrieved data.

But obviously this approach does not work (see below response from the API).
Otherwise I would something like a "loop-in-a-loop": The outer one looping the tags and the inner making an individual call to the web API.
But this would end up in 100+ individual calls over the network. Is this the best way?

 

Response:

Help pages: PI Web API Help > StreamSet > GetInterpolated


{ "Errors": [ "Unsupported operation: only an element, event frame or attribute may be requested for stream sets." ] }

Outcomes