OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Get and Display Rain Sensor › Re: Re: Get and Display Rain Sensor
November 26, 2013 at 8:24 am #25405
I’ve just done a github update to my OSPi directory and now have a strange problem.
All was working fine, when i set the “use rain sensor” option I got the following error:
Unhandled exception in thread started by
Traceback (most recent call last):
File "ospi.py", line 338, in timing_loop
File "ospi.py", line 86, in check_rain
if not GPIO.input(pin_rain_sense):
NameError: global name 'pin_rain_sense' is not defined
and it appears that OSPi has locked, however a refresh updates the CPU temp, but not the time and date. A quick look at the code and I don’t see anywhere that “pin_rain_sense” is defined.
Interested to see if this is a specific fault to my setup or if it’s a bug.