Browse code

minor revision

Gandolf authored on 07/06/2021 21:04:25
Showing 1 changed files
... ...
@@ -324,6 +324,7 @@ var chartPeriod = 1;
324 324
 var objBlink;
325 325
 
326 326
 function main() {
327
+    httpRequest.timeout = 3000;
327 328
 
328 329
     if (location.hostname.match(/.local/g) == null) {
329 330
         customSelector.style.visibility = "hidden";
... ...
@@ -338,6 +339,7 @@ function main() {
338 339
             displayOfflineStatus();
339 340
         }
340 341
     };
342
+
341 343
     httpRequest.ontimeout = function(e) {
342 344
         displayOfflineStatus();
343 345
     };
... ...
@@ -350,8 +352,7 @@ function main() {
350 352
 }
351 353
 
352 354
 function getSensorData() {
353
-    httpRequest.open("GET", SENSOR_DATA_URL, true);
354
-    httpRequest.timeout = 3000;
355
+    httpRequest.open("POST", SENSOR_DATA_URL, true);
355 356
     httpRequest.send();
356 357
 }
357 358
 
Browse code

minor revisions

Gandolf authored on 06/23/2021 20:00:08
Showing 1 changed files
... ...
@@ -40,6 +40,21 @@ p {
40 40
     color: red;
41 41
     /*border: 1px solid black;*/
42 42
 }
43
+#logoBox {
44
+    display:inline-block;
45
+    width:20%;
46
+    /*border:1px solid black;*/
47
+}
48
+#logoInfo {
49
+    padding-left: 20px;
50
+    padding-top: 10px;
51
+    display:inline-block;
52
+    width:45%;
53
+    font:14px arial,sans-serif;
54
+    text-align:left;
55
+    vertical-align: top;
56
+   /*border:1px solid black;*/
57
+}
43 58
 .rowContainer {
44 59
     display: table;
45 60
     width: 100%;
... ...
@@ -64,10 +79,12 @@ p {
64 79
 }
65 80
 .chartContainer {
66 81
     padding: 2px;
67
-    border: 1px solid black;
82
+    /*border: 1px solid black;8?
68 83
 }
69 84
 img.chart {
70 85
     width: 100%;
86
+    height: 233px;
87
+    /*border: 1px solid black;*/
71 88
 }
72 89
 span.chartNav {
73 90
     margin: auto;
... ...
@@ -106,17 +123,21 @@ text.chartNav {
106 123
 
107 124
 <div id="mainContainer">
108 125
 
109
-<h2><a href="https://github.com/fractalxaos/ham/tree/master/nodepower" 
126
+<div id="logoBox">
127
+<a href="https://github.com/fractalxaos/ham/tree/master/nodepower" 
110 128
 style="text-decoration:none" target="_new">
111
-Node Power</a></h2>
112
-<h4>WA7ABU Victor Point AREDN Mesh Installation</h4>
129
+<img src="static/npwlogo.png"></a>
130
+</div>
113 131
 
114
-<div style="width:60%; text-align:left; font:14px arial, sans-serif;">
115
-This web page shows the power consumption of above node(s).  Charts below
116
-provide a historical glimpse of node power consumption, battery and ambient
117
-temperatures.
132
+<div id="logoInfo">
133
+This web page shows the power consumption of the node installation at the site listed below.  The charts provide a historical glimpse for different time periods
134
+of node power consumption, battery and ambient temperatures.
118 135
 </div>
119 136
 
137
+<a href="http://wa7abu-pb400-vp-0ccd.local.mesh:8080/cgi-bin/status"
138
+ style="text-decoration:none" target="_new">
139
+<h4>WA7ABU Victor Point AREDN Mesh Installation</h4></a>
140