Skip to content

Time Series Database

anthonyrowe edited this page Aug 9, 2017 · 10 revisions

TODO: Populate this page with more examples with return values as well...

You can use the REST interface to request time series data from transducers. Below is an example for exporting all time series data from a transducer using the command line curl tool:

curl -u ID:TOKEN -G "http://openchirp.andrew.cmu.edu:7000/api/
device/DEVICE_ID/transducer/TRANSDUCER_ID"

where ID is either a user (someone@gmail.com), device or service ID and TOKEN is the associated token. User tokens can be generated from the profile page and device tokens from the device's security tab. DEVICE_ID / TRANSDUCER_ID are the IDs of the target device and transducer.

Just as a reminder, transducerID can easily be found from a device using:

curl -u ID:TOKEN -G "http://openchirp.andrew.cmu.edu:7000/api/
device/DEVICE_ID/transducer/"

You can query at different resolutions and across different time ranges as described here: https://openchirp.github.io/api_doc/#get-values-from-a-transducer

Clone this wiki locally