From 1363955118976a92f8f0a665565dbc298fdcdd41 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Sat, 7 Dec 2019 20:31:58 +0100 Subject: [PATCH] mqtt ringstrasse --- kino/kino.conf | 1 + kino/truhe_an.sh | 3 ++- kino/truhe_aus.sh | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kino/kino.conf b/kino/kino.conf index ec2c7f8..1762119 100644 --- a/kino/kino.conf +++ b/kino/kino.conf @@ -3,3 +3,4 @@ PWR_LEINI=2 PWR_TRUHE=3 LIRC_BEAMER_AN="Beamer KEY_POWER" LIRC_BEAMER_AUS="Beamer KEY_POWER2" +MQTT=mqtt.chaos diff --git a/kino/truhe_an.sh b/kino/truhe_an.sh index 11c3c40..ab15c8a 100755 --- a/kino/truhe_an.sh +++ b/kino/truhe_an.sh @@ -4,4 +4,5 @@ ME=$(readlink -f "$0") MP=$(dirname "$ME") . ${MP}/kino.conf -sispmctl -o ${PWR_TRUHE} #Truhe +#sispmctl -o ${PWR_TRUHE} #Truhe +mosquitto_pub -h ${MQTT} -t homie/Truhe-switch/SYSTEM/gpio12/set -m 1 diff --git a/kino/truhe_aus.sh b/kino/truhe_aus.sh index fdad2e1..bd1be9b 100755 --- a/kino/truhe_aus.sh +++ b/kino/truhe_aus.sh @@ -4,4 +4,6 @@ ME=$(readlink -f "$0") MP=$(dirname "$ME") . ${MP}/kino.conf -sispmctl -f ${PWR_TRUHE} #Truhe +#sispmctl -f ${PWR_TRUHE} #Truhe + +mosquitto_pub -h ${MQTT} -t homie/Truhe-switch/SYSTEM/gpio12/set -m 0