feat: Introduce multi-source weather data collection, including city configuration and robust caching.

This commit is contained in:
2569718930@qq.com
2026-03-12 00:29:34 +08:00
parent 9295899aeb
commit eca0c7f514
4 changed files with 101 additions and 4 deletions
+14
View File
@@ -32,6 +32,10 @@ class WeatherDataCollector:
"new york": ["KLGA", "KJFK", "KEWR", "KTEB", "KHPN"],
"paris": ["LFPG", "LFPO", "LFPB"],
"seoul": ["RKSI", "RKSS"],
"hong kong": ["VHHH", "VMMC", "ZGSZ"],
"shanghai": ["ZSPD", "ZSSS", "ZSNB", "ZSHC"],
"singapore": ["WSSS", "WSAP", "WMKK"],
"tokyo": ["RJTT", "RJAA", "RJAH", "RJTJ"],
"toronto": ["CYYZ", "CYTZ", "CYKF"],
"chicago": ["KORD", "KMDW", "KPWK", "KDPA"],
"dallas": ["KDAL", "KDFW", "KADS", "KGKY"],
@@ -1656,6 +1660,16 @@ class WeatherDataCollector:
"亚特兰大": "Atlanta",
"seoul": "Seoul",
"首尔": "Seoul",
"hong kong": "Hong Kong",
"hong kong international airport": "Hong Kong",
"香港": "Hong Kong",
"shanghai": "Shanghai",
"上海": "Shanghai",
"singapore": "Singapore",
"新加坡": "Singapore",
"tokyo": "Tokyo",
"东京": "Tokyo",
"東京": "Tokyo",
"toronto": "Toronto",
"多伦多": "Toronto",
"ankara": "Ankara",