The REST API documentation says that by default weatherkit returns 10 days weather forecast but we can change it by setting dailyStart and dailyEnd.
It was working for me couple weeks ago, but this week I found out that, no matter what range we set, it always return 24 hours forecast.
This looks to be a bug to me, is there any ETA of fixing it?
You don't include the query parameters you are using, but it sounds like maybe you are setting dailyStart
and dailyEnd
but requesting forecastHourly
. The bounds of the hourly forecast are controlled by hourlyStart
and hourlyEnd
.
The start and end parameters are separate for the different data sets since it is possible and not uncommon to use different ranges. For example, you might want a 10-day daily forecast but only then next 12 hours in the hourly forecast, and this allows limiting the amount of data returned to just what you want to read and process.