Step 5: Use your dashboard

From P2P Food Lab
Jump to: navigation, search

How to request data from OpenSensorData

OpenSensorData stores CSV and JSON files. In order to request data, use following links

http://opensensordata.net/datapoints/70496.csv    // format CSV
http://opensensordata.net/datapoints/70496.json   // format JSON

You must change "70496" with the datastream's ID that can be found in /var/p2pfoodlab/etc/opensensordata/*.json

It's possible to select data between two dates

Beginning date : http://opensensordata.net/datapoints/70496/20140613.csv

Beginning and End dates : http://opensensordata.net/datapoints/70496/20140613/20140613.csv