Add Uptime Kuma heartbeat configuration and implement heartbeat functionality

This commit is contained in:
Misaka_Company
2026-01-12 17:43:33 +08:00
parent 9192f15610
commit 3bcc5aafbe
3 changed files with 72 additions and 17 deletions

View File

@@ -28,6 +28,13 @@ NTFY_CONFIG = {
}
}
# ================= Uptime Kuma 心跳配置 =================
UPTIME_KUMA_CONFIG = {
'enabled': True,
'push_url': 'https://uptimekuma.server10086.icu/api/push/clMSgOQs4CJeF7DJAOiHaFaaZzoL8eB9',
'heartbeat_interval': 60 # 心跳间隔(秒),需要与 Uptime Kuma 设置一致
}
# ================= 运行参数 =================
# 合并原 config.py 和 update_config.py 的配置
POLL_INTERVAL = 5 # 轮询间隔(秒)