# HG changeset patch # User Matt Johnston # Date 1366895033 -28800 # Node ID de4abcbe8f462d80f1c3b2aab647e309ee6427a7 # Parent fa79666fb375263ffb8a9be8e963c7f2f8cd2257 make fridge air range a parameter diff -r fa79666fb375 -r de4abcbe8f46 py/fridge.py --- a/py/fridge.py Wed Feb 20 21:08:42 2013 +0800 +++ b/py/fridge.py Thu Apr 25 21:03:53 2013 +0800 @@ -6,8 +6,6 @@ class Fridge(gevent.Greenlet): OVERSHOOT_MAX_DIV = 1800.0 # 30 mins - FRIDGE_AIR_MIN_RANGE = 3 # ºC - FRIDGE_AIR_MAX_RANGE = 3 def __init__(self, server): gevent.Greenlet.__init__(self) @@ -62,8 +60,8 @@ params = self.server.params - fridge_min = params.fridge_setpoint - self.FRIDGE_AIR_MIN_RANGE - fridge_max = params.fridge_setpoint + self.FRIDGE_AIR_MAX_RANGE + fridge_min = params.fridge_setpoint - params.fridge_range_lower + fridge_max = params.fridge_setpoint + params.fridge_range_upper wort_min = params.fridge_setpoint wort_max = params.fridge_setpoint + params.fridge_difference diff -r fa79666fb375 -r de4abcbe8f46 py/params.py --- a/py/params.py Wed Feb 20 21:08:42 2013 +0800 +++ b/py/params.py Thu Apr 25 21:03:53 2013 +0800 @@ -16,6 +16,8 @@ 'overshoot_factor': 1, # ºC 'disabled': False, 'nowort': False, + 'fridge_range_lower': 3, + 'fridge_range_upper': 3, } class Params(dict):