# HG changeset patch # User Matt Johnston # Date 1361365722 -28800 # Node ID fa79666fb375263ffb8a9be8e963c7f2f8cd2257 # Parent 8cc78243af71726dc48bb2045a59835aa48ba87c add nowort mode diff -r 8cc78243af71 -r fa79666fb375 py/fridge.py --- a/py/fridge.py Mon Feb 18 23:32:19 2013 +0800 +++ b/py/fridge.py Wed Feb 20 21:08:42 2013 +0800 @@ -104,7 +104,9 @@ / self.OVERSHOOT_MAX_DIV D("on_time %(on_time)f, overshoot %(overshoot)f" % locals()) - if wort is not None and (wort - overshoot) < params.fridge_setpoint: + if not params.nowort \ + and wort is not None \ + and (wort - overshoot) < params.fridge_setpoint: L("wort has cooled enough, %(wort)f" % locals() ) turn_off = True elif fridge is not None and fridge < fridge_min: @@ -119,7 +121,9 @@ else: # fridge is off turn_on = False - if wort is not None and wort >= wort_max: + if not params.nowort \ + and wort is not None \ + and wort >= wort_max: L("Wort is too hot %f, max %f" % (wort, wort_max)) turn_on = True elif fridge is not None and fridge >= fridge_max: diff -r 8cc78243af71 -r fa79666fb375 py/params.py --- a/py/params.py Mon Feb 18 23:32:19 2013 +0800 +++ b/py/params.py Wed Feb 20 21:08:42 2013 +0800 @@ -15,6 +15,7 @@ 'overshoot_delay': 720, # 12 minutes 'overshoot_factor': 1, # ÂșC 'disabled': False, + 'nowort': False, } class Params(dict):