From d72bfd55605c4be9cc6bb6807ca2ae509fe223d4 Mon Sep 17 00:00:00 2001 From: znetsixe <73483679+znetsixe@users.noreply.github.com> Date: Mon, 22 Sep 2025 16:02:04 +0200 Subject: [PATCH] updated files --- index.js | 6 +++--- package.json | 4 ++-- settings/projectSettings.json | 4 ++-- settings/projectSpecificSettings.js | 4 ++-- src/helper/nodeTemplates.js | 2 +- src/measurements/Measurement.js | 1 - 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index 34d7df4..d542a17 100644 --- a/index.js +++ b/index.js @@ -1,10 +1,10 @@ /** - * generalfunctions/index.js + * generalFunctions/index.js * ----------------------------------------------------------- * Central barrel file for re-exporting helpers and configurations. * Provides both namespace exports and dynamic loading capabilities. * now we can load modules like this: - * const { menuUtils, outputUtils } = require('generalfunctions'); + * const { menuUtils, outputUtils } = require('generalFunctions'); */ // Core helper modules @@ -16,7 +16,7 @@ const configUtils = require('./src/helper/configUtils.js'); // Domain-specific modules const { MeasurementContainer } = require('./src/measurements/index.js'); const configManager = require('./src/configs/index.js'); -const nrmse = require('./src/nrmse/errorMetrics.js'); +const nrmse = require('./src/nrmse/ErrorMetrics.js'); const state = require('./src/state/state.js'); const convert = require('./src/convert/index.js'); const MenuManager = require('./src/menu/index.js'); diff --git a/package.json b/package.json index e41e1e3..944f4a0 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "generalfunctions", + "name": "generalFunctions", "version": "1.0.0", "description": "General utility functions used across multiple Node-RED modules", "main": "./index.js", @@ -17,7 +17,7 @@ }, "repository": { "type": "git", - "url": "https://gitea.centraal.wbd-rd.nl/RnD/generalfunctions.git" + "url": "https://gitea.centraal.wbd-rd.nl/RnD/generalFunctions.git" }, "keywords": [ "utilities", diff --git a/settings/projectSettings.json b/settings/projectSettings.json index e81db96..1196a79 100644 --- a/settings/projectSettings.json +++ b/settings/projectSettings.json @@ -7,8 +7,8 @@ "taggcodeAPI": "https://pimmoerman.nl/rdlab/tagcode.app/v2.1/apiBLAH" }, "local": { - "units": "http://localhost:1880/generalfunctions/datasets/unitData.json", - "taggcodeAPI": "http://localhost:1880/generalfunctions/datasets/assetData" + "units": "http://localhost:1880/generalFunctions/datasets/unitData.json", + "taggcodeAPI": "http://localhost:1880/generalFunctions/datasets/assetData" } } } \ No newline at end of file diff --git a/settings/projectSpecificSettings.js b/settings/projectSpecificSettings.js index 7e45eb6..b4d748b 100644 --- a/settings/projectSpecificSettings.js +++ b/settings/projectSpecificSettings.js @@ -88,8 +88,8 @@ class ProjectSettings { taggcodeAPI: this.cloudAPI, }, local: { - units: "http://localhost:1880/generalfunctions/datasets/unitData.json", - taggcodeAPI: "http://localhost:1880/generalfunctions/datasets/assetData", + units: "http://localhost:1880/generalFunctions/datasets/unitData.json", + taggcodeAPI: "http://localhost:1880/generalFunctions/datasets/assetData", }, }, }; diff --git a/src/helper/nodeTemplates.js b/src/helper/nodeTemplates.js index 1a7737b..da259e4 100644 --- a/src/helper/nodeTemplates.js +++ b/src/helper/nodeTemplates.js @@ -33,7 +33,7 @@ const nodeTemplates = { parent: "node-input-parent", }, projectSettingsURL: - "http://localhost:1880/generalfunctions/settings/projectSettings.json", + "http://localhost:1880/generalFunctions/settings/projectSettings.json", }, exampleTemplate: { diff --git a/src/measurements/Measurement.js b/src/measurements/Measurement.js index 121e3ac..de16718 100644 --- a/src/measurements/Measurement.js +++ b/src/measurements/Measurement.js @@ -131,7 +131,6 @@ class Measurement { const downIndex = downValues.timestamps.indexOf(upTimestamp); if (downIndex !== -1) { - const diff = upValues.values[i] - downValues.values[downIndex]; diffMeasurement.setValue(diff, upTimestamp); }