From cf16481324c7b20fb9d273a4b692715a6daf3955 Mon Sep 17 00:00:00 2001 From: rasta5man Date: Fri, 8 Aug 2025 16:29:39 +0200 Subject: [PATCH] version 2025-08-08; refactoring --- flow/cmd_manager.js | 3 ++- flow/db_init.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flow/cmd_manager.js b/flow/cmd_manager.js index 07e12c6..e92d48f 100644 --- a/flow/cmd_manager.js +++ b/flow/cmd_manager.js @@ -1529,7 +1529,7 @@ exports.install = function(instance) { // await keyword is important, otherwise incorrect data is returned! await writeData(rsPort, resp, readBytes, timeout).then(function(data) { - //sometimes happens, that status of node changes even if line was turned off and should be offline. To prevent this, we return if line contactor is 0: + //sometimes happens, that status of node changes to OK, NOK even if line was turned off and should be status OFFLINE. To prevent this, we return if line contactor is 0: if (itIsNodeCommand && line && relaysData[line].contactor !== 1) return; endTime = new Date(); @@ -1650,6 +1650,7 @@ exports.install = function(instance) { } + // if node does not respond to request, we repeat request 3 times: function repeatCommand(params) { params.repeatCounter++; if (params.repeatCounter < 4) { diff --git a/flow/db_init.js b/flow/db_init.js index 60a0510..a759465 100644 --- a/flow/db_init.js +++ b/flow/db_init.js @@ -50,7 +50,7 @@ exports.install = async function(instance) { Object.keys(dbs.nodesData).forEach(node => dbs.nodesData[node].readout = {}) dbs.settings = { - edge_fw_version: "2025-07-08", //rok-mesiac-den + edge_fw_version: "2025-08-08", //rok-mesiac-den language: responseSettings[0]["lang"], rvo_name: responseSettings[0]["rvo_name"], project_id: responseSettings[0]["project_id"],