Campbell Scientific CSI Web Server User Manual
Page 29
CSI Web Server
Format
The Format is the format in which to return the list of files.
Options are HTML, JSON, and XML.
ListFiles returns the following, formatted in a table:
Path
The path of the file or directory, relative to the URL.
Is Directory
A Boolean value that indicates whether or not the returned
object is a directory.
Size
An integer that provides the size of a file in bytes, or the
number of bytes free in a directory.
Last Write
A string that specifies the date and time a file was last written
(returned for files only).
Run Now
A Boolean value that indicates whether or not the file (a
datalogger program) is marked by the datalogger file system as
currently running.
Run On
Power Up
A Boolean value that indicates whether or not the file (a
datalogger program) is marked by the datalogger file system as
run on power up.
Read Only
A Boolean value that indicates whether or not the file is
marked by the datalogger file system as read-only.
Paused
A Boolean value that indicates whether or not the file (a
datalogger program) is marked by the datalogger file system as
paused.
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 see all files on the CR1000 in the LoggerNet server data source:
http://192.168.4.14/weather/?command=ListFiles&uri=Server:CR1000&fo
rmat=html
Datalogger
In this example, you are directly accessing the datalogger at 192.168.12.55.
• To return all files on the datalogger’s USR: drive:
http://192.168.12.55/USR/?command= ListFiles&format=html
23