After uploading the latest version (15) of SmartPlantPi.py I am getting an error when I press the rotary select button. The dashboard gets stuck on 'Rotary Select', and the OLED locks again. The script continues to 'tick', but won't accept any other button pushes, etc.
The script eventually crashes, with this output:
checkandWater: 65.00 Threshold / 59.23 Current
Watering Plant
Tick! The time is: 2017-07-23 07:54:46.227847
Tick! The time is: 2017-07-23 07:55:46.227473
Tick! The time is: 2017-07-23 07:56:46.225922
Tick! The time is: 2017-07-23 07:57:46.225999
Tick! The time is: 2017-07-23 07:58:46.227327
Tick! The time is: 2017-07-23 07:59:46.227722
Tick! The time is: 2017-07-23 08:00:46.225889
Tick! The time is: 2017-07-23 08:01:46.226677
Tick! The time is: 2017-07-23 08:02:46.226350
Tick! The time is: 2017-07-23 08:03:46.226309
done
Traceback (most recent call last):
File "SmartPlantPi.py", line 999, in <module>
jobRotaryTimeOut = interpretRotary.interpretRotary(rotary, display, OLEDLock, scheduler,publishStatusToPubNub, jobRotaryTimeOut, updateState, publishAlarmToPubNub, saveState)
File "/home/pi/Adafruit_Python_GPIO/SDL_Pi_SmartPlantPi/interpretRotary.py", line 293, in interpretRotary
if (DEBUG):
NameError: global name 'DEBUG' is not defined
pi@raspberrypi:~/Adafruit_Python_GPIO/SDL_Pi_SmartPlantPi $
Attachments: