An open API service indexing awesome lists of open source software.

https://github.com/cc-d/madmike-temperature-gauge

temperature gauge for the device which records, stores, and displays temperature data for madmike's salsa
https://github.com/cc-d/madmike-temperature-gauge

Last synced: 3 months ago
JSON representation

temperature gauge for the device which records, stores, and displays temperature data for madmike's salsa

Awesome Lists containing this project

README

          

GLOBAL VARIABLES
===================
All values are found at the top of run.py

db, table = '/home/pi/madmike-temperature-gauge/history.db', 'test'

db = Exact path to your sqlite3 db file

table = Name of table to use, I've already created a table called 'prod' with the correct schema, change from
'test' to 'prod' whenever you are ready to start recording ONLY real data.

sendto = 'ccarterdev ATSYMBOL gmail DOTSYMBOL com'

sendto = The email address to warning emails to.

max\_high\_temp\_f, max\_low\_temp\_f = 50, 32

The desired temperature range, anything more or less will send emails to the sendto address.

HOW TO RUN
==============
1. Start Flask Webserver "python3 run.py"

2. Add an entry to crontab for "python3 poll.py" (preferably as root) every x interval (suggested 15 minutes). poll.py inserts the live data into the database.