REST API

To request historical data there is a REST API.

Historical single data point

You can query single data points. To be able to send the query to retrieve historical data a login must exist. The data can be accessed via the NumericID of the SQL database. The NumericID is stored in the metadata.

Parameters

Name Description required
NumericId (int) (path) NumericId: 402190002 true
Start Date (string date-time) (query) startDate: 2020-08-21 true
End Date (string date-time) (query) endDate: 2020-08-24 true

request

https://visualizer.nestcollaboration.ch/Backend/api/v1/datapoints/402190002/timeline?startDate=2020-08-21&endDate=2020-08-24

result

[{"value":0.1,"timestamp":"2020-08-21T00:00:00"},
{"value":0.0,"timestamp":"2020-08-21T01:00:00"},
{"value":0.0,"timestamp":"2020-08-21T02:00:00"},
{"..":".."}]