Differences

This shows you the differences between two versions of the page.

Link to this comparison view

aql:point_list [2020/01/12 11:30]
optrix created
aql:point_list [2020/01/30 22:34] (current)
optrix
Line 17: Line 17:
 |value|A human-readable version of the value| |value|A human-readable version of the value|
 |rawvalue|A numeric, computer-readable version of the value| |rawvalue|A numeric, computer-readable version of the value|
-|history|//​(Optional)//​ A list of key-value pairs containing the requested history|+|history|//​(Optional)//​ A list of key-value pairs containing the requested history, in the format ( //​timestamp//,​ //value// )| 
 + 
 + 
 +This is an example JSON record... 
 + 
 +------ 
 +   { 
 + "​query":​ "​('​TE101'​) ASSET ('​Temperature - Stove'​) PROPERTY VALUES { \"​start\":​ \"​2020-01-02 00:​00:​00\",​ \"​end\":​ \"​2020-01-02 00:​01:​00\",​ \"​grain\":​ -1 } GETHISTORY",​ 
 + "​results":​ [{ 
 + "​type":​ "​pointlist",​ 
 + "​value":​ [{ 
 + "​assetid":​ "​58",​ 
 + "​sourceid":​ "​58",​ 
 + "​value":​ 1451, 
 + "​rawvalue":​ 1451, 
 + "​propid":​ 37, 
 + "​fullvalue":​ "0| Deg C|0|1600|0",​ 
 + "​type":​ "​MEASUREMENT",​ 
 + "​name":​ "Stove #1 Pile Temp Sensor",​ 
 + "​units":​ " Deg C", 
 + "​min":​ "​0",​ 
 + "​max":​ "​1600",​ 
 + "​places":​ "​0",​ 
 + "​propname":​ "​Temperature - Stove",​ 
 + "​ern":​ "​TE101",​ 
 + "​history":​ [ 
 + ["​2020-01-02 12:​00:​00",​ "​1017.567"​] 
 +
 + }] 
 + }] 
 +   } 
 +  -----