pull/26/head
Andrew de Quincey 2021-05-01 09:44:55 +01:00
rodzic 92002c7a0b
commit 04b14b977c
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -52,7 +52,7 @@ def tune(csvfile, targettemp):
config.thermocouple_offset
csvout.writerow([time.time(), temp])
csvout.flush()
f.flush()
if stage == 'heating':
if temp > targettemp:
@ -64,7 +64,7 @@ def tune(csvfile, targettemp):
if temp < targettemp:
break
sys.stdout.write(f"\n{stage} {temp}/{targettemp} ")
sys.stdout.write(f"\r{stage} {temp}/{targettemp} ")
sys.stdout.flush()
time.sleep(config.sensor_time_wait)
@ -79,7 +79,7 @@ def tune(csvfile, targettemp):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Record data for kiln tuning')
parser.add_argument('csvfile', type=str, help="The CSV file to write to.")
parser.add_argument('--targettemp', type=int, default=400, help="The target temperature to drive the kiln to.")
parser.add_argument('--targettemp', type=int, default=400, help="The target temperature to drive the kiln to (default 400).")
args = parser.parse_args()
tune(args.csvfile, args.targettemp)