Création onglet journal erreurs
This commit is contained in:
6
.env
6
.env
@@ -2,13 +2,13 @@
|
||||
#connexion mysql
|
||||
DB_HOST=162.19.78.131
|
||||
DB_USER=sondes
|
||||
DB_PASS=TX.)-U1!zq5Axdk4
|
||||
DB_PASS='TX.)-U1!zq5Axdk4'
|
||||
DB_NAME=Sondes
|
||||
|
||||
# MQTT
|
||||
MQTT_HOST=54.36.188.119
|
||||
MQTT_USER=Bwps
|
||||
MQTT_PASS="scJ5ACj2keRfI^"
|
||||
MQTT_PASS='scJ5ACj2keRfI^'
|
||||
|
||||
# Boucle rapide du gyro
|
||||
GYRO_MODE=mqtt
|
||||
@@ -33,7 +33,7 @@ SMTP_HOST=ssl0.ovh.net
|
||||
SMTP_PORT=587
|
||||
SMTP_SECURITY=STARTTLS
|
||||
SMTP_USER=services@domo91.fr
|
||||
SMTP_PASS=6ZiCsVtSf9@nEHv@$^0
|
||||
SMTP_PASS='VHq3278YA#sGV*bh#mR'
|
||||
MAIL_FROM=services@domo91.fr
|
||||
MAIL_TO_SACLAY=robots@domo91.fr,nicolas.thibaut@bw-paris-saclay.com
|
||||
MAIL_FROM_SACLAY="DOMO91 Saclay <services@domo91.fr>"
|
||||
|
||||
709
app/domo91.py
709
app/domo91.py
File diff suppressed because it is too large
Load Diff
@@ -36,7 +36,7 @@ if envoyer_mail:
|
||||
|
||||
try:
|
||||
with smtplib.SMTP_SSL("smtp.mail.ovh.net", 465) as server:
|
||||
server.login("services@domo91.fr", "6ZiCsVtSf9@nEHv@$^0")
|
||||
server.login("services@domo91.fr", "VHq3278YA#sGV*bh#mR")
|
||||
server.sendmail(msg["From"], [msg["To"]], msg.as_string())
|
||||
print("📧 Mail envoyé.")
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user