Skip navigation
Log in to follow, share, and participate in this community.

Recent Activity

CIP7
I'm doing two calls with the following format https://piserver/piwebapi/streams/{webid}/interpolated/?starttime=2020-07-14%2023:00&endtime=2020-07-16%2000:00&interval=5m   Which each return something like this: { "Links": {}, "Items": [ { "Timestamp": "2020-07-15T05:00:00Z", "Value": 596, "UnitsAbbreviation": "", "Good": true,… (Show more)
Milanez
Hello friends, how are you?   Is it possible to do a web api call to get all elements, attributes and values in a single query?   Also, is it possible to filter the response to reduce the size of the json array?
CIP7
Can I make one query for the average value over an hour for multiple consecutive hours in the day?   I can get the average from over 1 hour using streams/{webID}/summary   and I can get individual values at regular intervals using streams/{webID}/plot   but I'd like one query that returned the average value over a time span for multiple… (Show more)
jkim
Use this thread to describe a use case for the PI Web API, why you would choose it over the AFSDK or PI SQL family of Products. If you are taking the Programming in PI Web API online course in order to implement a project at your organization, we'd like to hear about your particular use case.
Milanez
1. Register for Stream Updates to the "\\PIAF\Nugreen\Nugreen\Houston\Cracking Process\Equipment\B-210|Fuel Gas Flow” attribute   HTTP Verb: POST URL: https://HostName/piwebapi/streams/WebId/updates Request Body: (null)   2. Delete the current value for this attribute using Fiddler   HTTP Verb: POST URL:…
Milanez
1. Using AF Search, query for the elements on the PIAF AF Server in the NuGreen Database using the Element “Process” HTTP Verb: GET URL: https://HostName/piwebapi/elements/search?databaseWebId=WebId&query=templateName:=Process Request Body: (null)   2. Using AF Search, query for the elements on the PIAF AF Server in the NuGreen Database using the…
Milanez
!!! Remember to add the Content-Type: application/json at the header !!!   1. Use a batch request to retrieve all the Asset Servers and Data Archives for your PI Web Instance 1.1)     Ensure that the Data Archives are returned prior to the Asset Servers in the response   {   "DataArchives": {     "Method": "GET",     "Resource":…
Milanez
The following should be done using Fiddler, PostMan, or another non-browser application capable of making HTTP requests   1. Retrieve the interpolated data for the CDT158 point every minute for the past two hours   First execute https://localhost/piwebapi/points?path=\\DataArchiveName\CDT158 to get the webid. Then…
Cristhy
¿Explicar cómo determinar la diferencia entre WebId versión 1 y versión 2? WebId has two version. PRE-2017 R represents the first version and it can be identified by the second digit of the string because it is cero. POST-2017 R is the second version. It has the number one on the second position of the string. 
Load more items