Oven watcher time hard coded, added test json
This commit is contained in:
parent
8d770b3086
commit
9900bb4421
@ -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
|
||||
|
||||
|
||||
########################################################################
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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)
|
||||
|
||||
1
storage/profiles/test-fast.json
Normal file
1
storage/profiles/test-fast.json
Normal file
@ -0,0 +1 @@
|
||||
{"data": [[0, 200], [3600, 200], [10800, 2000], [14400, 2250], [16400, 2250], [19400, 70]], "type": "profile", "name": "test-fast"}
|
||||
Loading…
Reference in New Issue
Block a user