Communicates with Raspberry and sends sensor data to a MQTT broker.
- DHT Sensor (Temperature, Humidity)
- LDR (Luminosity)
- Presence Sensor
- MQTT
$ pip install paho-mqtt
https://github.com/adafruit/Adafruit_Python_DHT
# OSX
$ brew install mosquitto
# Ubuntu
$ apt-get install mosquitto
# Arch
$ pacman -S mosquitto
http://www.sergioaugrod.com.br/iot-troca-de-mensagens-com-o-mqtt/
- DHT PIN 17
- LDR PIN 27
- PRESENCE PIN 22
export MQTT_HOST=localhost
export MQTT_PORT=1883
export MQTT_USERNAME=fulgore
export MQTT_PASSWORD=21cef44a4866
$ systemctl start mosquitto
$ python fulgore/event.py
- Clone it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D