Mercurial > templog
comparison 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 |
comparison
equal
deleted
inserted
replaced
268:4632018d1c80 | 269:50a0e2d7d9e3 |
---|---|
97 / self.OVERSHOOT_MAX_DIV | 97 / self.OVERSHOOT_MAX_DIV |
98 D("on_time %(on_time)f, overshoot %(overshoot)f" % locals()) | 98 D("on_time %(on_time)f, overshoot %(overshoot)f" % locals()) |
99 | 99 |
100 if not params.nowort and wort is not None: | 100 if not params.nowort and wort is not None: |
101 if wort - overshoot < params.fridge_setpoint: | 101 if wort - overshoot < params.fridge_setpoint: |
102 L("wort has cooled enough, %(wort)f" % locals() ) | 102 max_div = self.OVERSHOOT_MAX_DIV |
103 overshoot_factor = params.overshoot_factor | |
104 L("wort has cooled enough, %(wort)fº (overshoot %(overshoot)fº = %(overshoot_factor)f * min(%(on_time)f) / %(max_div)f)" % locals() ) | |
103 turn_off = True | 105 turn_off = True |
104 elif fridge is not None and fridge < fridge_min: | 106 elif fridge is not None and fridge < fridge_min: |
105 W("fridge off fallback, fridge %(fridge)f, min %(fridge_min)f" % locals()) | 107 W("fridge off fallback, fridge %(fridge)f, min %(fridge_min)f" % locals()) |
106 if wort is None: | 108 if wort is None: |
107 W("wort has been invalid for %d" % (self.server.now() - self.wort_valid_clock)) | 109 W("wort has been invalid for %d" % (self.server.now() - self.wort_valid_clock)) |