Initial commit - ip 10.0.0.76

This commit is contained in:
rasta5man 2025-08-14 22:59:29 +02:00
parent e189e5334b
commit cd65481ac4
5 changed files with 608 additions and 460 deletions

View file

@ -150,7 +150,7 @@ const makeStreamsTable = (structure) => {
const modul = structure[ip][item];
// console.log(modul) //i-35, i-60A ...
let section = "";
if(modul == "i-60A")
{
@ -169,7 +169,7 @@ const makeStreamsTable = (structure) => {
const m = multiplier[tb_value];
if(isNaN(item)) item = item.slice(0,-1);
const stream = {
"unitId": parseInt(item),
"section": section,
@ -177,7 +177,7 @@ const makeStreamsTable = (structure) => {
"tb_value": tb_value,
"bytes": b,
"multiplier": m,
}
}
if(tb_value == "total_energy")
{
@ -197,11 +197,14 @@ const makeStreamsTable = (structure) => {
})
return conversionTable;
};
}
const getCurrentMonth = () => {
const date = new Date();
return date.getMonth();
};
exports.makeStreamsTable = makeStreamsTable;