This commit is contained in:
znetsixe
2026-03-11 11:13:32 +01:00
parent 38013a86db
commit 32ebfd7154
3 changed files with 4 additions and 3 deletions

View File

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

View File

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