jonny and Cursor
8010cd9045
Require --install and print help when install.sh is run with no arguments.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-14 23:18:34 +08:00
jonny
6c73f3e706
Add setup/install script
2026-08-14 23:08:28 +08:00
jonny and Cursor
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
jonny and Cursor
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
c6616bd855
Merge branch 'master' of ssh://github.com/jervine/rpi-temp-humid-monitor
2015-07-21 10:22:41 +08:00
Jonny Ervine
82bc49ad72
new file: th.conf
2015-07-21 10:22:08 +08:00
Jonny Ervine
e2d56bf2b4
Update README.md
2015-07-17 10:53:46 +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
c2857e4b77
modified: TODO
2015-07-09 19:41:47 +08:00
Jonny Ervine
1f5baacdcc
modified: README.md
2015-06-24 10:53:33 +08:00
Jonny Ervine
a4233dcea2
modified: README.md
2015-06-24 10:13:45 +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
6b4d6251eb
modified: README.md
...
modified: TODO
2015-06-23 07:10:32 +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
aeb3325817
modified: README.md
2015-06-19 15:17:17 +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
329171e0e7
Merge branch 'master' of ssh://github.com/jervine/rpi-temp-humid-monitor
2015-06-18 11:14:30 +08:00
Jonny Ervine
c364505278
modified: TODO
2015-06-18 11:13:57 +08:00
Jonny Ervine
db813d928d
Update README.md
2015-06-18 10:34:08 +08:00
Jonny Ervine
2dec016b71
modified: README.md
2015-06-18 10:30:14 +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
56d37bd71e
modified: TODO
2015-06-17 12:58:28 +08:00
Jonny Ervine
bfec843124
Merge branch 'master' of ssh://github.com/jervine/rpi-temp-humid-monitor
2015-06-17 12:40:06 +08:00
Jonny Ervine
3bcbc18e44
renamed: Makefile -> c_code/Makefile
...
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:39:30 +08:00
Jonny Ervine
da5cba1220
Delete updateMysql.py
2015-06-17 12:37:04 +08:00
Jonny Ervine
b6315e1c35
Delete thd
2015-06-17 12:36:51 +08:00
Jonny Ervine
2ea0012b7e
Delete th.c-NOTES
2015-06-17 12:36:36 +08:00
Jonny Ervine
4e895ba80c
Delete th.c
2015-06-17 12:36:23 +08:00
Jonny Ervine
4db054f131
Delete temphumid.conf
2015-06-17 12:36:10 +08:00
Jonny Ervine
0e045fc8b7
Delete temp-humid-read-loop.py
2015-06-17 12:35:47 +08:00
Jonny Ervine
02f78682db
Delete dhtreader.so
2015-06-17 12:35:32 +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
Jonny Ervine
2a2b02ed6c
Create TODO
2015-06-17 12:32:12 +08:00
Jonny Ervine
3aa44950de
Update README.md
2015-06-17 12:29:39 +08:00
Jonny Ervine
a5930acaf8
modified: README.md
...
modified: th.c
2015-06-17 12:26:47 +08:00
Jonny Ervine
d290c2a094
new file: dhtreader.so
...
new file: temp-humid-read-loop.py
new file: temphumid.conf
new file: updateMysql.py
modified: th.c
2015-06-17 12:20:54 +08:00
Jonny Ervine
05f04bc740
modified: th.c
2015-06-11 12:34:26 +08:00
Jonny Ervine
eff1a8321d
modified: Makefile
2015-06-11 12:33:04 +08:00
Jonny Ervine
7bb0f38bc9
modified: th.c
2015-06-11 12:19:44 +08:00
Jonny Ervine
9a54608649
new file: Makefile
...
modified: th.c
2015-06-11 12:18:18 +08:00
Jonny Ervine
09175a7e3d
Create th.c-NOTES
2015-06-10 22:57:45 +08:00
Jonny Ervine
9bf9c49320
Update th.c
2015-06-10 22:54:51 +08:00
Jonny Ervine
83ebcbc029
Update thd
2015-06-10 22:52:47 +08:00
Jonny Ervine
c350e87672
Create th.c
...
The username and password for the MySQL connection are hardcoded. This should be altered at some point.
2015-06-03 11:47:21 +08:00
Jonny Ervine
bfddcd42e2
Create getData.php
...
The PHP file that will retrieve the data from the database. Currently hardcoded to the last 360 entries. This will be altered at some point.
2015-06-03 11:26:58 +08:00
Jonny Ervine
ad14c93895
Create temp-humid-chart.html
...
Graph HTML file using Google Chart. Note that it calls getData.php to read the data from MySQL and return it to this HTML file in JSON format.
2015-06-03 11:25:14 +08:00
Jonny Ervine
9edd470dfc
Create thd
...
My initial attempt at an init script for th - using the vsftpd init script heavily as a tempate for this.
2015-06-03 11:23:52 +08:00