How do you find the associated WebID in the Web API based on the attribute drilling down in PI System Explorer? I'm using the WebID in the URL in Fiddler to get data.
While there is a relationship between the WebId and the attribute path, you are not able to get the WebId based solely on the path. The correct way to get this information is to make a call to the Web API to get the WebId and then use that returned WebId in subsequent calls.
For example, you can get an attribute by doing a call like this:
From this call, extract the WebID and then do to get the current value:
This formula may be simplified in the future but this approach should always work.
Good morning. I hope you had a great weekend. Would you please confirm that this looks right?
For example, you can get an attribute by doing a call like this: https:///attributes?path=path\to\attribute|
server = ALXAPAP682
path = ALXAPAP682\SoCo\Generation\SPC\Wind\Kay
attribute = WindSpeedAverage
Southern Power IT
30 Ivan Allen Jr Blvd., NW
Atlanta, GA 30308
I forgot the webapi part of the url in my first post so yours should be:
This is provided that your Web API Server and AF Server are on the same machine. If they are on different ones, use the Web API server for the first ALXAPAP682 and the AF server for the second one.
Thank you for your quick response. I tried the following 2 URLs.
"Not found: 'ALXAPAP682SoCoGenerationSPCWindKay|WindSpeedAverage'. Cannot connect to server 'ALXAPAP682'. Please examine connectivity to the remote PI AF Server as well as ensuring the impersonated client user can be delegated to the server."
It looks like you forgot the leading \\ on the server.
If this fails, also make sure that the path is valid. Dig down to Kay in PI System Explorer and make sure we aren't missing any elements in the path and also make sure that everything is spelled correctly.
Good afternoon. I tried to do that but it’s not working. I pasted the email chain below. Please advise. Thank you.
Have you tried clicking the "Proceed to alxapap" link at the bottom? This error is just informing you that the certificate is not trusted but if you or your company installed this Web API then there is nothing to worry about.
I got it to work with by adding piwebapi below. Thank you.
Retrieving data ...