From 303dfc477d7f25461c59f1cde6b5db1d8f8a1d1c Mon Sep 17 00:00:00 2001 From: "p.vanderwilt" Date: Fri, 31 Oct 2025 14:16:00 +0100 Subject: [PATCH] Add flow number configuration and UI input for rotating machine --- rotatingMachine.html | 5 +++++ src/specificClass.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rotatingMachine.html b/rotatingMachine.html index 6d54b66..e2a0a69 100644 --- a/rotatingMachine.html +++ b/rotatingMachine.html @@ -25,6 +25,7 @@ shutdown: { value: 0 }, cooldown: { value: 0 }, machineCurve : { value: {}}, + flowNumber : { value: 1, required: true }, //define asset properties uuid: { value: "" }, @@ -127,6 +128,10 @@ +
+ + +
diff --git a/src/specificClass.js b/src/specificClass.js index f1d8123..1579611 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -523,7 +523,8 @@ class Machine { } _updateConnectedReactor() { - this.downstreamReactor.setInfluent = this.upstreamReactor.getEffluent[1]; + // Handles flow according to the configured "flow number" + this.downstreamReactor.setInfluent = this.upstreamReactor.getEffluent[this.config.flowNumber]; } // Helper method for operational state check