Просмотр исходного кода

Updated graphical representation

jomjol 3 лет назад
Родитель
Сommit
12dc4eb460
3 измененных файлов с 7 добавлено и 7 удалено
  1. 3 1
      Changelog.md
  2. 1 1
      sd-card/html/gethost.js
  3. 3 5
      sd-card/html/graph.html

+ 3 - 1
Changelog.md

@@ -7,11 +7,13 @@
 -   added `/graph.html` to fetch measurements from the debug log and display them as a graph. Activate debug logging for this feature to work.
 -   Added PreValue to `/json` ([#1154](https://github.com/jomjol/AI-on-the-edge-device/issues/1154))
 -   Show graph of values direct in the user interface (thanks to [@rdmueller](https://github.com/rdmueller))
+    -   Using new data logging (see below)
+    -   Possiblity to choose different values and switch betwenn different numbers (if present)
+
 -   SD card info into the "Info" Menue (thanks to [@Slider007]( https://github.com/Slider0007))
 -   Added a logging of the values in a text table in `/log/data` - each measurement is one line
     -   Format: tabulator separated
     -   Content: time, name-of-number, raw-value, return-value, pre-value, change-rate, change-absolute, error-text, cnn-digital, cnn-analog
-    -   ATTENTION: format not fully fixed yet!
 
 
 ### Changed

+ 1 - 1
sd-card/html/gethost.js

@@ -13,7 +13,7 @@ function getbasepath(){
     {
 //        host = "http://192.168.2.219";          // jomjol interner test
 //        host = "http://192.168.178.46";          // jomjol interner test
-        host = "http://192.168.178.44";          // jomjol interner Real
+        host = "http://192.168.178.46";          // jomjol interner Real
 //        host = "http://192.168.43.191";
 //        host = ".";                           // jomjol interner localhost   
 

+ 3 - 5
sd-card/html/graph.html

@@ -66,11 +66,9 @@ fetch(_basepath + '/fileserver/log/data/' + datefile)
                     var value = line.split("\t")[datatype];
                     var time  = line.split("\t")[0];
                     console.log("> "+time+" "+value+"\n");
-                    if (value<1000) {
-                        trace.x.push(timex);
-                        timex += 1;
-                        trace.y.push(value);
-                    }
+                    trace.x.push(time);
+//                    timex += 1;
+                    trace.y.push(value);
                 }
             }
         }