Mercurial > templog
changeset 568:8eb16d97ed2b
more logging of overshoot
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 10 Nov 2015 23:25:03 +0800 |
parents | f93290b37abf |
children | d7575050e4be ecec38cbad33 |
files | py/fridge.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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())