May I ask how do I put in the start time, end time, frequency filters? Thanks!
May I ask how do I put in the start time, end time, frequency filters? Thanks!
Hi Guangyi ,
The Stream GetRecorded action takes in starttime and endtime parameter.
If you'd like to 'sample' data from the recorded values, then please try Stream GetInterpolated instead.
Please also note that there is a bulk version of streams, streamset if you'd like a multiple datapulls at once.
Hi (Missing Content),
I found the Time Strings page, but I'm still having trouble passing the dates I'd like to request. For example, if I want to request data from 1/1/23-2/1/23, what would the datetime format be?
Thanks (Missing Content), I got the call to work however I've run into another issue where the response only contains eight days worth of data instead of the requested month's worth. Do you happen to know why this would be? I've already verified that the tag contains all of the data I'm calling for.
(Missing Content) I've verified the data via the Excel add-in (pulls the whole month) and also plotting it in PI Vision. I'm unsure which piwebapi controller I'm querying.
(Missing Content) Apologies, thought you meant something else. My controller/endpoint is the same (/streams/[WebId]/recorded). The data for the tag I'm calling is already structured how I need it, I'm just running into this roadblock for some reason as far as automation goes. Could it be a server configuration for the API?
Hi Mike Rugh ,
I imagine you could put one as:
startTime=Jan 1 2023&endTime=Feb 1 2023.
Typically it's good to insert the year with 4 digits.
I'll need more detail to understand your issue. May I ask how you verified your data? and which piwebapi controller did you query data from?
Mike Rugh , The piwebapi controller can be found from the URL you are querying.
In the case above, it's /streams/<WebIDs>/recorded.
Excel(PI DataLink) functions could also be broken further into getting Sampled(interpolated) data and compressed(recorded) data.
maxCount parameter limits API to return only 1k rows, data points back.
You could try modifying this param.
/streams/webid/recorded?start&end&maxCount=xxxxx
maxCount parameter limits API to return only 1k rows, data points back.
You could try modifying this param.
/streams/webid/recorded?start&end&maxCount=xxxxx