This commit is contained in:
PaulVua
2025-02-05 10:51:20 +01:00
parent 7de382a43d
commit 268a0586b8
11 changed files with 290 additions and 23 deletions

View File

@@ -187,6 +187,11 @@ window.onload = function() {
//document.getElementById('pageTitle_plus_ID').innerText = 'token: ' + deviceID;
//get device Name
const deviceName = data.deviceName;
console.log("Device Name: " + deviceName);
console.log("Device ID: " + deviceID);
const elements = document.querySelectorAll('.sideBar_sensorName');
elements.forEach((element) => {
@@ -204,7 +209,8 @@ window.onload = function() {
//loop activation
const flex_loop = document.getElementById("flex_loop");
flex_loop.checked = data.loop_activation;
console.log("Loop activation: " + data.loop_activation);
//loop logs
const flex_loop_log = document.getElementById("flex_loop_log");
flex_loop_log.checked = data.loop_log;