V 1.0.0 - erste Version

This commit is contained in:
rxf
2025-08-04 15:58:42 +00:00
commit f140cd13bf
8 changed files with 195 additions and 0 deletions

19
run_citysensor.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Aktiviere virtuelle Umgebung
source /home/rxf/Projekte/citysensor/.venv/bin/activate
cd /home/rxf/Projekte/citysensor
# Protokollfunktion mit Zeitstempel
log() {
echo "$(date '+%Y-%m-%d %H:%M:%S') $1" >> logs/cron.log
}
log ">>> Starte Citysensor-Prüfung"
# Python-Skript ausführen und Ergebnis loggen
python main.py >> logs/cron.log 2>&1
log ">>> Citysensor-Püfung abgeschlossen"
log "------------------------------------"