Hourly city weather for a city weather map, using UTC throughout. More...
Classes | |
| class | CityWeatherProvider |
| Fetch recent model estimates and future hourly forecasts in one batch. More... | |
Functions | |
| float|None | city_value (CityWeatherHours weather, str kind, int hours, str period, int anchor) |
| Select an hourly snapshot or a complete rainfall total over 1–24 hours. | |
| str | city_label (float|None value, str kind, bool imperial) |
| Format a map number in the user's units without treating missing data as zero. | |
Hourly city weather for a city weather map, using UTC throughout.
| float | None weather.city_weather.city_value | ( | CityWeatherHours | weather, |
| str | kind, | ||
| int | hours, | ||
| str | period, | ||
| int | anchor | ||
| ) |
Select an hourly snapshot or a complete rainfall total over 1–24 hours.
Precipitation at time T is the amount in the preceding hour. Any missing hour makes a total unavailable, rather than quietly becoming zero rain.