Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Get and Display Rain Sensor #25409

    WayneZ
    Participant

    Thanks for that.

    Makes sense – I’ll have a look at adding the code as described by Denny

    Wayne

    in reply to: 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.

Viewing 2 posts - 1 through 2 (of 2 total)