Temperature & humidity logger for Raspberry Pi (SQLite backend, javascript charting front end)
Connect one of more DS18B20 sensors, or DHT22/AM2302 sensors to the GPIO pins on the pi. Make a note of the pins you connected them to.
sudo apt-get install git nginx php5-fpm sqlite3 php5-sqlite pigpio python-pigpio
sudo apt-get install git nginx php-fpm sqlite3 php-sqlite3 pigpio python-pigpio
sudo pigpiod
Follow this raspberry pi official doc
sudo nano /etc/nginx/sites-enabled/default
Add index.php
after index
Uncomment location .php {
section
cd /var/www
git clone https://github.com/ralphhughes/TempLogger.git
php readDHT22.php
php readOneWire.php
crontab -e
Copy in the required commands from the crontab lines.txt
file in this folder
Fire up your browser and point it at https://ip-address-of-pi/TempLogger/
cd /var/www/TempLogger
git pull