changeset 269:50a0e2d7d9e3

more logging of overshoot
author Matt Johnston <matt@ucc.asn.au>
date Tue, 10 Nov 2015 23:25:03 +0800
parents 4632018d1c80
children 9d0313b685ae c0f903cf8268
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())