From e8a455096b24af10954f395ef20bbf72e68eb98a Mon Sep 17 00:00:00 2001 From: Michel Date: Mon, 16 Jun 2025 13:23:23 +0200 Subject: [PATCH] Maj supervisor_watchdog --- requirements.txt | 5 ++--- supervisor_watchdog.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 86c7db9..adda5b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -mysql~=0.0.3 mysql-connector-python~=9.2.0 pandas~=2.2.3 DateTime~=5.5 @@ -8,7 +7,7 @@ paho-mqtt~=2.1.0 requests~=2.32.3 schedule~=1.2.2 paramiko~=3.5.1 -dotenv -fpdf +python-dotenv +fpdf2 ovh bcrypt diff --git a/supervisor_watchdog.py b/supervisor_watchdog.py index cdaca30..1efbead 100755 --- a/supervisor_watchdog.py +++ b/supervisor_watchdog.py @@ -31,12 +31,12 @@ if envoyer_mail: msg = MIMEText(contenu) msg["Subject"] = sujet - msg["From"] = "alertes_saclay@domo91.fr" + msg["From"] = "supervisor@domo91.fr" msg["To"] = "services@domo91.fr" try: with smtplib.SMTP_SSL("smtp.mail.ovh.net", 465) as server: - server.login("alertes_saclay@domo91.fr", "Kdpke674y23Feq^H") + server.login("supervisor@domo91.fr", "4j%6A63$F##x7h") server.sendmail(msg["From"], [msg["To"]], msg.as_string()) print("📧 Mail envoyé.") except Exception as e: