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>
This commit is contained in:
2026-08-14 19:40:49 +08:00
co-authored by Cursor
parent c6616bd855
commit 6f12d2c459
8 changed files with 387 additions and 286 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
## TO DO LIST
- Update the single run python script so that it reads the MySQL database for the previous values of temperature and humidity, as it doesn't loop and therefore doesn't maintain the previous readings.
- Consider migrating from the legacy Python 2 / dhtreader.so stack to a maintained
DHT library (e.g. Adafruit CircuitPython or lgpio-based driver) for current Pi OS releases.
- Externalize getData.php database credentials into a config file outside the web root.