Relay alarm events to MQTT instead of IRC

This commit is contained in:
polyfloyd 2025-06-04 13:21:49 +02:00
parent 00bc26baf5
commit 8bf379d3eb

View file

@ -11,10 +11,7 @@ DESCR="$3"
SIA_CODE_STR="$4"
SIA_CODE_DESCR="$5"
# Ignore communication tests.
if [[ ! "$CODE" =~ "RP" ]]; then
irc-say "Alarm event: $CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
fi
mqtt-simple -h mqtt.bitlair.nl -p 'bitlair/alarm/events' -m "$CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
case "$CODE" in
C[LAFJKQS]*):