Logstring changed
parent
2299e28316
commit
935241d7c5
|
|
@ -93,8 +93,10 @@ WIDGETS = {};
|
||||||
|
|
||||||
var bcLogFileA = Storage.open(logFileName, "a");
|
var bcLogFileA = Storage.open(logFileName, "a");
|
||||||
if (bcLogFileA) {
|
if (bcLogFileA) {
|
||||||
console.log([getTime().toFixed(0), E.getBattery(), E.getTemperature(), getEnabledConsumersValue()].join(","));
|
let logString = [getTime().toFixed(0), E.getBattery(), E.getTemperature(), getEnabledConsumersValue()].join(",");
|
||||||
bcLogFileA.write([[getTime().toFixed(0), E.getBattery(), E.getTemperature(), getEnabledConsumersValue()].join(",")].join(",")+"\n");
|
|
||||||
|
console.log(logString);
|
||||||
|
bcLogFileA.write(logString + "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue