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

@@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
tesseract-ocr \
tesseract-ocr-deu \
cron \
nano \
&& rm -rf /var/lib/apt/lists/*
# Set working directory

View File

@@ -44,6 +44,7 @@ SMTP_USER = os.getenv("GMX_EMAIL")
SMTP_PASS = os.getenv("GMX_PASSWORD")
print(f"Wetterserver-Check\r\nVersion {VERSION} vom {VDATE}")
print(f"U: {SMTP_USER}, P: {SMTP_PASS}")
# -----------------------
# Grafik herunterladen

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 "------------------------------------"