qgc

PI json interface

Discussion created by qgc on Oct 23, 2013
Latest reply on Jan 30, 2018 by jyi

Hello all

 

I have a php web service that returns json as follows.

 
{"time":1382509126,"temp0":29.25,"temp1":29.312}

Ignore the time (unix time) as it is the time the php script is executed.

 

I wish to historise the temp0 and temp1 values in two PI tags.

 

I have wrapped the php up in some html, and used the PI HTML interface to get the data into PI tags.

 

But this got me thinking, how can I get the data directly from the json web service.

 

Any ideas?

 

 

 

Thanks

 

Cheers MG

Outcomes