From 32ebfd715449d3efc0c98a2d60b16e01a47e270e Mon Sep 17 00:00:00 2001 From: znetsixe <73483679+znetsixe@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:13:32 +0100 Subject: [PATCH] updates --- monster.html | 2 +- src/nodeClass.js | 4 ++-- src/specificClass.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/monster.html b/monster.html index 4d7a373..044c5d8 100644 --- a/monster.html +++ b/monster.html @@ -50,7 +50,7 @@ icon: "font-awesome/fa-tachometer", label: function () { - return this.positionIcon + " " + this.category.slice(0, -1) || "Monster"; + return (this.positionIcon || "") + " " + (this.category ? this.category.slice(0, -1) : "Monster"); }, oneditprepare: function() { diff --git a/src/nodeClass.js b/src/nodeClass.js index 53c0de7..04887c2 100644 --- a/src/nodeClass.js +++ b/src/nodeClass.js @@ -183,8 +183,8 @@ try{ this.source.tick(); const raw = this.source.getOutput(); - const processMsg = this._output.formatMsg(raw, this.config, 'process'); - const influxMsg = this._output.formatMsg(raw, this.config, 'influxdb'); + const processMsg = this._output.formatMsg(raw, this.source.config, 'process'); + const influxMsg = this._output.formatMsg(raw, this.source.config, 'influxdb'); // Send only updated outputs on ports 0 & 1 this.node.send([processMsg, influxMsg]); diff --git a/src/specificClass.js b/src/specificClass.js index 0346eda..cb8e084 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -16,6 +16,7 @@ class Monster{ this.configManager = new configManager(); this.defaultConfig = this.configManager.getConfig('monster'); // Load default config for rotating machine ( use software type name ? ) this.configUtils = new configUtils(this.defaultConfig); + this.config = this.configUtils.initConfig(config); // -------------------------------------- fetch dependencies -------------------------- //this.math = require('mathjs');