Add open multi-model forecast sources

This commit is contained in:
2569718930@qq.com
2026-04-17 00:27:57 +08:00
parent 8db933a47c
commit 7909a16002
4 changed files with 200 additions and 28 deletions
+8
View File
@@ -2313,6 +2313,14 @@ def _analyze(
},
"source_forecasts": {
"weather_gov": raw.get("nws") or {},
"open_meteo_multi_model": {
"source": mm.get("source"),
"provider": mm.get("provider"),
"dates": mm.get("dates") or [],
"model_metadata": mm.get("model_metadata") or {},
"model_keys": mm.get("model_keys") or {},
"attribution": mm.get("attribution"),
} if isinstance(mm, dict) and mm else {},
},
"multi_model": {k: v for k, v in current_forecasts.items() if v is not None},
"multi_model_daily": multi_model_daily,