GET api/askopoc/consumption/net/energy/prediction?from={from}&to={to}&utc={utc}
GET time series with predictions for net consumption for given period
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| from |
start of period |
string |
Required |
| to |
end of period |
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
AskoTsData| Name | 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-12-23T16:49:30.0441825+00:00",
"PeriodEnd": "2025-12-23T16:49:30.0441825+00:00",
"Unit": "OpenOrClosed",
"Values": [
{
"Value": 1.1,
"StartTime": "2025-12-23T16:49:30.0441825+00:00"
},
{
"Value": 1.1,
"StartTime": "2025-12-23T16:49:30.0441825+00:00"
}
]
}
text/html
Sample:
{"Name":"sample string 1","DeviceId":2,"Resolution":"Minute","PeriodStart":"2025-12-23T16:49:30.0441825+00:00","PeriodEnd":"2025-12-23T16:49:30.0441825+00:00","Unit":"OpenOrClosed","Values":[{"Value":1.1,"StartTime":"2025-12-23T16:49:30.0441825+00:00"},{"Value":1.1,"StartTime":"2025-12-23T16:49:30.0441825+00:00"}]}