Skip to content

Temperature & humidity logger for Raspberry Pi (SQLite backend, javascript charting front end)

License

Notifications You must be signed in to change notification settings

ralphhughes/TempLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TempLogger

Temperature & humidity logger for Raspberry Pi (SQLite backend, javascript charting front end)

Example screenshot

Hardware setup

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.

Installation instructions

Install dependencies (Raspbian Jessie)

sudo apt-get install git nginx php5-fpm sqlite3 php5-sqlite pigpio python-pigpio

Install dependencies (Raspbian Stretch)

sudo apt-get install git nginx php-fpm sqlite3 php-sqlite3 pigpio python-pigpio

sudo pigpiod

Setup nginx

Follow this raspberry pi official doc

sudo nano /etc/nginx/sites-enabled/default

Add index.php after index

Uncomment location .php { section

Install code

cd /var/www

git clone https://github.com/ralphhughes/TempLogger.git

Test you can read values from sensors

php readDHT22.php php readOneWire.php

Configure cron

crontab -e

Copy in the required commands from the crontab lines.txt file in this folder

Browse to the web interface

Fire up your browser and point it at https://ip-address-of-pi/TempLogger/

Upgrading

cd /var/www/TempLogger

git pull

About

Temperature & humidity logger for Raspberry Pi (SQLite backend, javascript charting front end)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published