1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-16 03:59:11 +01:00
doorlockd-mirror/doorlockd/scripts/post_lock
Ralf Ramsauer 3721259f3e scripts: add nodered twitter sink
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 19:22:43 +02:00

9 lines
293 B
Bash
Executable File

#!/bin/bash
# Send command twice
mosquitto_pub -h sushi.binary.kitchen -t kitchen/shutdown -m ""
mosquitto_pub -h sushi.binary.kitchen -t kitchen/shutdown -m ""
# Send lock to Christians Node Red for Twitter sink
mosquitto_pub -h sushi.binary.kitchen -t kitchen/frontdoor/status -m "locked"