beautypg.com

Table 87. api commands, parameters, and arguments – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 366

background image

Section 8. Operation

366 

 

 

JSON Response

When

json

is entered in the DataQuery

format

parameter, the response will be

formatted as CSIJSON. Following is an example response:

{
.."head": {
...."transaction": 0,
...."signature": 26426,
...."environment": {
......"station_name": "Q2",
......"table_name": "BallastLine",
......"model": "CR1000",
......"serial_no": "18583",
......"os_version": "CR1000.Std.25",
......"prog_name": "CPU:IndianaHarbor_081712.CR1"
....},
...."fields": [{
......"name": "Induced_Water",
......"type": "xsd:float",
......"process": "Smp",
......"settable": false}]
},
......"data": [{
......"time": "2012-08-21T22:41:50",
......"no": 104,
......"vals": [66]
},{
......"time": "2012-08-21T22:42:00",
......"no": 105,
......"vals": [66]
},{
......"time": "2012-08-21T22:42:10",
......"no": 106,
......"vals": [66]
},{
......"time": "2012-08-21T22:42:20",
......"no": 107,
......"vals": [66]
},{
......"time": "2012-08-21T22:42:30",
......"no": 108,
......"vals": [66]
}]}

TOA5 Response

When

toa5

is entered in the DataQuery

format

parameter, the response will be

formated as Campbell Scientific TOA5. Following is an example response:

"TOA5","TXSoil","CR1000","No_SN","CR1000.Std.25","TexasRun_1b.CR
2","12645","_1Hr"
"TIMESTAMP","RECORD","ID","_6_inch","One","Two","Three","Temp_F_
Avg","Rain_in_Tot"
"TS","RN","","","","","","",""
"","","Smp","Smp","Smp","Smp","Smp","Avg","Tot"
"2012-05-03 17:00:00",0,0,-0.8949984,-0.95232,-0.8949984,-
0.8637322,2.144136,0.09999999
"2012-05-03 18:00:00",1,0,-0.9106316,-0.9731642,-0.9210536,-

0.8845763,72.56885,0