ystrem / temperature

Measuring temperature with DS18B20 on Raspberry pi and display measured data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

temperature

Measuring temperature with DS18B20 on Raspberry pi and display measured data.

Here is sources which I used:

  1. Reading temperature from DS18B20 - Read temperature from thermometer, then the value save to the t.log and sqlite DB .

  2. Displaying measured data - js library, read file temp.log, and display measured data in graph.

https://github.com/danvk/dygraphs

  1. Cron daemon in linux run the python code every minute (Read temperature from thermometer, then the value save to the t.log and sqlite db for late usage).

pi@raspberrypi ~/temperature $ crontab -e

To the bottom of the file add this line.

*/5 * * * * pi cd temperature && python /home/pi/temperature/temperature.py

About

Measuring temperature with DS18B20 on Raspberry pi and display measured data.


Languages

Language:Python 100.0%