1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-17 04:29:11 +01:00
doorlockd-mirror/doorlockd/scripts/post_unlock
Ralf Ramsauer 020ac1b38b scripts: simplify mqtt
Only publish door status topic, rest will be done by the opennhab server.

Username, password and mqtt's hostname are stored in user's local .config.

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2018-01-06 22:29:30 +01:00

9 lines
199 B
Bash
Executable File

#!/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