use mongo to test
This commit is contained in:
@@ -24,17 +24,17 @@ export const liveData = (params, values, req) => {
|
|||||||
let cnt = 0
|
let cnt = 0
|
||||||
values.forEach((x) => {
|
values.forEach((x) => {
|
||||||
let dat = new Date(x.datetime).getTime()
|
let dat = new Date(x.datetime).getTime()
|
||||||
series1.push([dat, x.noise_LAeq])
|
iu series1.push([dat, x.values.noise_LAeq])
|
||||||
series2.push([dat, x.noise_LA_max])
|
series2.push([dat, x.values.noise_LA_max])
|
||||||
series3.push([dat, x.noise_LA_min]) // put data and value into series array
|
series3.push([dat, x.values.noise_LA_min]) // put data and value into series array
|
||||||
})
|
})
|
||||||
|
|
||||||
if (values.length != 0) {
|
if (values.length != 0) {
|
||||||
const lastidx = values.length - 1
|
const lastidx = values.length - 1
|
||||||
// Aktuelle Werte speichern
|
// Aktuelle Werte speichern
|
||||||
aktVal['LAeq'] = values[lastidx].noise_LAeq
|
aktVal['LAeq'] = values[lastidx].values.noise_LAeq
|
||||||
aktVal['LAMax'] = values[lastidx].noise_LA_max
|
aktVal['LAMax'] = values[lastidx].values.noise_LA_max
|
||||||
aktVal['LAMin'] = values[lastidx].noise_LA_min
|
aktVal['LAMin'] = values[lastidx].values.noise_LA_min
|
||||||
|
|
||||||
// InfoTafel füllen
|
// InfoTafel füllen
|
||||||
infoTafel =
|
infoTafel =
|
||||||
|
|||||||
Reference in New Issue
Block a user