Add uptime-kuma example and fix python version

This commit is contained in:
Jeena 2026-01-20 07:58:40 +09:00
parent c6936f8f52
commit ef8672678a
5 changed files with 688 additions and 603 deletions

View file

@ -0,0 +1,6 @@
[Unit]
Description=Notify Kidsnote failure
[Service]
Type=oneshot
ExecStart=/usr/bin/curl -fsS --retry 3 "https://example.net/api/push/xxxxxx?status=down&msg=Failed"

View file

@ -1,9 +1,12 @@
[Unit]
Description=Download Kidsnote reports and JSON
Wants=kidsnote.timer
# OnFailure=kidsnote-fail-notify.service
[Service]
Type=oneshot
WorkingDirectory=/home/jeena/Projects/kidsnote-backup
WorkingDirectory=/home/user/kidsnote-backup
ExecStart=/usr/bin/pipenv run ./get_report.py
ExecStart=/usr/bin/pipenv run ./report_json_down.py
ExecStart=/usr/bin/rm report.json
# ExecStartPost=/usr/bin/curl -fsS --retry 3 "https://example.com/api/push/xxxxxx?status=up&msg=OK&ping="