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
- Host: GitHub
- URL: https://github.com/cc-d/madmike-temperature-gauge
- Owner: cc-d
- License: mit
- Created: 2018-07-05T20:14:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-04T00:28:15.000Z (over 7 years ago)
- Last Synced: 2025-03-02T21:17:32.659Z (over 1 year ago)
- Language: HTML
- Size: 1.3 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.db
- License: LICENSE
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.