Maj supervisor_watchdog

This commit is contained in:
2025-06-16 13:23:23 +02:00
parent a897bbc486
commit e8a455096b
2 changed files with 4 additions and 5 deletions

View File

@@ -1,4 +1,3 @@
mysql~=0.0.3
mysql-connector-python~=9.2.0 mysql-connector-python~=9.2.0
pandas~=2.2.3 pandas~=2.2.3
DateTime~=5.5 DateTime~=5.5
@@ -8,7 +7,7 @@ paho-mqtt~=2.1.0
requests~=2.32.3 requests~=2.32.3
schedule~=1.2.2 schedule~=1.2.2
paramiko~=3.5.1 paramiko~=3.5.1
dotenv python-dotenv
fpdf fpdf2
ovh ovh
bcrypt bcrypt

View File

@@ -31,12 +31,12 @@ if envoyer_mail:
msg = MIMEText(contenu) msg = MIMEText(contenu)
msg["Subject"] = sujet msg["Subject"] = sujet
msg["From"] = "alertes_saclay@domo91.fr" msg["From"] = "supervisor@domo91.fr"
msg["To"] = "services@domo91.fr" msg["To"] = "services@domo91.fr"
try: try:
with smtplib.SMTP_SSL("smtp.mail.ovh.net", 465) as server: 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()) server.sendmail(msg["From"], [msg["To"]], msg.as_string())
print("📧 Mail envoyé.") print("📧 Mail envoyé.")
except Exception as e: except Exception as e: