撤回 METAR 兜底,改走 CWA 10min 实时数据(需配 API key)

This commit is contained in:
2569718930@qq.com
2026-05-13 20:20:16 +08:00
parent 1d3ccbb7cf
commit 041c9fb4fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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", "台北", "RCSS", "Songshan", 8, 1.5, "TST"),
("taipei", "台北", "466920", "Songshan", 8, 1.5, "TST"),
];
// ── app state ──
+1 -1
View File
@@ -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"}
or settlement_source in {"hko", "cwa"}
):
return
cluster_icaos = self.CITY_METAR_CLUSTERS[city_lower]