From 12dc4eb46000a16ec72bed6c464edb0acc4e54ed Mon Sep 17 00:00:00 2001 From: jomjol <30766535+jomjol@users.noreply.github.com> Date: Tue, 25 Oct 2022 20:55:57 +0200 Subject: [PATCH] Updated graphical representation --- Changelog.md | 4 +++- sd-card/html/gethost.js | 2 +- sd-card/html/graph.html | 8 +++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Changelog.md b/Changelog.md index 735ac1e7..95c8b53d 100644 --- a/Changelog.md +++ b/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 diff --git a/sd-card/html/gethost.js b/sd-card/html/gethost.js index d838b629..929617e8 100644 --- a/sd-card/html/gethost.js +++ b/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 diff --git a/sd-card/html/graph.html b/sd-card/html/graph.html index 0c990b19..cb2fa483 100644 --- a/sd-card/html/graph.html +++ b/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); } } }