diff --git a/doorlockd-new/scripts/post_lock b/doorlockd-new/scripts/post_lock new file mode 100755 index 0000000..ac6f825 --- /dev/null +++ b/doorlockd-new/scripts/post_lock @@ -0,0 +1,3 @@ +#!/bin/bash + +mosquitto_pub -t kitchen/frontdoor/status -m "locked" diff --git a/doorlockd-new/scripts/post_unlock b/doorlockd-new/scripts/post_unlock new file mode 100755 index 0000000..0d27616 --- /dev/null +++ b/doorlockd-new/scripts/post_unlock @@ -0,0 +1,8 @@ +#!/bin/bash + +mosquitto_pub -t kitchen/frontdoor/status -m "unlocked" + +# Wakeup cashdesk +wol -i 172.23.2.44 00:0b:ca:94:13:f1 +wol -i 172.23.2.44 00:0b:ca:94:13:f1 +wol -i 172.23.2.44 00:0b:ca:94:13:f1