-
Notifications
You must be signed in to change notification settings - Fork 7
Web API for Data Retrieval
Mario Frei edited this page Mar 9, 2020
·
3 revisions
The measurement data can be access through a web-interface: http://www.[YOUR URL.COM]/export.export.php?node_id=[YOUR NODE ID]&token=[YOUR TOKEN]&campaign_name=[YOUR CAMPAIGN NAME]&campaign_description=[YOUR CAMPAIGN DESCRIPTION]&date_start=[YOUR START DATE]&date_end=[YOUR END DATE]
The output data is json-formatted.
Node ID: 801
Sensor Description: SHT31
Measured Entities: Air Temperature (indoor), Relative Humidity (indoor)
Measurement Units: °C, %
Sensor Module Type: 2
Number of Values: 2
Measurement Timestamps: 1583770093, 1583769793, 1583769493 (UNIX Timestamps)
Measured Temperatures: 22.0306, 22.0439, 22.0306
Measured Humidities: 55.7504, 55.7504, 55.9426
JSON Formated Data:
[
[
{
"node_id":801,
"units":[
"\u00b0C",
"%"
],
"description":[
"SHT31"
],
"entities":[
"air temperature (indoor)",
"relative humidity (indoor)"
],
"sensorModuleType":2,
"number_of_values":2
}
],
[
{
"date":1583770093,
"value":22.0306
},
{
"date":1583769793,
"value":22.0439
},
{
"date":1583769493,
"value":22.0306
}
],
[
{
"date":1583770093,
"value":55.6527
},
{
"date":1583769793,
"value":55.7504
},
{
"date":1583769493,
"value":55.9426
}
]
]