feat: Add scheduled runs and Kuma ping

Add systemd user units for daily execution and send an Uptime Kuma push on each run.
This commit is contained in:
Jeena 2026-03-12 15:34:00 +00:00
parent 4ab799c156
commit 413766ed2b
6 changed files with 67 additions and 0 deletions

View file

@ -25,6 +25,7 @@ export FRESHRSS_PASSWORD=...
export MATRIX_HOMESERVER=...
export MATRIX_ROOM_ID=...
export MATRIX_ACCESS_TOKEN=...
export UPTIME_KUMA_PUSH_URL=...
```
The script also reads `.env` automatically if present.
@ -49,3 +50,21 @@ To run live integration checks against the real services:
```bash
RUN_LIVE_TESTS=1 python -m pytest tests/test_live_services.py
```
## Systemd (user)
Copy the unit files and enable the timer:
```bash
mkdir -p ~/.config/systemd/user
cp systemd/check-for-updates.service ~/.config/systemd/user/
cp systemd/check-for-updates.timer ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now check-for-updates.timer
```
View logs:
```bash
journalctl --user -u check-for-updates.service
```