Change data to csv, harmonize REST API editflow

This commit is contained in:
jomjol
2022-11-05 19:56:09 +01:00
parent 22fe50f80a
commit 9b8594c040
11 changed files with 31 additions and 30 deletions

View File

@@ -59,10 +59,10 @@ fetch(_basepath + '/fileserver/log/data/' + datefile)
for (let line of lines) {
{
console.log(line);
if (line.split("\t")[1] == numbername)
if (line.split(",")[1] == numbername)
{
var value = line.split("\t")[datatype];
var time = line.split("\t")[0];
var value = line.split(",")[datatype];
var time = line.split(",")[0];
console.log("> "+time+" "+value+"\n");
trace.x.push(time);
// timex += 1;