feat: implement PolyWeather Telegram bot with weather and DEB analysis, a point system, and configuration.
This commit is contained in:
@@ -114,6 +114,20 @@ CITY_REGISTRY = {
|
||||
"distance_km": 15.0,
|
||||
"warning": "湾风与热岛效应并存,日最高温时点有时会后移。",
|
||||
},
|
||||
"tel aviv": {
|
||||
"name": "Tel Aviv",
|
||||
"lat": 32.0114,
|
||||
"lon": 34.8867,
|
||||
"icao": "LLBG",
|
||||
"tz_offset": 7200,
|
||||
"use_fahrenheit": False,
|
||||
"is_major": True,
|
||||
"risk_level": "medium",
|
||||
"risk_emoji": "🟡",
|
||||
"airport_name": "Ben Gurion 机场",
|
||||
"distance_km": 14.8,
|
||||
"warning": "海陆风转换明显,午后海风可压制升温,最高温时点可能后移。",
|
||||
},
|
||||
"toronto": {
|
||||
"name": "Toronto",
|
||||
"lat": 43.6777,
|
||||
@@ -293,6 +307,7 @@ ALIASES = {
|
||||
"seo": "seoul", "hkg": "hong kong", "hk": "hong kong",
|
||||
"sha": "shanghai", "sh": "shanghai", "sin": "singapore",
|
||||
"sg": "singapore", "tok": "tokyo", "tyo": "tokyo",
|
||||
"tlv": "tel aviv", "telaviv": "tel aviv",
|
||||
"ba": "buenos aires", "wel": "wellington",
|
||||
"luc": "lucknow", "sp": "sao paulo", "mun": "munich",
|
||||
|
||||
@@ -313,6 +328,7 @@ ALIASES = {
|
||||
"新加坡": "singapore",
|
||||
"东京": "tokyo",
|
||||
"東京": "tokyo",
|
||||
"特拉维夫": "tel aviv",
|
||||
"布宜诺斯艾利斯": "buenos aires",
|
||||
"惠灵顿": "wellington",
|
||||
"勒克瑙": "lucknow",
|
||||
|
||||
@@ -36,6 +36,7 @@ class WeatherDataCollector:
|
||||
"shanghai": ["ZSPD", "ZSSS", "ZSNB", "ZSHC"],
|
||||
"singapore": ["WSSS", "WSAP", "WMKK"],
|
||||
"tokyo": ["RJTT", "RJAA", "RJAH", "RJTJ"],
|
||||
"tel aviv": ["LLBG"],
|
||||
"toronto": ["CYYZ", "CYTZ", "CYKF"],
|
||||
"chicago": ["KORD", "KMDW", "KPWK", "KDPA"],
|
||||
"dallas": ["KDAL", "KDFW", "KADS", "KGKY"],
|
||||
@@ -1670,6 +1671,8 @@ class WeatherDataCollector:
|
||||
"tokyo": "Tokyo",
|
||||
"东京": "Tokyo",
|
||||
"東京": "Tokyo",
|
||||
"tel aviv": "Tel Aviv",
|
||||
"特拉维夫": "Tel Aviv",
|
||||
"toronto": "Toronto",
|
||||
"多伦多": "Toronto",
|
||||
"ankara": "Ankara",
|
||||
|
||||
Reference in New Issue
Block a user