if ("tmpUnits" == key) {
- $("span.tmpUnit").html(data[key] == 1 ? "ºF" : "ºC");
+ $("span.tmpUnit").html(data[key] == 3 ? "ºF" : "ºC");
}
@@ -2261,6 +2270,9 @@ $(function() {
// don't autoconnect when opening from filesystem
if (window.location.protocol === "file:") {
+ processData({"webMode": 0});
+ processData({"hlwVisible":1,"pwrVisible":1,"tmpCorrection":0,"humCorrection":0,"luxCorrection":0,"snsRead":5,"snsReport":10,"snsSave":2,"magnitudesConfig":{"index":[0,0,0,0,0,0,0,0],"type":[4,5,6,8,7,9,11,10],"units":["A","V","W","VAR","VA","%","J","kWh"],"description":["HLW8012 @ GPIO(5,14,13)","HLW8012 @ GPIO(5,14,13)","HLW8012 @ GPIO(5,14,13)","HLW8012 @ GPIO(5,14,13)","HLW8012 @ GPIO(5,14,13)","HLW8012 @ GPIO(5,14,13)","HLW8012 @ GPIO(5,14,13)","HLW8012 @ GPIO(5,14,13)"],"size":8}});
+ processData({"magnitudes":{"value":["0.079","218","37","0","17","100","96","0.001"],"error":[0,0,0,0,0,0,0,0],"info":[0,0,0,0,0,0,0,"Last saved: 2020-04-07 21:10:15"],"size":8}});
return;
}
diff --git a/code/html/index.html b/code/html/index.html
index 28a21449..9addcad9 100644
--- a/code/html/index.html
+++ b/code/html/index.html
@@ -1583,24 +1583,25 @@
@@ -2076,7 +2077,9 @@
-
+
+
+