Oven watcher time hard coded, added test json

This commit is contained in:
James Kirikland Garner 2022-12-15 14:49:32 -08:00
parent 8d770b3086
commit 9900bb4421
4 changed files with 4 additions and 5 deletions

View File

@ -82,7 +82,7 @@ max31856 = 0
# Every N seconds a decision is made about switching the relay[s]
# on & off and for how long. The thermocouple is read
# temperature_average_samples times during and the average value is used.
sensor_time_wait = 0.2
sensor_time_wait = 2
########################################################################

View File

@ -573,7 +573,7 @@ class SimulatedOven(Oven):
if heat_on > 0:
self.heat = heat_on
log.info("simulation: -> %dW heater: %.0f -> %dW oven: %.0f -> %dW env" % (int(self.p_heat * pid),
log.info("simulation: -> %dW heater: %.0f -> %dW oven: %.0f -> %dW env" % (int(self.p_heat * pid),
self.t_h,
int(self.p_ho),
self.t,

View File

@ -35,10 +35,8 @@ class OvenWatcher(threading.Thread):
self.recording = False
self.notify_all(oven_state)
time.sleep(0.5)
time.sleep(self.oven.time_step)
def lastlog_subset(self,maxpts=50):
'''send about maxpts from lastlog by skipping unwanted data'''
totalpts = len(self.last_log)

View File

@ -0,0 +1 @@
{"data": [[0, 200], [3600, 200], [10800, 2000], [14400, 2250], [16400, 2250], [19400, 70]], "type": "profile", "name": "test-fast"}