bennettp123 / temp.py

Very simple temperature logger and web viewer for raspberry pi, using the DS18B20 temperature sensor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry Pi Temperature Logger

Largely ripped from https://github.com/Pyplate/rpi_temp_logger, but modified to be non-cgi. (Produces static html content).

Installation and setup: see db-setup.sh and crontab.example.

Sample nginx config:

    location /temperature {
            root /home/bennett/src/temp.py/www;
            allow all;
            expires 60;
    }
    
    location /temperature/latest.json {
            root /home/bennett/src/temp.py/www;
            allow all;
            expires 2;
    }

About

Very simple temperature logger and web viewer for raspberry pi, using the DS18B20 temperature sensor.


Languages

Language:Python 65.3%Language:HTML 32.8%Language:Shell 1.9%