Open atuxnull opened 3 years ago
You can create a MQTT client script https://unix.stackexchange.com/questions/188525/how-to-subscribe-a-bash-script-as-a-mqtt-client that subscribes to a topic on reed switch openings or use node-red or ifttt to create subscribe nodes that trigger script nodes. https://creativedata.stream/iot-with-node-red-and-python/
On Wed, Nov 18, 2020 at 8:39 AM John Tuxies notifications@github.com wrote:
Hi there. I am running Freeboard on my Raspberry PI along with Mosquitto (MQTT broker). I have a few reed switches to monitor the status of doors/windows around the house and i present their status on Freeboard. So far so good. I would like to call a script when there reed switch is open eg /home/pi/scripts/door_open.sh How can i do that please?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Freeboard/freeboard/issues/268, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFI3OPVYAUOYT5QHS53MILSQPFC3ANCNFSM4TZ7PX2A .
-- Paul Schragger
Hi there. I am running Freeboard on my Raspberry PI along with Mosquitto (MQTT broker). I have a few reed switches to monitor the status of doors/windows around the house and i present their status on Freeboard. So far so good. I would like to call a script when there reed switch is open eg /home/pi/scripts/door_open.sh How can i do that please?