- show better estimation of time kiln elements are being heated

in web client
This commit is contained in:
Jason Bruce
2021-03-29 19:22:35 -04:00
parent 85553ec9d6
commit eb4c212471
2 changed files with 19 additions and 7 deletions
+10 -1
View File
@@ -555,8 +555,17 @@ $(document).ready(function()
}
$('#act_temp').html(parseInt(x.temperature));
if (x.heat > 0.5) { $('#heat').addClass("ds-led-heat-active"); } else { $('#heat').removeClass("ds-led-heat-active"); }
//if (x.heat > 0.5) { $('#heat').addClass("ds-led-heat-active"); } else { $('#heat').removeClass("ds-led-heat-active"); }
if (x.heat > 0.0) {
$('#heat').addClass("ds-led-heat-active")
setTimeout(function() { $('#heat').removeClass("ds-led-heat-active") }, (x.heat*1000.0)-50)
}
else {
$('#heat').removeClass("ds-led-heat-active")
}
if (x.cool > 0.5) { $('#cool').addClass("ds-led-cool-active"); } else { $('#cool').removeClass("ds-led-cool-active"); }
if (x.air > 0.5) { $('#air').addClass("ds-led-air-active"); } else { $('#air').removeClass("ds-led-air-active"); }
if (x.temperature > hazardTemp()) { $('#hazard').addClass("ds-led-hazard-active"); } else { $('#hazard').removeClass("ds-led-hazard-active"); }