25.11.2022, 14:25
Hello,
I am looking for a script that reads from InfluxdbV2 bucket with a flux query and write the result to a LM group object.
Has anybody done this?
Flux query example:
from(bucket: "HR7")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: ® => r["_measurement"] == "Platerigg")
|> filter(fn: ® => r["Component"] == "Mettler")
|> filter(fn: ® => r["Name"] == "Vekt")
|> filter(fn: ® => r["Position"] == "Platerigg")
|> filter(fn: ® => r["_field"] == "Mettler:AI01")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "last")
Kind reagrds
Thomas
I am looking for a script that reads from InfluxdbV2 bucket with a flux query and write the result to a LM group object.
Has anybody done this?
Flux query example:
from(bucket: "HR7")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: ® => r["_measurement"] == "Platerigg")
|> filter(fn: ® => r["Component"] == "Mettler")
|> filter(fn: ® => r["Name"] == "Vekt")
|> filter(fn: ® => r["Position"] == "Platerigg")
|> filter(fn: ® => r["_field"] == "Mettler:AI01")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "last")
Kind reagrds
Thomas