From 3721259f3e767e799fa13ebc04ea0b8629c8209f Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Wed, 20 Jul 2016 19:22:17 +0200 Subject: [PATCH] scripts: add nodered twitter sink Signed-off-by: Ralf Ramsauer --- doorlockd/scripts/post_lock | 3 +++ doorlockd/scripts/post_unlock | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doorlockd/scripts/post_lock b/doorlockd/scripts/post_lock index f86be9b..4a469ff 100755 --- a/doorlockd/scripts/post_lock +++ b/doorlockd/scripts/post_lock @@ -3,3 +3,6 @@ # 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" diff --git a/doorlockd/scripts/post_unlock b/doorlockd/scripts/post_unlock index 44a81b0..ba7c5f1 100755 --- a/doorlockd/scripts/post_unlock +++ b/doorlockd/scripts/post_unlock @@ -4,6 +4,9 @@ mosquitto_pub -h sushi.binary.kitchen -t "kitchen/moodlights/set/a" -m "#0000ff" mosquitto_pub -h sushi.binary.kitchen -t "kitchen/moodlights/set/a" -m "#0000ff" +# Send lock to Christians Node Red for Twitter sink +mosquitto_pub -h sushi.binary.kitchen -t kitchen/frontdoor/status -m "unlocked" + # Wakeup cashdesk wol -i 172.23.2.44 00:0b:ca:94:10:ca wol -i 172.23.2.44 00:0b:ca:94:10:ca