Trạng thái máy 1: %STATE1%
ON OFF
Trạng thái máy 2: %STATE2%
ON OFF
Trạng thái máy 3: %STATE3%
ON OFF
Trạng thái máy 4: %STATE4%
ON 140 OFF
Name Value Temperature %TEMPERATURE% °C Humidity 141 %HUMIDITY% % Gas %GAS% % Anhsang %ANHSANG% % 142 GT SP sadsadasdsad LH aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\ setInterval(function ( ) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == && this.status == 200) { document.getElementById("temperature").innerHTML = this.responseText; } }; xhttp.open("GET", "/temperature", true); xhttp.send(); 143 }, 1000 ) ; setInterval(function ( ) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == && this.status == 200) { document.getElementById("humidity").innerHTML = this.responseText; } }; xhttp.open("GET", "/humidity", true); xhttp.send(); }, 1000 ) ; setInterval(function ( ) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == && this.status == 200) { document.getElementById("gas").innerHTML = this.responseText; } }; xhttp.open("GET", "/gas", true); xhttp.send(); }, 1000 ) ; setInterval(function ( ) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == && this.status == 200) { document.getElementById("anhsang").innerHTML = this.responseText; 144 } }; xhttp.open("GET", "/anhsang", true); xhttp.send(); }, 1000 ) ; CSS body { background-position: center; background-image: url("https://img2.thuthuatphanmem.vn/uploads/2019/03/07/anh-nen-xanh-la-chopower-point-dep_111223157.jpg"); font-family: 'Times New Roman', Times, serif; margin: 0px auto; text-align: center; } a{ color: rgba(255, 0, 64, 0.836); font-weight:bold; font-size: 20px; } a1 { color: #0004ff; 145 font-size: 40px; } a2 { color: #0004ff; font-size: 40px; } h1{ color: #0004ff; font-weight:bold; font-size: 40px; } h2,h4{ color: #ff00aa; font-weight:bold; font-size: 30px; } a3{ font-size: 30px; font-weight:bold; } span{ font-size: 30px; } strong{ 146 font-size: 30px; font-weight:bold; } th{ font-size: 30px; font-weight:bold; } button { display: inline-block; background-color: #008CBA; border: none; border-radius: 4px; color: rgb(255, 255, 255); padding: 10px 20px; text-decoration: none; font-size: 20px; /* khoảng cách nút nhấn margin*/ margin: 5px; cursor: pointer; } button2 { background-color: #ff0000; } units { font-size: 1.2rem; } sensor-labels { font-size: 30px; 147 vertical-align:middle; padding-bottom: 15px; } units{ font-size: 30px; } 148