1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

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>
This commit is contained in:
Ralf Ramsauer 2018-01-06 22:27:10 +01:00
parent 9ae9304551
commit 020ac1b38b
2 changed files with 2 additions and 12 deletions

View File

@ -1,8 +1,3 @@
#!/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"
mosquitto_pub -t kitchen/frontdoor/status -m "locked"

View File

@ -1,11 +1,6 @@
#!/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"
mosquitto_pub -t kitchen/frontdoor/status -m "unlocked"
# Wakeup cashdesk
wol -i 172.23.2.44 00:0b:ca:94:13:f1