Mercurial > templog
diff py/fridge.py @ 269:50a0e2d7d9e3
more logging of overshoot
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 10 Nov 2015 23:25:03 +0800 |
parents | 20c89630be6c |
children | 11cebd6f0bfb |
line wrap: on
line diff
--- a/py/fridge.py Tue Nov 10 21:10:57 2015 +0800 +++ b/py/fridge.py Tue Nov 10 23:25:03 2015 +0800 @@ -99,7 +99,9 @@ if not params.nowort and wort is not None: if wort - overshoot < params.fridge_setpoint: - L("wort has cooled enough, %(wort)f" % locals() ) + max_div = self.OVERSHOOT_MAX_DIV + overshoot_factor = params.overshoot_factor + L("wort has cooled enough, %(wort)fº (overshoot %(overshoot)fº = %(overshoot_factor)f * min(%(on_time)f) / %(max_div)f)" % locals() ) turn_off = True elif fridge is not None and fridge < fridge_min: W("fridge off fallback, fridge %(fridge)f, min %(fridge_min)f" % locals())