Compare commits

..

4 Commits

Author SHA1 Message Date
znetsixe
7efd3b0a07 bug fixes 2025-11-30 20:13:21 +01:00
znetsixe
c81ee1b470 fixed change mode and control logic method 2025-11-30 17:46:07 +01:00
znetsixe
955c17a466 bug fixes 2025-11-30 09:24:18 +01:00
Rene De ren
052ded7b6e fixes 2025-11-28 16:29:05 +01:00
2 changed files with 524 additions and 847 deletions

View File

@@ -218,17 +218,17 @@ class nodeClass {
this.source.childRegistrationUtils.registerChild(childObj.source ,msg.positionVsParent); this.source.childRegistrationUtils.registerChild(childObj.source ,msg.positionVsParent);
break; break;
case 'calibratePredictedVolume': case 'calibratePredictedVolume':
const calibratedVolume = this.source.measurements const injectedVol = parseFloat(msg.payload);
.type('volume') this.source.calibratePredictedVolume(injectedVol);
.variant('measured') break;
.position('atequipment') case 'calibratePredictedLevel':
.getCurrentValue('m3'); const injectedLevel = parseFloat(msg.payload);
this.source.calibratePredictedVolume(calibratedVolume); this.source.calibratePredictedLevel(injectedLevel);
break; break;
case 'q_in': { case 'q_in': {
// payload can be number or { value, unit, timestamp } // payload can be number or { value, unit, timestamp }
const val = Number(msg.payload); const val = Number(msg.payload);
const unit = msg?.unit || 'l/s'; const unit = msg?.unit;
const ts = msg?.timestamp || Date.now(); const ts = msg?.timestamp || Date.now();
this.source.setManualInflow(val, ts, unit); this.source.setManualInflow(val, ts, unit);
break; break;

File diff suppressed because it is too large Load Diff