Commit Graph
13 Commits
Author SHA1 Message Date
jonnyandCursor 85f4107938 Default database table to TempHumid when missing from config.
Preserves compatibility with existing /etc/thMonitor.conf files created before the table option was added.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 22:09:04 +08:00
jonnyandCursor 2d1e319160 Make the MySQL table name configurable instead of hardcoding TempHumid.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 11:44:18 +08:00
jonnyandCursor adb8573833 Migrate monitoring scripts from Python 2 to Python 3.
Replace the dhtreader.so extension with adafruit-circuitpython-dht and run the daemon with python3.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 19:53:00 +08:00
jonnyandCursor 6f12d2c459 Fix sensor validation, MySQL retries, and chart query bugs.
Reject implausible readings, close DB connections on retry, and return chart data in chronological order.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 19:40:49 +08:00
Jonny Ervine e5253600f2 new file: readMysql.py 2015-07-10 19:35:28 +08:00
Jonny Ervine df055d4521 modified: temp-humid-read-single.py 2015-07-10 19:35:04 +08:00
Jonny Ervine 5fd2fc3b9b modified: temp-humid-read-loop.py
modified:   temp-humid-read-single.py
2015-06-24 10:12:48 +08:00
Jonny Ervine edf7161665 modified: python_code/temp-humid-read-loop.py
modified:   python_code/temp-humid-read-single.py
2015-06-23 07:08:25 +08:00
Jonny Ervine 3c4b73a171 modified: temp-humid-read-loop.py
modified:   temp-humid-read-single.py
	modified:   temphumid.conf
	modified:   updateMysql.py
2015-06-19 14:30:10 +08:00
Jonny Ervine 16bca797d2 Create thMonitord 2015-06-18 11:36:00 +08:00
Jonny Ervine 05431d1b63 modified: python_code/temp-humid-read-loop.py
new file:   python_code/temp-humid-read-single.py
	modified:   python_code/updateMysql.py
2015-06-18 10:20:47 +08:00
Jonny Ervine 3810ccb1b6 modified: python_code/temp-humid-read-loop.py 2015-06-18 09:30:01 +08:00
Jonny Ervine a772eaeeb6 new file: c_code/th
new file:   c_code/th.c
	new file:   c_code/th.c-NOTES
	new file:   c_code/thd
	new file:   python_code/dhtreader.so
	new file:   python_code/temp-humid-read-loop.py
	new file:   python_code/temphumid.conf
	new file:   python_code/updateMysql.py
	deleted:    dhtreader.so
	deleted:    temp-humid-read-loop.py
	deleted:    temphumid.conf
	deleted:    th.c
	deleted:    th.c-NOTES
	deleted:    thd
	deleted:    updateMysql.py
2015-06-17 12:34:27 +08:00