Improved js UI & backend (webSockets, async, etc...) ;

Changed users/passwords.
This commit is contained in:
d-popov
2020-04-25 01:45:48 +03:00
parent 7854b67905
commit 2d8f6ed8ce
4 changed files with 288 additions and 250 deletions

View File

@@ -112,7 +112,7 @@
}
chart.render();
$.getJSON("/n/dht", function(data){
$.getJSON("/n/dht?e=now", function(data){
if(data && data.dht){
chart.title.set("text", "A23 Currently is " + data.dht.temp + "°C, " + data.dht.hum +"% RH" );
}else {
@@ -121,7 +121,7 @@
});
}
$.getJSON("/n/dht/A23_DHT", addData);
$.getJSON("/n/device/A23_DHT", addData);
}
</script>