From 4c6a93498cebf5842109bdab10c4fc1a121dd4dd Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 19 May 2026 15:18:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=BA=90=E7=A0=81=E4=B8=AD?= =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E7=9A=84=20API=20token=EF=BC=9ANOAA?= =?UTF-8?q?=20MesoWest=20=E5=AF=86=E9=92=A5=E5=92=8C=20CWA=20=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/analysis/deb_algorithm.py | 2 +- src/data_collection/weather_sources.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/analysis/deb_algorithm.py b/src/analysis/deb_algorithm.py index d8cf969c..d50014e5 100644 --- a/src/analysis/deb_algorithm.py +++ b/src/analysis/deb_algorithm.py @@ -611,7 +611,7 @@ def _reconcile_recent_noaa_actual_highs(city_name: str, lookback_days: int = 14) "showemptystations": 1, "recent": recent_minutes, "complete": 1, - "token": "7c76618b66c74aee913bdbae4b448bdd", + "token": os.environ.get("NOAA_WRH_MESO_TOKEN", ""), "obtimezone": "local", }, headers={ diff --git a/src/data_collection/weather_sources.py b/src/data_collection/weather_sources.py index 218979c5..e59f73ef 100644 --- a/src/data_collection/weather_sources.py +++ b/src/data_collection/weather_sources.py @@ -251,7 +251,8 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour self.cwa_open_data_auth = ( os.getenv("CWA_OPEN_DATA_AUTH") or os.getenv("CWA_OPEN_DATA_API_KEY") - or "rdec-key-123-45678-011121314" + or "" + ) ).strip() # 磁盘持久化缓存:重启后即可加载上次的预报数据,避免冷启动请求爆发