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
This commit is contained in:
Jonny Ervine
2015-06-17 12:34:27 +08:00
parent 2a2b02ed6c
commit a772eaeeb6
8 changed files with 517 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
The stucture of th.c is horrible at the moment. Everything is called from main()
At some point I'd like to break out the reading of the configuration into a separate sub-routine. The printing of the configureation
file details into the log file should also be disabled for a live situation.
TODO:
1. Stop printing out config to the log file.
2. Add an option to specify the config file on the command line.
3. Add the option to log to the syslog facility.
4. Maybe add code here to only start up when MySQL is available, and to wait/retry until this works.