Stable version of machinegroup control

This commit is contained in:
znetsixe
2025-10-02 17:08:41 +02:00
parent a55c6bdbea
commit b4364094c6
3 changed files with 452 additions and 587 deletions

View File

@@ -58,6 +58,7 @@ class nodeClass {
}
_updateNodeStatus() {
//console.log('Updating node status...');
const mg = this.source;
const mode = mg.mode;
const scaling = mg.scaling;
@@ -72,7 +73,7 @@ class nodeClass {
const totalPower = mg.measurements
?.type("power")
?.variant("predicted")
?.position("upstream")
?.position("atEquipment")
?.getCurrentValue() || 0;
// Calculate total capacity based on available machines with safety checks