feat: add multi-source weather data collection with OpenWeatherMap, Visual Crossing, and NOAA METAR.

This commit is contained in:
2569718930@qq.com
2026-02-08 02:50:08 +08:00
parent d7777384ec
commit 8914435766
+3 -2
View File
@@ -392,10 +392,11 @@ class WeatherDataCollector:
"_t": int(time.time()), # 禁用缓存,强制刷新
}
# 对于美国市场,使用华氏度并请求多模型共识
# 对于美国市场,使用华氏度
if use_fahrenheit:
params["temperature_unit"] = "fahrenheit"
params["models"] = "ecmwf_ifs04,ncep_hrrr_conus" # 正确的模型
# 不使用 models 参数,让 Open-Meteo 用默认最优模型
# NWS 已提供官方预报对比,无需 HRRR
response = self.session.get(
url,