beautypg.com

Campbell Scientific CSI Web Server User Manual

Page 20

background image

CSI Web Server

When querying through the CSI Web Server, that data source
is specified as
source_name:station_name.table_name.field_name. (Note the
station_name applies only to LoggerNet Server data sources.)
For example, the data source for the PTemp field in a
CR1000's Public table in a LoggerNet Server data source
would be:

Uri=Server:CR1000.Public.PTemp

When querying the datalogger directly, the data source is
specified as table_name.field_name. For example, the data
source for the PTemp field in a datalogger's Public table would
be:

Uri=Public.PTemp

Note that field_name is optional. If omitted, all values in the
table will be returned.

Mode

The Mode specifies the timeframe for the data to be returned.
Valid options are:

most-recent – Returns the data from the most recent number of
records. The number of records is specified by P1.

since-time – Returns all the data since a certain time. The time
is specified by P1.

since-record – Returns all the records since a certain record
number. The record number is specified using P1.

data-range – Returns the data in a certain date range. The date
range is specified using P1 and P2.

Backfill – Returns all the data that has been stored since a
certain time interval (for instance, all the data since 1 hour
ago). The interval is specified using P1.

P1/P2

P1 and P2 are used to set the time parameters for Mode:

most-recent – The maximum number of records to return.

since-time – The start time for the data. Format = YYYY-MM-
DD T:HH:MM:SS.MS. Time (T) is optional; if only the date is
specified, Time is assumed as midnight. When specifying time,
MS is optional.

since-record – The starting record number.

data-range – The start time (P1) and end time (P2) for the data.
Format = YYYY-MM-DD THH:MM:SS.MS. Time (T) is
optional. If only the date is specified, Time is assumed as
midnight. When specifying time, MS is optional.

14