Add uptime-kuma example and fix python version
This commit is contained in:
parent
c6936f8f52
commit
ef8672678a
5 changed files with 688 additions and 603 deletions
2
Pipfile
2
Pipfile
|
|
@ -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
1274
Pipfile.lock
generated
File diff suppressed because it is too large
Load diff
4
run.sh
4
run.sh
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
|
||||||
6
systemd/kidsnote-fail-notify.service
Normal file
6
systemd/kidsnote-fail-notify.service
Normal 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"
|
||||||
|
|
@ -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="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue