Mit Scheduler für echte 5min

This commit is contained in:
2025-12-19 17:38:00 +00:00
parent 9d46ba9f46
commit 27f7c5544d
3 changed files with 95 additions and 5 deletions

View File

@@ -16,11 +16,8 @@ services:
- EMAIL_PASS=${EMAIL_PASS}
- SAVE_DIR=${SAVE_DIR}
- HEARTBEAT_FILE=/app/heartbeat.txt
# Führe das Skript alle 5 Minuten aus
command: >
sh -c "while true; do
python main.py && echo \"CameraSave ausgeführt um \$$(date)\" && sleep 300;
done"
# Führe das Skript zur exakten 5-Minuten-Grenze aus
command: python scheduler.py
monitor:
build: .