This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| uptime-kuma-cli.py — Manage Uptime Kuma monitors via direct SQLite DB manipulation. | |
| Workflow: stop container → write DB → start container. | |
| Reads (--list, --export) do NOT stop/start the container — DB is opened read-only. | |
| Usage: | |
| python3 uptime-kuma-cli.py --list | |
| python3 uptime-kuma-cli.py --add '{"name": "[vps01] foo.nl", "url": "https://foo.nl"}' |