Skip to content

timestreams.create_measurements XML RPC procedure

pszjmb1 edited this page Jul 12, 2012 · 5 revisions

Timestreams is an API that provides functions to add and organise sensor data. This page describes the timestreams.create_measurements XML-RPC API procedure.

Description

A POST request containing this procedure name will create a new measurement container for a given blog's device. This allows measurements to subsequently be added to the container. Calling this procedure returns the name of the newly created measurement container.

The following is the procedure call signature required to create a new measurements container: <methodCall> <methodName>timestreams.create_measurements</methodName> <params> <param><value><string>User Name</string></value></param> <param><value><string>Password</string></value></param> <param><value><string>Measurement Type</string></value></param> <param><value><string>Minimum Value</string></value></param> <param><value><string>Maximum Value</string></value></param> <param><value><string>Unit</string></value></param> <param><value><string>Unit Symbol</string></value></param> <param><value><string>Device Details</string></value></param> <param><value><string>Other Information</string></value></param> <param><value><string>Data Type</string></value></param> <param><value><string>Missing Data Value</string></value></param> </params> </methodCall>

Parameter Description
User Name Name of blog user
Password Password of blog user
Measurement Type The type of measurement
Minimum Value Lowest legal value for this type of measurement
Maximum Value Highest legal value for this type of measurement
Unit Unit of measurement (such as "Celsius")
Unit Symbol Related symbol to the unit of measurement (such as "C")
Device Details Information pertaining to the device that took the measurement
Other Information Anything else useful to know about this measurement container
Data Type Any legal MySQL data type (usually a numeric type such as "DECIMAL(4,1)")
Missing Data Value A value of the same type as Data Type which represents an unknown quantity for record.
### Response Example ` wp_2_ts_SomeMeasurementType_9 `