Campbell Scientific CSI Web Server User Manual
Page 21

CSI Web Server
Backfill – The interval, in seconds, for the backfill (e.g., 3600
would be 1 hour).
Format
The Format is the format in which to return the data. Options
are HTML, JSON, TOA5, TOB1, XML.
If a value of json is specified for the format parameter and the
web server has a large data set to send, the web server may
choose to break the data into multiple requests by specifying a
value of true for the more flag in the JSON output. If this flag is
set to true, the user will need to send another request to get the
additional data.
NOTE
Examples
CSI Web Server
In these examples, you are accessing data through the CSI Web Server at
address 192.168.4.14. The RTMC project is published to the remote folder
Weather.
• To return the three most recent values from the PTemp variable in the
OneMin table of the CR1000 in the LoggerNet server data source:
http://192.168.4.14/weather/?command=dataquery&uri=Server:CR1000.o
nemin.ptemp&format=html&mode=most-recent&p1=3
• To return all values since Oct 1, 2011, of the TempF variable in the
CR1000_OneMin table of the Database data source:
http://192.168.4.14/weather/?command=dataquery&uri=Database:CR1000
_OneMin.TempF&format=html&mode=since-time&p1=2011-10-01
• To return all values between Sept 1, 2011, and Oct 1, 2011, of the TempF
variable in the OneMin table of the DataFile data source:
http://192.168.4.14/weather/?command=dataquery&uri=DataFile:OneMin.
TempF&format=html&mode= date-range&p1=2011-09-01&p2=2011-10-
01
• To return all values since Oct 1, 2011, at 10:00 a.m. from the PTemp
variable in the OneMin table of the CR1000 in the LoggerNet server data
source:
http://192.168.4.14/weahter/?command=dataquery&uri=Server:CR1000.o
nemin.ptemp &format=html&mode=since-time&p1=2011-10-
01T10:00:00
Datalogger
In these examples, you are directly accessing the datalogger at 192.168.12.55.
• To return all records since record 14400 of TempF in the OneMin table of
the datalogger at 192.168.12.55:
15