/rpi-monitor-dht

RPi-Monitor extension for DHTxxxx sensor data

Primary LanguagePython

rpi-monitor-dht

The files needed to extend RPi-Monitor and show a DHT sensor data.

Introduction

RPi-Monitor is a nice monitoring tool for your Raspberry Pi. It provides a web view where you can watch things such as memory, CPU and temperature. It also can be easily extended to show the temperature and humidity read by a DHT sensor.

Stats

License

These files may be used under the terms of the MIT License, wich a copy is included in the download.

Dependencies

Configuration

  • Copy dht.conf to /etc/rpimonitor/template/
  • Add the following line to /etc/rpimonitor/data.conf
include=/etc/rpimonitor/template/dht.conf
  • Copy dht.png to /usr/share/rpimonitor/web/img
  • Copy __dht.conf to /etc/supervisor/conf.d/dht.conf
  • Modify /etc/supervisor/conf.d/dht.conf with your sensor model (11, 22 or 2302) and RPi pin
  • Run sudo groupadd supervisor;sudo usermod -a -G supervisor pi
  • Modify /etc/supervisor/supervisord.conf with the following:
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0770
chown=root:supervisor
  • Run sudo mkdir /usr/local/sbin/rpimonitor/
  • Copy dht.py to /usr/local/sbin/rpimonitor
  • Logout/login and run sudo service supervisor restart;sudo service rpimonitor restart

Your Improvements

If you add improvements to these files please send them to me as pull requests on GitHub. I will add them to the next release so that everyone can enjoy your work. You might also benefit from it as others may fix bugs in your files or may continue to enhance them.

Credits

This extension contains code written by the folks at Adafruit.

Thanks

With regards from

Luiz Kill