diff --git a/Dockerfile b/Dockerfile index 67c7902..e512ef1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/main.py b/main.py index 2a44b61..607dcea 100644 --- a/main.py +++ b/main.py @@ -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 diff --git a/run_wetter.sh b/run_wetter.sh index e4a55d9..f635764 100755 --- a/run_wetter.sh +++ b/run_wetter.sh @@ -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 "------------------------------------" \ No newline at end of file