emonPi LCD V3.0 Update: SSH toggle, Shutdown, Config & CPU reduction

I tried to use the backlight_timeout feature (the emonpi is in my kitchen so I don’t want it on all the time) but it has clearly not been tested with non-zero values.

File "./emonPiLCD.py", line 543, in main
    if (backlight_timeout) and now - buttonPress_time > backlight_timeout and lcd.backlight:
NameError: global name 'now' is not defined

Got it working by adding a global declaration of “now”.