forecast_hourly
Get the weather hour by hour for a place: temperature with its likely range, chance of rain and the weather in words.
Instructions
Get the weather hour by hour for a place: temperature with its likely range, chance
of rain and the weather in words.
Use this for one hour, such as "how warm is it at 15:00", or part of a day, such as "how
is the afternoon" or "when is the best time for a walk". Without end it returns the one
hour starting at start. Each row covers the hour from its "from" to its "to": the
temperature is the mean of that hour, while the rain chance and the weather cover the 3
hours up to "to", as MeteoSwiss publishes them only per 3 hours. For whole days or
periods longer than a day use forecast_daily, which answers in far fewer rows, and for
rain amounts forecast_rain.
Args:
location (str): Place name: a town, village, city district, lake or peak (e.g., "Zurich").
start (str): Swiss local time as a full hour in ISO 8601 without offset, e.g. "2026-09-23T15:00". Today or up to 8 days ahead.
end (str): Optional. Swiss local time as a full hour in ISO 8601 without offset, after start.
Returns:
dict: The place, the forecast point used, one row per hour and the model run; the
field names give the units. In 8 of 10 possible outcomes, the temperature lies
between its 10th and 90th percentile.
Examples:
forecast_hourly("Zurich", "2026-09-23T15:00") # one hour
forecast_hourly("Zurich", "2026-09-23T12:00", "2026-09-23T18:00") # the afternoon
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| near | No | Only when several places share the name: a village next to the place the user means. For "the Blausee near Bettmeralp" use location "Blausee" and near "Bettmeralp". Leave it out otherwise. | |
| start | Yes | ||
| location | Yes |