OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Get and Display Rain Sensor Re: Re: Get and Display Rain Sensor

#25405

WayneZ
Participant

Hi There,

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
check_rain()
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.