Switch to uptime-kuma-api-v2 for Kuma v2 support
All checks were successful
Build and Push Container / build (push) Successful in 43s

The original uptime-kuma-api library doesn't support Uptime Kuma v2's
required conditions field. The v2 fork has the same API but properly
supports the newer schema.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Debian
2026-01-05 05:35:50 +00:00
parent 4da7f899c6
commit 908d147235
2 changed files with 1 additions and 2 deletions

View File

@@ -7,4 +7,4 @@ requests==2.31.0
python-dotenv==1.0.0 python-dotenv==1.0.0
gevent==23.9.1 gevent==23.9.1
gevent-websocket==0.10.1 gevent-websocket==0.10.1
uptime-kuma-api==1.2.1 uptime-kuma-api-v2==1.0.0

View File

@@ -203,7 +203,6 @@ class UptimeKumaClient:
"interval": monitor.interval, "interval": monitor.interval,
"maxretries": monitor.retries, "maxretries": monitor.retries,
"retryInterval": monitor.retry_interval, "retryInterval": monitor.retry_interval,
"conditions": [], # Required for Uptime Kuma v2
} }
# Add type-specific fields # Add type-specific fields