From 1d3ccbb7cf6f12d33137d508b87cbaae55d3455c Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Wed, 13 May 2026 20:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B0=E5=8C=97=E8=B5=B0=20METAR=20=E9=9B=86?= =?UTF-8?q?=E7=BE=A4=E5=85=9C=E5=BA=95=EF=BC=9AICAO=20=E4=BB=8E=20CWA=20?= =?UTF-8?q?=E7=AB=99=E5=8F=B7=20466920=20=E6=94=B9=E4=B8=BA=20RCSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - weather_sources: 放开 cwa settlement_source 的 METAR 拦截 - Rust: ICAO 改用 RCSS,匹配 METAR 集群数据 - 原因: CWA_OPEN_DATA_AUTH 未配置,CWA 接口静默失败致 airport_obs_log 无数据 --- monitoring-web/src/main.rs | 2 +- src/data_collection/weather_sources.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring-web/src/main.rs b/monitoring-web/src/main.rs index 2e97d7c7..09d5b873 100644 --- a/monitoring-web/src/main.rs +++ b/monitoring-web/src/main.rs @@ -29,7 +29,7 @@ const CITIES: &[(&str, &str, &str, &str, i32, f64, &str)] = &[ ("paris", "巴黎", "LFPB", "Le Bourget", 2, 3.0, "CEST"), ("hong kong","香港","HKO","Observatory",8,1.5,"HKT"), ("lau fau shan","流浮山","LFS","Lau Fau Shan",8,1.5,"HKT"), - ("taipei", "台北", "466920", "Songshan", 8, 1.5, "TST"), + ("taipei", "台北", "RCSS", "Songshan", 8, 1.5, "TST"), ]; // ── app state ── diff --git a/src/data_collection/weather_sources.py b/src/data_collection/weather_sources.py index 1b0783a7..9960f092 100644 --- a/src/data_collection/weather_sources.py +++ b/src/data_collection/weather_sources.py @@ -856,7 +856,7 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour if ( city_lower not in self.CITY_METAR_CLUSTERS or "mgm_nearby" in results - or settlement_source in {"hko", "cwa"} + or settlement_source in {"hko"} ): return cluster_icaos = self.CITY_METAR_CLUSTERS[city_lower]