forecast_rain
Get when and how much it may rain at a place, in 3-hour blocks over a period.
Instructions
Get when and how much it may rain at a place, in 3-hour blocks over a period.
Use this for "will it rain this afternoon", "do I need an umbrella" or "when does the
rain stop". Each block gives the chance of rain, the median rainfall of the 3 hours, and
how much the wettest hour of the block may bring (its 90th percentile). The median is
often 0 when showers are possible, so read the chance and the "up to" amount as well.
A period up to the end of the forecast ends with its last full 3-hour block.
Args:
location (str): Place name: a town, village, city district, lake or peak (e.g., "Zurich").
start (str): Swiss local time the period starts, as a full hour in ISO 8601 without offset, e.g. "2026-09-23T12:00". Today or up to 8 days ahead.
end (str): Swiss local time the period ends, as a full hour in ISO 8601 without offset, after start.
Returns:
dict: The place, the forecast point used, one row per 3-hour block and the model
run; the field names give the units.
Examples:
forecast_rain("Zurich", "2026-09-23T12:00", "2026-09-24T00:00")
forecast_rain("Lugano", "2026-09-24T06:00", "2026-09-24T18:00")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| 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 |