Raspberry Pi (v1) with temperature/humidity sensor (DHT11) sending MQTT messages to MQTT broker while displaying current temperature and humidity on 2x16 LCD display. Includes MQTT subscriber to push MQTT metrics to Graphite / Grafana for easy graphing.
- Raspberry Pi v1
- Chinese DHT11 temperature / humidity sensor
- Chinese 2x16 LCD display
- Install Adafruit Python DHT library on you Raspberry Pi
- Install all the requirements
pip install -r requirements.txt
- Start mqtt broker (testing only)
docker run -d --name mqtt-broker -p 1883:1883 -p 9001:9001 toke/mosquitto
- Have Graphite with Grafana installed
- Follow the instructions here to enable I2C and find your display address
mqtt
andgraphite
are locally resolvable domain names in my case, change them to reflect your settings
- Add TLS
- Buy a better sensor (DHT11 has accuracy of +/- 2 degrees for temperature or +/- 5% for humidity)