Compare commits
4 Commits
321ea33bf7
...
7efd3b0a07
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7efd3b0a07 | ||
|
|
c81ee1b470 | ||
|
|
955c17a466 | ||
|
|
052ded7b6e |
@@ -218,17 +218,17 @@ class nodeClass {
|
||||
this.source.childRegistrationUtils.registerChild(childObj.source ,msg.positionVsParent);
|
||||
break;
|
||||
case 'calibratePredictedVolume':
|
||||
const calibratedVolume = this.source.measurements
|
||||
.type('volume')
|
||||
.variant('measured')
|
||||
.position('atequipment')
|
||||
.getCurrentValue('m3');
|
||||
this.source.calibratePredictedVolume(calibratedVolume);
|
||||
const injectedVol = parseFloat(msg.payload);
|
||||
this.source.calibratePredictedVolume(injectedVol);
|
||||
break;
|
||||
case 'calibratePredictedLevel':
|
||||
const injectedLevel = parseFloat(msg.payload);
|
||||
this.source.calibratePredictedLevel(injectedLevel);
|
||||
break;
|
||||
case 'q_in': {
|
||||
// payload can be number or { value, unit, timestamp }
|
||||
const val = Number(msg.payload);
|
||||
const unit = msg?.unit || 'l/s';
|
||||
const unit = msg?.unit;
|
||||
const ts = msg?.timestamp || Date.now();
|
||||
this.source.setManualInflow(val, ts, unit);
|
||||
break;
|
||||
|
||||
1355
src/specificClass.js
1355
src/specificClass.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user