diff py/fridge.py @ 233:19569cb5ed46

better arg parser. seems close to ready
author Matt Johnston <matt@ucc.asn.au>
date Sat, 11 Apr 2015 23:32:59 +0800
parents a01b7bccccd3
children ffe25107d520
line wrap: on
line diff
--- a/py/fridge.py	Sat Apr 11 21:09:13 2015 +0800
+++ b/py/fridge.py	Sat Apr 11 23:32:59 2015 +0800
@@ -81,6 +81,8 @@
         if fridge is None:
             W("Invalid fridge sensor")
 
+        D("fridge on %s" % self.is_on())
+
         if self.is_on():
             turn_off = False
             on_time = self.server.now() - self.fridge_on_clock
@@ -109,6 +111,7 @@
         else:
             # fridge is off
             turn_on = False
+            D("fridge %(fridge)f max %(fridge_max)f wort %(wort)f wort_max %(wort_max)f" % locals())
             if not params.nowort \
                 and wort is not None \
                 and wort >= wort_max: