Consolider l'envoi de notifications
This commit is contained in:
@@ -392,7 +392,7 @@ def depassement_depuis_30min(site: str, sonde: str, seuil: float) -> bool:
|
||||
def send_synology_chat(message: str, *, username: str | None = None) -> bool:
|
||||
webhook = (
|
||||
_env_str(f"SYNO_CHAT_WEBHOOK_{SITE}") or
|
||||
_env_str(f"SYNO_CHAT_WEBHOOK_{SITE.upper()}") or
|
||||
_env_str(f"SYNO_CHAT_WEBHOOK_MONITOR") or
|
||||
_env_str("SYNO_CHAT_WEBHOOK")
|
||||
)
|
||||
if not webhook:
|
||||
|
||||
Reference in New Issue
Block a user