Compare commits
1 Commits
d44cbc978b
...
1848486f1c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1848486f1c |
@@ -177,8 +177,8 @@ class nodeClass {
|
|||||||
//pumping station needs time based ticks to recalc level when predicted
|
//pumping station needs time based ticks to recalc level when predicted
|
||||||
this.source.tick();
|
this.source.tick();
|
||||||
const raw = this.source.getOutput();
|
const raw = this.source.getOutput();
|
||||||
const processMsg = this._output.formatMsg(raw, this.config, 'process');
|
const processMsg = this._output.formatMsg(raw, this.source.config, 'process');
|
||||||
const influxMsg = this._output.formatMsg(raw, this.config, 'influxdb');
|
const influxMsg = this._output.formatMsg(raw, this.source.config, 'influxdb');
|
||||||
|
|
||||||
// Send only updated outputs on ports 0 & 1
|
// Send only updated outputs on ports 0 & 1
|
||||||
this.node.send([processMsg, influxMsg]);
|
this.node.send([processMsg, influxMsg]);
|
||||||
|
|||||||
@@ -519,8 +519,16 @@ class PumpingStation {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
output.state = this.state;
|
output.direction = this.state.direction;
|
||||||
output.basin = this.basin;
|
output.flowSource = this.state.flowSource;
|
||||||
|
output.timeleft = this.state.seconds;
|
||||||
|
output.volEmptyBasin = this.basin.volEmptyBasin;
|
||||||
|
output.heightInlet = this.basin.heightInlet;
|
||||||
|
output.heightOverflow = this.basin.heightOverflow;
|
||||||
|
output.maxVol = this.basin.maxVol;
|
||||||
|
output.minVol = this.basin.minVol;
|
||||||
|
output.maxVolOverflow = this.basin.maxVolOverflow;
|
||||||
|
output.minVolOut = this.basin.minVolOut;
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user