From 4252292ae1b19568e8a4b54ab125769b2eae39f7 Mon Sep 17 00:00:00 2001 From: znetsixe Date: Wed, 22 Apr 2026 16:14:15 +0200 Subject: [PATCH] pumpingStation schema: rename basin/control thresholds to wiki naming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Matches the 5-threshold convention (dryRunLevel, minLevel, startLevel, maxLevel, overflowLevel) introduced in the pumpingStation wiki: basin.heightInlet → basin.inflowLevel basin.heightOutlet → basin.outflowLevel basin.heightOverflow → basin.overflowLevel control.levelbased.stopLevel → control.levelbased.minLevel control.levelbased.maxFlowLevel → control.levelbased.maxLevel control.levelbased.minFlowLevel → removed (redundant with startLevel) control.levelbased.startLevel → unchanged Description strings tightened to reference the semantic role instead of generic "min level to scale flow" prose. Breaking change for existing saved flows. Ties in with pumpingStation commit a218945 which updates the consumer code. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/configs/pumpingStation.json | 52 +++++++++------------------------ 1 file changed, 14 insertions(+), 38 deletions(-) diff --git a/src/configs/pumpingStation.json b/src/configs/pumpingStation.json index c7694ef..9de7d67 100644 --- a/src/configs/pumpingStation.json +++ b/src/configs/pumpingStation.json @@ -235,7 +235,7 @@ "description": "Unit used for level related setpoints and thresholds." } }, - "heightInlet": { + "inflowLevel": { "default": 2, "rules": { "type": "number", @@ -243,7 +243,7 @@ "description": "Height of the inlet pipe measured from the basin floor (m)." } }, - "heightOutlet": { + "outflowLevel": { "default": 0.2, "rules": { "type": "number", @@ -251,7 +251,7 @@ "description": "Height of the outlet pipe measured from the basin floor (m)." } }, - "heightOverflow": { + "overflowLevel": { "default": 2.5, "rules": { "type": "number", @@ -433,36 +433,28 @@ } }, "levelbased": { + "minLevel": { + "default": 1, + "rules": { + "type": "number", + "min": 0, + "description": "Below this level the MGC shuts down all pumps (unconditional stop). Above dryRunLevel (safety), below startLevel (DEAD ZONE)." + } + }, "startLevel": { "default": 1, "rules": { "type": "number", "min": 0, - "description": "start of pump / group when level reaches this in meters starting from bottom." + "description": "Level at which the pump demand ramp begins at 0 %. Demand scales linearly from startLevel (0 %) to maxLevel (100 %)." } }, - "stopLevel": { - "default": 1, - "rules": { - "type": "number", - "min": 0, - "description": "stop of pump / group when level reaches this in meters starting from bottom" - } - }, - "minFlowLevel": { - "default": 1, - "rules": { - "type": "number", - "min": 0, - "description": "min level to scale the flow lineair" - } - }, - "maxFlowLevel": { + "maxLevel": { "default": 4, "rules": { "type": "number", "min": 0, - "description": "max level to scale the flow lineair" + "description": "Level at which the pump demand saturates at 100 %. Above this, demand stays clamped." } } }, @@ -638,14 +630,6 @@ "description": "Volume percentage below which dry run protection activates." } }, - "dryRunDebounceSeconds": { - "default": 30, - "rules": { - "type": "number", - "min": 0, - "description": "Time the low-volume condition must persist before dry-run protection engages (seconds)." - } - }, "enableOverfillProtection": { "default": true, "rules": { @@ -662,14 +646,6 @@ "description": "Volume percentage above which overfill protection activates." } }, - "overfillDebounceSeconds": { - "default": 30, - "rules": { - "type": "number", - "min": 0, - "description": "Time the high-volume condition must persist before overfill protection engages (seconds)." - } - }, "timeleftToFullOrEmptyThresholdSeconds": { "default": 0, "rules": {