GET api/askopoc/production/sun/energy?from={from}&to={to}&res={res}
GET time series with hourly energy values for sun production
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
from |
start of period |
string |
Required |
to |
end of period inclusive |
string |
Required |
res |
aggregation level for the values |
AskoTsResolution |
Default value is Hour |
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-19T07:44:21.9850117+00:00", "PeriodEnd": "2025-05-19T07:44:21.9850117+00:00", "Unit": "OpenOrClosed", "Values": [ { "Value": 1.1, "StartTime": "2025-05-19T07:44:21.9850117+00:00" }, { "Value": 1.1, "StartTime": "2025-05-19T07:44:21.9850117+00:00" } ] }
text/html
Sample:
{"Name":"sample string 1","DeviceId":2,"Resolution":"Minute","PeriodStart":"2025-05-19T07:44:21.9850117+00:00","PeriodEnd":"2025-05-19T07:44:21.9850117+00:00","Unit":"OpenOrClosed","Values":[{"Value":1.1,"StartTime":"2025-05-19T07:44:21.9850117+00:00"},{"Value":1.1,"StartTime":"2025-05-19T07:44:21.9850117+00:00"}]}