Skip to content

timestreams.select_measurements XML RPC procedure

pszjmb1 edited this page Jul 12, 2012 · 4 revisions

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

Description

A POST request containing this procedure name will have returned a specific set of measurements from a measurement container for a given blog's device. The following is the procedure call signature to retrieve measurements from a given measurement container: <methodCall> <methodName>timestreams.select_measurements</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>Minimum Time</string></value></param> <param><value><string>Maximum Time</string></value></param> <param><value><string>Limit</string></value></param> <param><value><string>Offset</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
Minimum Time An optional timestamp specifying the earliest record to return
Maximum Time An optional timestamp specifying the latest record to return
Limit A positive integer value determining the number of records to return.
Offset The offset of the first row to return.

Response Example

<?xml version="1.0"?> <methodResponse> <params> <param> <value> <array><data> <value><struct> <member><name>id</name><value><string>4</string></value></member> <member><name>value</name><value><string>700.0</string></value></member> <member><name>timestamp</name><value><string>2012-03-02 00:34:05</string></value></member> </struct></value> </data></array> </value> </param> </params> </methodResponse>

Clone this wiki locally