rebuilding pumping station NOT WORKING
This commit is contained in:
@@ -223,12 +223,12 @@ class nodeClass {
|
||||
.variant('measured')
|
||||
.position('atequipment')
|
||||
.getCurrentValue('m3');
|
||||
this.source.calibratePredictedVolume(calibratedVolume);
|
||||
this.source.calibratePredictedVolume(calibratedVolume);
|
||||
break;
|
||||
case 'q_in': {
|
||||
// payload can be number or { value, unit, timestamp }
|
||||
const val = Number(msg.payload);
|
||||
const unit = msg?.unit || 'm3/s';
|
||||
const unit = msg?.unit || 'l/s';
|
||||
const ts = msg?.timestamp || Date.now();
|
||||
this.source.setManualInflow(val, ts, unit);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user