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