台北走 METAR 集群兜底:ICAO 从 CWA 站号 466920 改为 RCSS
- weather_sources: 放开 cwa settlement_source 的 METAR 拦截 - Rust: ICAO 改用 RCSS,匹配 METAR 集群数据 - 原因: CWA_OPEN_DATA_AUTH 未配置,CWA 接口静默失败致 airport_obs_log 无数据
This commit is contained in:
@@ -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 ──
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user