I have implemented the Raspberry Pi logging and it seems to work most of the time. However sometimes the it doesn’t record the logging data. The Sprinklers.php shows a station is running but with zero time elapsed. However sometimes it does work and correctly log times.
Not very well versed in Linux, but I have changed the line in rc.local from:
(Dan – note there is a typo in your blog: zoneckeck.py)
Still getting intermittant failure of the logging script. It seems like the Python scripts has locked up. How do I find out whats happening? Is there an error log I can check out?
I think it might be when the Opensprinkler server does not respond quickly enough to the UrlOpen request. If I run the script in the foreground without the deamon stuff and wait a while until it locks, when I exit the scripts it looks like it was in the url libraries.
I’m thinking there should be some sort of error/timeout wrapper around the call to to OpenSprinkler? Any thoughts?