Initial commit - ip 10.0.0.76
This commit is contained in:
parent
e189e5334b
commit
cd65481ac4
5 changed files with 608 additions and 460 deletions
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue