I need some guidance to set up my Influx database to get the best use of the data in Grafana.
Spent already many days/hours browsing here and with google but I’m not getting any further.
setup:
“Youless” device to capture energy and solar production data
This data is processed in Node-Red and send to InfluxDB 1.8.10
I do have working panels in Grafana but I now need to go further by doing calculations and that’s when my setup grinds to a halt.
What i want to achieve is doing calculations with data to get this:
I think I did configure the InfluxDB in a wrong way:
via node-red I send data to Influx:
DATABASE NAME: sensors
MEASUREMENTS:
- grid-time
- grid-counter
- grid-current_use
- solar-time
- solar-counter
- solar-current-production
but now I can’t do calculations like in this example I found
SELECT
sum("P_Red")/60 AS "Red",
sum("P_FV")/60 AS "FV",
sum("P_Exp")/60 AS "Exportada",
sum("P_Cargas")/60 AS "Cargas"
FROM "Potencias"
WHERE ("Tipo" = '1m')
AND $timeFilter
GROUP BY time(1h) fill(null)
in my setup ‘FROM’ is one measurement, not a collection of several measurements
I need to do a lot of learning but I need to start with the right setup so please help me a step along… Thanks!