mirror of
https://github.com/Dasemu/skipredictor.git
synced 2026-11-26 15:26:15 +00:00
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:
1 parent
5e2a22340f
commit
70e3a1cf92
10 files changed
+128
-1
No files matched your search
@@ -243,6 +243,8 @@ def _rows_to_day_forecasts(
|
||||
km_open=r.get("km_open"),
|
||||
max_km=max_km,
|
||||
crowd_level=r.get("crowd_level"),
|
||||
sky_condition=r.get("sky_condition"),
|
||||
snow_type=r.get("snow_type"),
|
||||
weather_summary=r.get("weather_summary"),
|
||||
rule_notes=notes,
|
||||
prediction_source=r.get("prediction_source"),
|
||||
|
||||
Reference in new issue
Block a user