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

@ -16,4 +16,4 @@ selenium-wire = "*"
[dev-packages] [dev-packages]
[requires] [requires]
python_version = "3.13" python_version = ">=3.12,<4.0"

1274
Pipfile.lock generated

File diff suppressed because it is too large Load diff

4
run.sh
View file

@ -1,5 +1,3 @@
#!/usr/bin/bash #!/usr/bin/bash
pipenv run ./get_report.py systemctl --user start kidsnote
pipenv run ./report_json_down.py

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] [Unit]
Description=Download Kidsnote reports and JSON Description=Download Kidsnote reports and JSON
Wants=kidsnote.timer Wants=kidsnote.timer
# OnFailure=kidsnote-fail-notify.service
[Service] [Service]
Type=oneshot 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 ./get_report.py
ExecStart=/usr/bin/pipenv run ./report_json_down.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="