source now in separate modules;

Implemented MQTT coms.
Using Tasmota for ESP8266;
IR working reliably
This commit is contained in:
d-popov
2020-05-02 11:45:35 +03:00
parent 32782cfbf7
commit d8a37e4b44
13 changed files with 3534 additions and 350 deletions

View File

@@ -1,4 +1,4 @@
<h2>AC Control for <%= model.user.username %></h2>
<h2>AC Control for <% if (model.user) {model.user.username; } %></h2>
<h4 id="current">Retrieving current conditions...</h4>
<!-- class="form-inline" -->
<form id="accontrol" action="/n/accontrol" method="POST">
@@ -59,7 +59,7 @@ INFO:
window.onload = function () {
$.getJSON("/n/dht?e=now", function(data){
if(data && data.dht){
$('#current').text( "A23 Currently is " + data.dht.temp + "°C, " + data.dht.hum +"% RH" );
$('#current').text( "A23 Currently is " + data.dht.temp + "°C, " + data.dht.hum +"% RH. Dew Point at:" + data.dht.dew );
}else {
//chart.title.set("text", "A23 conditions");
}