diff --git a/html/sensors.html b/html/sensors.html index a7f6f84..6a30f90 100755 --- a/html/sensors.html +++ b/html/sensors.html @@ -241,7 +241,16 @@ window.onload = function() { .then(data => { //get device ID const deviceID = data.deviceID.trim().toUpperCase(); - document.getElementById('pageTitle_plus_ID').innerText = 'token: ' + deviceID; + //document.getElementById('pageTitle_plus_ID').innerText = 'token: ' + deviceID; + //get device Name + const deviceName = data.deviceName; + + const elements = document.querySelectorAll('.sideBar_sensorName'); + elements.forEach((element) => { + element.innerText = deviceName; + }); + + //get local RTC $.ajax({