4 api commands, 1 command syntax, 2 data access commands – Campbell Scientific RTMC Pro Real-Time Monitor and Control Professional Software User Manual

Page 61: Api commands, Command syntax, Data access commands, 4 api comm, Ands

Advertising
background image

RTMC Pro

and

s the

Pub

rd file.

Whe

the OK button on the Website .csipasswd File Editor dialog

box in Web Publisher, this file is stored to your computer. When you press the

e

herefore, if you have made changes to the .csipasswd file

from DevConfig, they will be overwritten when you press the Publish Website

4.4 API Comm

4.4.1 Command Syntax

the form of:

ts

me

erver:CR1000:onemin.TempF

he

ut. If the

ssociated

d (&). Some

ts in a

ir defaults are

noted in the descriptions below.

nds return a response code indicating the result of the command.

4.4.2 Data Access

DataQuery allows a web client to poll a data source or datalogger for data. The

access levels you want to be available and press the OK button. Pres

lish Website button to publish the website and send the new passwo

n you press

Publish Website button, this file will be sent to the datalogger and will
overwrite the current .csipasswd file. Note that when you press the Edit
Password File
button, you are editing the file stored on your computer, not th
one stored on the datalogger. This file does not contain any changes made
using DevConfig. T

button.

ands

The CSI Web Server supports an HTTP API interface for accessing data from
data sources defined in the RTMC projects running on the web server. These
commands can also be used to access data from CR800, CR1000, and CR3000
dataloggers directly. The CGI-style request syntax is designed to be flexible
and easy to use.

Syntax for the commands sent to the web server generally follows

URL?command=CommandName&uri=DataSource&argumen

The DataSource = source_name:station_name.table_name.field_na

For example, S

The station_name applies only to LoggerNet Server data sources. If t
field_name is not specified, all of the fields in the table will be outp
field_name refers to an array without a subscript, all of the values a
with that array will be output.

Arguments are appended to the command string using an ampersan
commands have optional arguments, where omitting the argument resul
default being used. When applicable, optional arguments and the

Some comma
These are described below where applicable.

Commands

DataQuery

command returns one or more fields, or one or more records, from a table in
the data source or datalogger. DataQuery has the following parts:

URI

The URI specifies the data source for the query.

55

Advertising