From c076fa6079d40cd7cd1fb1890317c17305180755 Mon Sep 17 00:00:00 2001 From: Jason Bruce Date: Wed, 14 Apr 2021 18:16:03 -0400 Subject: [PATCH] - added a few significant digits in logging statements to temps - changed the wording of the emergency shutoff temp setting --- config.py | 7 ++++--- lib/oven.py | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config.py b/config.py index 353eacc..29b9420 100644 --- a/config.py +++ b/config.py @@ -86,9 +86,10 @@ temp_scale = "f" # c = Celsius | f = Fahrenheit - Unit to display time_scale_slope = "h" # s = Seconds | m = Minutes | h = Hours - Slope displayed in temp_scale per time_scale_slope time_scale_profile = "m" # s = Seconds | m = Minutes | h = Hours - Enter and view target time in time_scale_profile -# emergency shutoff the kiln if this temp is reached. -# when solid state relays fail, they usually fail closed. this means your -# kiln receives full power until your house burns down. +# emergency shutoff the profile if this temp is reached or exceeded. +# This just shuts off the profile. If your SSR is working, your kiln will +# naturally cool off. If your SSR has failed/shorted/closed circuit, this +# means your kiln receives full power until your house burns down. # this should not replace you watching your kiln or use of a kiln-sitter emergency_shutoff_temp = 2264 #cone 7 diff --git a/lib/oven.py b/lib/oven.py index 16e94ad..ec5679d 100644 --- a/lib/oven.py +++ b/lib/oven.py @@ -296,7 +296,7 @@ class SimulatedOven(Oven): int(self.p_env))) time_left = self.totaltime - self.runtime - log.info("temp=%.1f, target=%.1f, pid=%.3f, heat_on=%.2f, heat_off=%.2f, run_time=%d, total_time=%d, time_left=%d" % + log.info("temp=%.2f, target=%.2f, pid=%.3f, heat_on=%.2f, heat_off=%.2f, run_time=%d, total_time=%d, time_left=%d" % (self.board.temp_sensor.temperature + config.thermocouple_offset, self.target, pid, @@ -339,7 +339,7 @@ class RealOven(Oven): self.output.heat(heat_on) self.output.cool(heat_off) time_left = self.totaltime - self.runtime - log.info("temp=%.1f, target=%.1f, pid=%.3f, heat_on=%.2f, heat_off=%.2f, run_time=%d, total_time=%d, time_left=%d" % + log.info("temp=%.2f, target=%.2f, pid=%.3f, heat_on=%.2f, heat_off=%.2f, run_time=%d, total_time=%d, time_left=%d" % (self.board.temp_sensor.temperature + config.thermocouple_offset, self.target, pid,