1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 18:34:25 +01:00
doorlockd-mirror/doorlockd/scripts/post_unlock

14 lines
460 B
Plaintext
Raw Normal View History

2015-05-25 15:47:44 +02:00
#!/bin/bash
# Set blue moodlights
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
wol -i 172.23.2.44 00:0b:ca:94:10:ca