Hello Grafana Community,
I’m currently facing an issue with the time range on my Grafana dashboard. I’m using InfluxDB as my data source and Flux as my query language.
Here’s the Flux query I’m using:
import "timezone"
option location = timezone.location(name: "Europe/Berlin")
from(bucket: "Einspeisung")
|> range(start: -1d, stop: now())
|> filter(fn: (r) => r["_measurement"] == "PV-Sonennstraße96-Ost" or r["_measurement"] == "PV-Sonennstraße96-Süd" or r["_measurement"] == "PV-Sonennstraße96-West" or r["_measurement"] == "PV-Sonennstraße96")
|> filter(fn: (r) => r["_field"] == "power" or r["_field"] == "P_in")
|> aggregateWindow(every: 1h, fn: mean, createEmpty: false)
|> yield(name: "mean")
I want only the Power from my solarsystem from today. right now it looks like this.
3 posts - 3 participants