Bookworm does not ship python3-lgpio; the pip module needs liblgpio.so.1. Build Joan's lg library during install and look on system dist-packages at runtime.
Co-authored-by: Cursor <cursoragent@cursor.com>
Userspace pulse timing misses DHT22 edges on Raspberry Pi OS, which produced empty readings. Log the real failure reason and clarify that PIN is BCM GPIO numbering.
Co-authored-by: Cursor <cursoragent@cursor.com>
libgpiod_pulsein fails with "Unable to set line N to input" on Raspberry Pi OS, so read via bitbang and release the pin after a single-shot run.
Co-authored-by: Cursor <cursoragent@cursor.com>
Preserves compatibility with existing /etc/thMonitor.conf files created before the table option was added.
Co-authored-by: Cursor <cursoragent@cursor.com>
Reject implausible readings, close DB connections on retry, and return chart data in chronological order.
Co-authored-by: Cursor <cursoragent@cursor.com>
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