feat(weather): add sky conditions and snow type to predictions

Add WMO weather_code from Open-Meteo to derive sky conditions
(sunny/cloudy/foggy/storm) and infer snow type (powder/hard/wet/spring)
from temperature and snowfall data. Both fields flow through the full
pipeline: weather API, hybrid predictor, SQLite storage, REST API
schemas, Telegram bot messages, and scheduler tasks.
This commit is contained in:
dasemu committed 2026-03-17 17:54:43 +01:00
1 parent 5e2a22340f
commit 70e3a1cf92
10 files changed
+128 -1

No files matched your search

+2
View File
@@ -361,6 +361,8 @@ def generate_predictions(
"open_probability": result["open_probability"],
"km_open": result["km_open"],
"crowd_level": result["crowd_level"],
"sky_condition": result.get("sky_condition"),
"snow_type": result.get("snow_type"),
"weather_summary": result.get("weather_summary"),
"rule_notes": result.get("rule_overrides", []),
"prediction_source": result["prediction_source"],