Skip to content

Read data from RS485 thermometer via USB converter and create RRD graphs

License

Notifications You must be signed in to change notification settings

jas02/thermometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thermometer

This set of scripts reads temperature from RS485 thermometer ('TQS3 I' from www.papouch.com) via RS485/USB converter ('SB485L' from www.papouch.com) using script get_temperature.py.

Data readed from thermometer are saved into the SQLite database every minute using cron record:

*/1 * * * * /usr/bin/python /usr/bin/get_temperature.py > /dev/null 2>&1

Then, we have set of scripts, that creates and updates RRD graphs, creates PNG pictures (every five minutes) and copy those PNG files into web root directory.

Cron entry for RRD updates:

*/5 * * * * /usr/bin/python /usr/local/share/graphs/bin/update_rrds.py && /usr/local/share/graphs/bin/create_graph.sh  > /dev/null 2>&1

All scripts are running on OpenWRT Linux distribution on TP-LINK router.

About

Read data from RS485 thermometer via USB converter and create RRD graphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages