-
Notifications
You must be signed in to change notification settings - Fork 3
A python app to monitor a variety of GPIO pins and publish MQTT messages when the state changes
License
kylegordon/mqtt-gpio-trigger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
SUMMARY ======= This script will parse a list of pins to be monitored from /etc/mqtt-gpio-trigger/ and publish MQTT message whenever they change state. If it's run on a Raspberry Pi, you will need the WiringPi library from https://projects.drogon.net/raspberry-pi/wiringpi/ as the gpio command is used to export the pins to the sysfs interface. INSTALL ======= sudo apt-get install python-mosquitto git mkdir /etc/mqtt-gpio-trigger/ git clone git://github.com/kylegordon/mqtt-gpio-trigger.git /usr/local/mqtt-gpio-trigger/ cp /usr/local/mqtt-gpio-trigger/mqtt-gpio-trigger.cfg.example /etc/mqtt-gpio-trigger/mqtt-gpio-trigger.cfg cp /usr/local/mqtt-gpio-trigger/mqtt-gpio-trigger.init /etc/init.d/mqtt-gpio-trigger update-rc.d mqtt-gpio-trigger defaults cp /usr/local/mqtt-gpio-trigger/mqtt-gpio-trigger.default /etc/default/mqtt-gpio-trigger ## Edit /etc/default/mqtt-gpio-trigger and /etc/mqtt-gpio-trigger/mqtt-gpio-trigger.cfg to suit /etc/init.d/mqtt-gpio-trigger start
About
A python app to monitor a variety of GPIO pins and publish MQTT messages when the state changes
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published