/getMyEnergyData

Method description

End point /getMyEnergyData
Description Returns a JSON representation of the stored energy data of a particular sensor
Request method POST
Bearer token Required

Request

RequestParam
Field name Description Type
monthsBack Number of months in the past from the current date Integer
sensor_id Sensor identifier Long
RequestBody None

Response

A JSON representation of the stored energy data of a particular sensor
Example
{
"id": 3,
"name": "",
"symbol": "",
"tags": "",
"units": "",
"sensor_id": 32,
"sensor_name": "",
"device_id": 49,
"current_day_aggr_id": 2,
"current_hour_aggr_id": 5,
"current_month_aggr_id": 8,
"aggregates": [{
"mean_value":39.56,
"aggregator_id": 5098,
"slot_size": 22980007,
"samples": 29087,
"start": 1190088765,
"uptime": 22098,
"minValue": 0,
"maxValue": 245.678,
"current_day_aggr_id": 19,
"current_hour_aggr_id": 20,
"current_month_aggr_id": 21,
"days": [{
"mean_value":39.56,
"aggregator_id": 5098,
"slot_size": 33445,
"samples": 1190,
"start": 1190088765,
"uptime": 22098
"hours": [{
"mean_value":39.56,
"aggregator_id": 5098,
"slot_size": 33445,
"samples": 1190,
"start": 1190088765,
"uptime": 22098
},{
...
}]
},{
...
}]
}, {
...
}]
}
Fields
Field name Description Type
id Data Channel identifier Long
name Data Channel name String
symbol Data Channel symbol String
tags Data Channel tags String
units Data Channel units String
sensor_id Sensor identifier Long
sensor_name Sensor name String
device_id Device identification Long
symbol Data Channel symbol String
current_day_aggr_id Identifier of the aggregator of the data belonging to the current day Long
current_hour_aggr_id Identifier of the aggregator of the data belonging to the current hour Long
current_month_aggr_id Identifier of the aggregator of the data belonging to the current month Long