移除温度急变检测,改为 per-city 定时推送温度+DEB
去掉 0.5°C/10min 阈值触发、最高温锁定、冷却期等机制。 四座机场城市各自 10 分钟间隔独立推送当前温度和 DEB 预测, 仅当地 08:00-20:00 时段发送,无触发条件、无警报标题。 Constraint: 首尔/釜山展示跑道对温度,东京/安卡拉展示单站温度+本地时间 Scope-risk: 高,核心逻辑变更 Tested: ruff check 通过
This commit is contained in:
@@ -188,11 +188,11 @@ class StartupCoordinator:
|
||||
chat_ids = get_telegram_chat_ids_from_env()
|
||||
interval = max(60, _env_int("TELEGRAM_AIRPORT_PUSH_INTERVAL_SEC", 600))
|
||||
details = {
|
||||
"mode": "airport-high-freq",
|
||||
"mode": "airport-periodic",
|
||||
"interval_sec": interval,
|
||||
"cities": ["seoul", "busan", "tokyo"],
|
||||
"cities": ["seoul", "busan", "tokyo", "ankara"],
|
||||
"chat_targets": len(chat_ids),
|
||||
"cooldown_sec": _env_int("TELEGRAM_AIRPORT_COOLDOWN_SEC", 7200),
|
||||
"daytime_only": "08:00-20:00 local",
|
||||
}
|
||||
validation_error = None if chat_ids else "missing_TELEGRAM_CHAT_IDS"
|
||||
return self._start_with_validation(
|
||||
|
||||
Reference in New Issue
Block a user