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

startup scripts: use mosquitto

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
Ralf Ramsauer 2016-06-23 19:35:43 +02:00
parent 40d871b2d2
commit f5c67445e9
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
wget -O /dev/null --timeout 3 "http://homer.binary.kitchen/set?color=000000" > /dev/null 2>&1
# Send command twice
mosquitto_pub -h sushi.binary.kitchen -t kitchen/shutdown -m ""
mosquitto_pub -h sushi.binary.kitchen -t kitchen/shutdown -m ""

View File

@ -1,3 +1,4 @@
#!/bin/bash
wget -O /dev/null --timeout 3 "http://homer.binary.kitchen/set?color=0000FF" > /dev/null 2>&1
# Set blue moodlights
mosquitto_pub -h sushi.binary.kitchen -t "kitchen/moodlights/set/a" -m "#0000ff"