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:
parent
4ab799c156
commit
413766ed2b
6 changed files with 67 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue