OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › auto program bug – http://<server ip>:8080/zone
After my first day of the Auto Program executing (had lots of rain)…I ran into a problem. Once the schedule was done I couldn’t get to the /zone URL to log, everytime I got the server error page…here is some info I found:
On manual start “sudo python ospi.py” and then hitting the URL I got the following:
ValueError: time data u’60:00′ does not match format ‘%M:%S’
I checked for that value in the data dir and found this:
pi@ospi ~/OSPi/data $ grep 60:00 *
log.json:{“program”:”97″,”station”:4,”duration”:”60:00″,”start”:”10:00:00″,”date”:”2014-08-09″}
log.json:{“program”:”97″,”station”:3,”duration”:”60:00″,”start”:”09:00:00″,”date”:”2014-08-09″}
log.json:{“program”:”97″,”station”:2,”duration”:”60:00″,”start”:”08:00:00″,”date”:”2014-08-09″}
log.json:{“program”:”97″,”station”:1,”duration”:”60:00″,”start”:”07:00:00″,”date”:”2014-08-09″}
log.json:{“program”:”97″,”station”:0,”duration”:”60:00″,”start”:”06:00:00″,”date”:”2014-08-09″}
I removed the file and started up the app and things are back to normal…is this a possible bug?
Thanks
Rich
Yeah that is a bug – thanks for the report.
It looks like the function I’m using to decode duration doesn’t like 60 minutes as a value. I can see why – the python library wants 60m to be 1hr instead. I’ll fix it ASAP.
Scott
OK fixed – pull a fresh copy and that should resolve it – thanks again for the help in finding the bug!
Thanks for the quick response. I’ll give it a shot.
Awesome job on the program I really like it and wished I can somehow contribute.
Rich
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › auto program bug – http://<server ip>:8080/zone