Campbell Scientific CSI Web Server User Manual

Page 28

Advertising
background image

CSI Web Server

URI

The URI can be specified as URI=source_name:station_name.
For direct datalogger access, the URI can be omitted.

Expr

Specifies the path and file pattern for the desired file to be
returned. Path determines the drive on the datalogger, i.e.,
CPU:, USR:, or CRD:. The file pattern can incorporate the use
of wildcards. If the path is omitted or invalid, or a file
matching the pattern does not exist, an Unrecognized Request
response will be returned.

NewestFile requires a minimum access level of Read Only.

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 newest file with a *.jpg extension from the USR drive of the

CR1000 in the LoggerNet server data source:

http://192.168.4.14/weather/?command=newestfile&uri=Server:CR1000&
expr=USR:*.jpg

• To return the newest *.cr1 file from the CPU drive of the CR1000 in the

LoggerNet server data source:

http://192.168.4.14/weather/?command=newestfile&uri=Server:CR1000&
expr=CPU:*.cr1

Datalogger

In these examples, you are directly accessing the datalogger at 192.168.12.55.

• To retrieve the newest *.jpg file on the datalogger’s USR drive:


http://192.168.12.55/?command= NewestFile&expr=USR:*.jpg

• To retrieve the newest *.cr1 file on the datalogger’s CPU drive:


http://192.168.12.55/?command= NewestFile&expr= CPU:*.cr1

ListFiles

When accessing data through the CSI Web Server, the ListFiles command
returns a list of all files stored on the specified station. When accessing a
datalogger directly, the ListFiles command returns a list of files stored in the
specified directory (/CPU, /USR, /CRD, /USB) of the datalogger. The ListFiles
command requires a minimum security level of Read Only.

URI

The URI can be specified as URI=source_name:station_name.
For direct datalogger access, the URI is omitted.

22

Advertising