Files
Gestion_sondes/.env

67 lines
1.8 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#connexion mysql
DB_HOST=162.19.78.131
DB_USER=sondes
DB_PASS=TX.)-U1!zq5Axdk4
DB_NAME=Sondes
AUTH_USERS=[{"user":"Michel","pass":"210462"}]
# MQTT
MQTT_HOST=162.19.78.131
MQTT_USER=sondes
MQTT_PASS=3J@bjYP0
MQTT_PORT_MEUDON=1883
# Boucle rapide du gyro
GYRO_WINDOW_MIN=3
GYRO_NEEDED_POINTS=2
GYRO_CHECK_SEC=20
GYRO_NORMAL_CONFIRM=6
GYRO_MODE=mqtt
GYRO_MODE_CONTINUOUS=1
GYRO_HYSTERESIS=0.3
ALERT_OK_SMS_GYRO=0
ALERT_OK_SMS=0
GYRO_SMS_MIN_SEC=120
GYRO_MQTT_TOPIC_SACLAY=Saclay/gyrophare
GYRO_MQTT_TOPIC_MEUDON=Meudon/gyrophare
# Délais
ALERT_CONTINUOUS_MINUTES=30
ALERT_LOOKBACK_MINUTES=120
# Logs
LOGLEVEL=INFO
# paramètres mail
SMTP_HOST=ssl0.ovh.net
SMTP_PORT=465
SMTP_SECURITY=STARTTLS
SMTP_USER=services@domo91.fr
SMTP_PASS=VHq3278YA#sGV*bh#mR
MAIL_FROM=services@domo91.fr
MAIL_TO=michel@mj91.fr
MAIL_TO_SACLAY=robots@domo91.fr,nicolas.thibaut@bw-paris-saclay.com
MAIL_FROM_SACLAY="DOMO91 Saclay <services@domo91.fr>"
MAIL_TO_MEUDON=robots@domo91.fr,chef@parismeudonermitage.com
MAIL_FROM_MEUDON="DOMO91 Meudon <services@domo91.fr>"
# --- Paramètres SMS ----
OVH_ENDPOINT=ovh-eu
OVH_APPLICATION_KEY=f725d07b2f98a195
OVH_APPLICATION_SECRET=5ca392a0a728e2395edd426bb1e11ad6
OVH_CONSUMER_KEY=305f2e8611e58b83930de84ee65c99f9
OVH_SMS_SERVICE=sms-jm164396-1
OVH_SMS_SENDER=DOMO91FR
SMS_RECEIVER=+33759600180
ALERT_SMS_TO_SACLAY=Michel:+33759600180
ALERT_SMS_TO_MEUDON=Michel:+33759600180
ALERT_SMS_CLIENT_TO_MEUDON=Sekou:+33625903364,Damien:+33680388259
ALERT_SMS_CLIENT_TO_SACLAY=Nicolas:+33682069405,Sabrina:+33650270939
# Activer/désactiver globalement lenvoi client
ALERT_SMS_CLIENT_ENABLED=1
# 1) couper les SMS internes
ALERT_INTERNAL_SMS_ENABLED=0# 0 = coupe tous les SMS “internes” (déclenchement)
# 2) limiter le flux par cooldown (par sonde)
ALERT_SMS_COOLDOWN_SEC=3600