reworked map notifications so a new map with its infos is forwarded through flask over nginx and that main loops to respond every 5 seconds

This commit is contained in:
jenz
2026-02-22 23:45:00 +01:00
parent a7bde0361a
commit fcf3490693
7 changed files with 86 additions and 46 deletions
@@ -1,5 +1,5 @@
[Unit]
Description=updates map notifications ever 5 minutes
Description=updates map notifications and receives map info through http requests
[Service]
Type=simple
@@ -7,4 +7,4 @@ User=nonroot
Environment=PYTHONUNBUFFERED=1
Environment=PATH=/home/nonroot/stoat_map_notifications/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin
WorkingDirectory=/home/nonroot/stoat_map_notifications
ExecStart=/home/nonroot/stoat_map_notifications/main.py
ExecStart=/home/nonroot/stoat_map_notifications/app.py
@@ -1,8 +1,8 @@
[Unit]
Description=checks every 3 minutes on stoat about map notifcations
Description=restart map notification flask service once every day at midnight
[Timer]
OnCalendar=*:0/3
OnCalendar=*-*-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 00:00:00
[Install]
WantedBy=multi-user.target