mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-18 13:38:15 +03:00
Updated graphical representation
This commit is contained in:
@@ -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 `/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))
|
- 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))
|
- 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))
|
- 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
|
- Added a logging of the values in a text table in `/log/data` - each measurement is one line
|
||||||
- Format: tabulator separated
|
- Format: tabulator separated
|
||||||
- Content: time, name-of-number, raw-value, return-value, pre-value, change-rate, change-absolute, error-text, cnn-digital, cnn-analog
|
- 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
|
### Changed
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function getbasepath(){
|
|||||||
{
|
{
|
||||||
// host = "http://192.168.2.219"; // jomjol interner test
|
// host = "http://192.168.2.219"; // jomjol interner test
|
||||||
// host = "http://192.168.178.46"; // 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 = "http://192.168.43.191";
|
||||||
// host = "."; // jomjol interner localhost
|
// host = "."; // jomjol interner localhost
|
||||||
|
|
||||||
|
|||||||
@@ -66,14 +66,12 @@ fetch(_basepath + '/fileserver/log/data/' + datefile)
|
|||||||
var value = line.split("\t")[datatype];
|
var value = line.split("\t")[datatype];
|
||||||
var time = line.split("\t")[0];
|
var time = line.split("\t")[0];
|
||||||
console.log("> "+time+" "+value+"\n");
|
console.log("> "+time+" "+value+"\n");
|
||||||
if (value<1000) {
|
trace.x.push(time);
|
||||||
trace.x.push(timex);
|
// timex += 1;
|
||||||
timex += 1;
|
|
||||||
trace.y.push(value);
|
trace.y.push(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
console.log(trace);
|
console.log(trace);
|
||||||
var data = [trace];
|
var data = [trace];
|
||||||
Plotly.newPlot('chart', data);
|
Plotly.newPlot('chart', data);
|
||||||
|
|||||||
Reference in New Issue
Block a user