Compare commits
4 Commits
321ea33bf7
...
dev-Rene
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7efd3b0a07 | ||
|
|
c81ee1b470 | ||
|
|
955c17a466 | ||
|
|
052ded7b6e |
@@ -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;
|
||||||
|
|||||||
1343
src/specificClass.js
1343
src/specificClass.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user