From 2dec016b71cca62c6409298571d9bf320043a818 Mon Sep 17 00:00:00 2001 From: Jonny Ervine Date: Thu, 18 Jun 2015 10:30:14 +0800 Subject: [PATCH] modified: README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 842185c..0b3bfc1 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,16 @@ The th.c code was modified so that a forth column in MySQL is used (an auto incr Using a thd init script means that we don't need to modify /etc/rc.local - which is useful for me as this file is used by other projects and can be overwritten at times. +## UPDATED - 17 June 2015 +There are now two python scripts (with logging added rather than printing to stdout) + + - temp-humid-python-loop.py - this code should loop and run the temperature/humidity readind every 60 seconds. I have tried to add code to ensure that this loops every 60 seconds regardless of how long the actual reading takes. Due to occasional reading errors, the function to read temperature and humidity can vary in length - dependent upon the timeout and number of retries conifgured. The code hsould time the length of the sensorRead function and subtract this time from the configured reading interval. Tests have shown this is reasonably accurate but some drift has still been observed. + + - temp-humid-python-single.py - this code is a simplified python script taken from the looping script. The looping logic has been removed, and a single pass is made reading the temperature and humidity readings. Any errors from a reading during this single pass are retried according to the timeout and retries configured though - so a single read should succeed. This script can be put into a cron job to run on a regularly scheduled basis, which might be less prone to drift than the looped version. + + - updateMysql.py - this code has been cleaned up so that it logs to the logfile rather than to stdout by default. + + ## UPDATED - 17 June 2015 Looking to replace the C code with a python script that takes a configuration file. Added here: