From d94d5874bcf97453241830fd12dfb880d13b7f53 Mon Sep 17 00:00:00 2001 From: znetsixe <73483679+znetsixe@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:51:32 +0200 Subject: [PATCH] updated pumping station to match stack --- package.json | 6 ++--- pumpingStation.html | 53 ++++++++++++++++++++------------------------ src/nodeClass.js | 7 +----- src/specificClass.js | 2 +- 4 files changed, 29 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index dec5710..1a463ff 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "pumpingStation", + "name": "pumpingstation", "version": "1.0.0", "description": "Control module", "main": "pumpingStation.js", @@ -11,7 +11,7 @@ "url": "https://gitea.centraal.wbd-rd.nl/RnD/pumpingStation.git" }, "keywords": [ - "pumpingStation", + "pumpingstation", "node-red", "recipient", "water" @@ -23,7 +23,7 @@ }, "node-red": { "nodes": { - "pumpingStation": "pumpingStation.js" + "pumpingstation": "pumpingStation.js" } } } diff --git a/pumpingStation.html b/pumpingStation.html index 8ab2e31..f5a74d2 100644 --- a/pumpingStation.html +++ b/pumpingStation.html @@ -1,11 +1,20 @@ + - diff --git a/src/nodeClass.js b/src/nodeClass.js index 50ad92d..fa244f7 100644 --- a/src/nodeClass.js +++ b/src/nodeClass.js @@ -1,9 +1,4 @@ -/** - * basin.class.js - * - * Encapsulates all node logic in a reusable class. In future updates we can split this into multiple generic classes and use the config to specifiy which ones to use. - * This allows us to keep the Node-RED node clean and focused on wiring up the UI and event handlers. - */ + const { outputUtils, configManager } = require('generalFunctions'); const Specific = require("./specificClass"); diff --git a/src/specificClass.js b/src/specificClass.js index 0a74737..c759f5a 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -139,7 +139,7 @@ class pumpingStation { } } -module.exports = Basin; +module.exports = pumpingStation; /*