GET api/askopoc/consumption/total/power?from={from}&to={to}&utc={utc}
GET time series with calculated frequent read power values for total consumption (sum of net cons power and sun prod power)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
from |
start of period |
string |
Required |
to |
end of period inclusive |
string |
Required |
utc |
time format in utc (default true, and only true currently supported) |
boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
AskoTsDataName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
DeviceId | integer |
None. |
|
Resolution | AskoTsResolution |
None. |
|
PeriodStart | date |
None. |
|
PeriodEnd | date |
None. |
|
Unit | AskoTsUnit |
None. |
|
Values | Collection of AskoTsValue |
None. |
Response Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "DeviceId": 2, "Resolution": "Minute", "PeriodStart": "2025-05-19T06:56:58.4679675+00:00", "PeriodEnd": "2025-05-19T06:56:58.4679675+00:00", "Unit": "OpenOrClosed", "Values": [ { "Value": 1.1, "StartTime": "2025-05-19T06:56:58.4679675+00:00" }, { "Value": 1.1, "StartTime": "2025-05-19T06:56:58.4679675+00:00" } ] }
text/html
Sample:
{"Name":"sample string 1","DeviceId":2,"Resolution":"Minute","PeriodStart":"2025-05-19T06:56:58.4679675+00:00","PeriodEnd":"2025-05-19T06:56:58.4679675+00:00","Unit":"OpenOrClosed","Values":[{"Value":1.1,"StartTime":"2025-05-19T06:56:58.4679675+00:00"},{"Value":1.1,"StartTime":"2025-05-19T06:56:58.4679675+00:00"}]}