mirror of
https://github.com/Dasemu/skipredictor.git
synced 2026-11-26 07:16: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
@@ -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"],
|
||||
|
||||
Reference in new issue
Block a user