4 file management commands, File management commands – Campbell Scientific CSI Web Server User Manual

Page 27

Advertising
background image

CSI Web Server

6

Communication with the station failed
(LoggerNet data sources only)

7

Communication with the station disabled
(LoggerNet data sources only)

8

Blocked by datalogger security

9

Invalid station name (LoggerNet data sources
only)

10

LoggerNet device is busy (LoggerNet data
sources only)

11

Specified URI does not reference a LoggerNet
station (LoggerNet data sources only)

Results codes marked as (LoggerNet data sources only) are
applicable only when the API is being used with a CSI web
server.

Examples

CSI Web Server

In this example, 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 set the clock of the CR1000 in the LoggerNet server data source to

November 1, 2011, 12:26:00:

http://192.168.4.14/weather/?command=clockset&uri=Server:CR1000&fo
rmat=html&time=2011-11-01T12:26:00

Datalogger

In this example, you are directly accessing the datalogger at 192.168.12.55.

• To set the clock of the datalogger to November 1, 2011, 12:26:00:


http://192.168.12.55/?command=clockcheck&format=html&time=2011-
11-01T12:26:00

4.4 File Management Commands

NewestFile

The NewestFile command will return the most recent file that matches a given
expression, as defined by the expr argument. This command can be used to
display the most recent image stored to the datalogger by a camera. The
command will return other files, as well, and the file will be processed based
on the settings in the web client (for instance, if the specified file is a CR1 file
and the command is entered into a browser, the browser may prompt for the
file to be saved or for selection of the program to open the file).

21

Advertising