From 908d147235625717e400b25ffe0ee0f6f18fcb3a Mon Sep 17 00:00:00 2001 From: Debian Date: Mon, 5 Jan 2026 05:35:50 +0000 Subject: [PATCH] Switch to uptime-kuma-api-v2 for Kuma v2 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- backend/requirements.txt | 2 +- backend/services/kuma_client.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/requirements.txt b/backend/requirements.txt index 31e566a..22644f8 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -7,4 +7,4 @@ requests==2.31.0 python-dotenv==1.0.0 gevent==23.9.1 gevent-websocket==0.10.1 -uptime-kuma-api==1.2.1 +uptime-kuma-api-v2==1.0.0 diff --git a/backend/services/kuma_client.py b/backend/services/kuma_client.py index af6ed4a..704437f 100644 --- a/backend/services/kuma_client.py +++ b/backend/services/kuma_client.py @@ -203,7 +203,6 @@ class UptimeKumaClient: "interval": monitor.interval, "maxretries": monitor.retries, "retryInterval": monitor.retry_interval, - "conditions": [], # Required for Uptime Kuma v2 } # Add type-specific fields