-
Notifications
You must be signed in to change notification settings - Fork 0
timestreams.add_measurement XML RPC procedure
Timestreams is an API that provides functions to add and organise sensor data. This page describes the timestreams.add_measurement XML-RPC API procedure.
A POST request containing this procedure name will add a single measurement to a measurement container for a given blog's device. This procedure returns the value 1 indicating that a record was added. The following is the procedure call signature required to add a measurement:
<methodCall> <methodName>timestreams.add_measurement</methodName> <params> <param><value><string>User Name</string></value></param> <param><value><string>Password</string></value></param> <param><value><string>Measurement Container Name</string></value></param> <param><value><string>Measurement Value</string></value></param> <param><value><string>Timestamp</string></value></param> </params> </methodCall>
Parameter | Description |
---|---|
User Name | Name of blog user |
Password | Password of blog user |
Measurement Container Name | Value returned from timestreams.create_measurements |
Measurement Value | The reading |
Timestamp | Time the reading was taken in ('1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC). If this parameter is excluded then the current time from the server will be stored. |
<?xml version="1.0"?> <methodResponse> <params> <param> <value> <int>1</int> </value> </param> </params> </methodResponse>