Handle contactors separately in daily_report
This commit is contained in:
parent
7093d765ec
commit
c5c5b21f47
10 changed files with 427 additions and 242 deletions
|
|
@ -49,8 +49,10 @@ exports.install = async function(instance) {
|
|||
if (dbs.nodesData.hasOwnProperty("0")) delete dbs.nodesData["0"];
|
||||
Object.keys(dbs.nodesData).forEach(node => dbs.nodesData[node].readout = {})
|
||||
|
||||
let rvo_number = responseSettings[0]["rvo_name"].match(/\D+(\d{1,2})_/)[1];
|
||||
|
||||
dbs.settings = {
|
||||
edge_fw_version: "2025-08-08", //rok-mesiac-den
|
||||
edge_fw_version: "2025-10-08", //rok-mesiac-den
|
||||
language: responseSettings[0]["lang"],
|
||||
rvo_name: responseSettings[0]["rvo_name"],
|
||||
project_id: responseSettings[0]["project_id"],
|
||||
|
|
@ -72,6 +74,8 @@ exports.install = async function(instance) {
|
|||
phases: responseSettings[0]["phases"],
|
||||
cloud_topic: responseSettings[0]["cloud_topic"],
|
||||
has_main_switch: responseSettings[0]["has_main_switch"],
|
||||
daily_report: responseSettings[0]["daily_report"],
|
||||
rvo_number: rvo_number,
|
||||
|
||||
//dynamic values
|
||||
masterNodeIsResponding: true, //cmd_manager
|
||||
|
|
@ -79,7 +83,6 @@ exports.install = async function(instance) {
|
|||
}
|
||||
|
||||
|
||||
let rvo_number = responseSettings[0]["rvo_name"].match(/\D+(\d{1,2})_/)[1];
|
||||
dbs.settings.energy_to_switch_lamps = total_energy[rvo_number];
|
||||
if (dbs.settings.energy_to_switch_lamps === undefined) console.log('=============== db_init.js: energy_to_switch_lamps is undefined');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue