updated files

This commit is contained in:
znetsixe
2025-09-22 16:02:04 +02:00
parent 241ed1d3cb
commit d72bfd5560
6 changed files with 10 additions and 11 deletions

View File

@@ -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');

View File

@@ -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",

View File

@@ -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"
}
}
}

View File

@@ -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",
},
},
};

View File

@@ -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: {

View File

@@ -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);
}