AnsweredAssumed Answered

Getting the difference between two tags over a range

Question asked by CIP7 on Jul 16, 2020
Latest reply on Jul 28, 2020 by 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,
"Questionable": false,
"Substituted": false
},
{
"Timestamp": "2020-07-15T05:30:00Z",
"Value": 268,
"UnitsAbbreviation": "",
"Good": true,
"Questionable": false,
"Substituted": false
},
{
"Timestamp": "2020-07-15T06:00:00Z",
"Value": 276,
"UnitsAbbreviation": "",
"Good": true,
"Questionable": false,
"Substituted": false
},

...

 

What I really want is the difference between the two for each discrete value.

 

Is that possible with one call?

 

Thanks for your help

Outcomes