menu fixes with min lines of code and standard menus - WORKING-

This commit is contained in:
znetsixe
2025-06-20 17:14:22 +02:00
parent c4f16fb36d
commit 6f63415698
4 changed files with 54 additions and 133 deletions

View File

@@ -39,14 +39,15 @@
*/
const EventEmitter = require('events');
const {logger,configUtils} = require('generalFunctions');
const defaultConfig = require('./measurementConfig.json');
const {logger,configUtils,configManager} = require('generalFunctions');
class Measurement {
constructor(config={}) {
this.emitter = new EventEmitter(); // Own EventEmitter
this.configUtils = new configUtils(defaultConfig);
this.configManager = new configManager();
this.defaultConfig = this.configManager.getConfig('measurement');
this.configUtils = new configUtils(this.defaultConfig);
this.config = this.configUtils.initConfig(config);
// Init after config is set