GET api/askopoc/weather?from={from}&to={to}&res={res}
GET weather info from DarkSky for given period, including temperature, icon suggestion and cloudiness in percent
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
from |
start of period |
string |
Required |
to |
end of period |
string |
Required |
res | AskoTsResolution |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of AskoWeatherInfoName | Description | Type | Additional information |
---|---|---|---|
HourStart | date |
None. |
|
CloudCoverPercent | integer |
None. |
|
TempCelcius | decimal number |
None. |
|
IconName | AskoWeatherIcon |
None. |
Response Formats
application/json, text/json
Sample:
[ { "HourStart": "2025-05-19T21:17:19.1663386+00:00", "CloudCoverPercent": 2, "TempCelcius": 3.1, "IconName": "Unknown" }, { "HourStart": "2025-05-19T21:17:19.1663386+00:00", "CloudCoverPercent": 2, "TempCelcius": 3.1, "IconName": "Unknown" } ]
text/html
Sample:
[{"HourStart":"2025-05-19T21:17:19.1663386+00:00","CloudCoverPercent":2,"TempCelcius":3.1,"IconName":"Unknown"},{"HourStart":"2025-05-19T21:17:19.1663386+00:00","CloudCoverPercent":2,"TempCelcius":3.1,"IconName":"Unknown"}]