GET api/askopoc/production/sun/energy/prediction?from={from}&to={to}&utc={utc}

GET time series with predictions for sun production for given period

Request Information

URI Parameters

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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-19T05:13:52.8400673+00:00",
  "PeriodEnd": "2025-05-19T05:13:52.8400673+00:00",
  "Unit": "OpenOrClosed",
  "Values": [
    {
      "Value": 1.1,
      "StartTime": "2025-05-19T05:13:52.8400673+00:00"
    },
    {
      "Value": 1.1,
      "StartTime": "2025-05-19T05:13:52.8400673+00:00"
    }
  ]
}

text/html

Sample:
{"Name":"sample string 1","DeviceId":2,"Resolution":"Minute","PeriodStart":"2025-05-19T05:13:52.8400673+00:00","PeriodEnd":"2025-05-19T05:13:52.8400673+00:00","Unit":"OpenOrClosed","Values":[{"Value":1.1,"StartTime":"2025-05-19T05:13:52.8400673+00:00"},{"Value":1.1,"StartTime":"2025-05-19T05:13:52.8400673+00:00"}]}