Ein paar Verbesserungen - haben aber nix gebracht

This commit is contained in:
rxf
2025-08-05 15:01:32 +00:00
parent f3fc1f5868
commit 015495e374
3 changed files with 4 additions and 2 deletions

View File

@@ -7,13 +7,13 @@ cd /app
# Protokollfunktion mit Zeitstempel
log() {
echo "$(date '+%Y-%m-%d %H:%M:%S') $1" >> logs/log
echo "$(date '+%Y-%m-%d %H:%M:%S') $1" >> logs/cron.log
}
log ">>> Starte Wetterprüfung"
# Python-Skript ausführen und Ergebnis loggen
python main.py >> logs/log 2>&1
/usr/local/bin/python main.py >> logs/cron.log 2>&1
log ">>> Wetterprüfung abgeschlossen"
log "------------------------------------"