修复电报推送跑道高点使用机场METAR而非跑道传感器数据

_get_airport_daily_high 对 AMSC/AMOS 跑道城市优先从
runway_plate_history 取结算跑道的历史最高温
This commit is contained in:
2569718930@qq.com
2026-06-16 03:08:29 +08:00
parent 555de2f415
commit 9d61d9443d
2 changed files with 33 additions and 13 deletions
-12
View File
@@ -1,12 +0,0 @@
from src.database.db_manager import DBManager
db = DBManager()
for c in ["beijing","guangzhou","shanghai","chengdu","chongqing"]:
r = db.get_latest_raw_observation("amsc_awos", c)
if r:
p = r["payload"]
o = p.get("observation_time", "?")
pts = p.get("runway_obs", {}).get("point_temperatures", [])
tmax = [x["target_runway_max"] for x in pts if x.get("target_runway_max")]
print(c, o[:19], "tmax=", max(tmax) if tmax else "?")
else:
print(c, "no data")