Relay alarm events to MQTT instead of IRC
This commit is contained in:
parent
00bc26baf5
commit
8bf379d3eb
1 changed files with 1 additions and 4 deletions
|
@ -11,10 +11,7 @@ DESCR="$3"
|
||||||
SIA_CODE_STR="$4"
|
SIA_CODE_STR="$4"
|
||||||
SIA_CODE_DESCR="$5"
|
SIA_CODE_DESCR="$5"
|
||||||
|
|
||||||
# Ignore communication tests.
|
mqtt-simple -h mqtt.bitlair.nl -p 'bitlair/alarm/events' -m "$CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
|
||||||
if [[ ! "$CODE" =~ "RP" ]]; then
|
|
||||||
irc-say "Alarm event: $CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$CODE" in
|
case "$CODE" in
|
||||||
C[LAFJKQS]*):
|
C[LAFJKQS]*):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue