From 2ea32dd05f7f1c53325cc76b6f54a8ac24c63c6c Mon Sep 17 00:00:00 2001 From: Andrew de Quincey Date: Sat, 1 May 2021 09:40:17 +0100 Subject: [PATCH] some more tweaks --- docs/ziegler_tuning.md | 2 +- kiln-tuner.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/ziegler_tuning.md b/docs/ziegler_tuning.md index dfa9c91..6f7b7a0 100644 --- a/docs/ziegler_tuning.md +++ b/docs/ziegler_tuning.md @@ -17,7 +17,7 @@ Ensure `kiln-controller` is **stopped** during profile recording: The profile mu To record the profile, run: ``` -python kiln-tuner.py ziegler.csv +python kiln-tuner.py zn.csv ``` The above will drive your kiln to 400 and record the temperature profile to the file `zn.csv`. The file will look something like this: diff --git a/kiln-tuner.py b/kiln-tuner.py index 26b6001..d064e86 100644 --- a/kiln-tuner.py +++ b/kiln-tuner.py @@ -64,6 +64,8 @@ def tune(csvfile, targettemp): if temp < targettemp: break + sys.stdout.write(f"\n{stage} {temp}/{targettemp} ") + sys.stdout.flush() time.sleep(config.sensor_time_wait) f.close()