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>