Version 12.2.0 Self-hosting on RPi4
Trying to collect and display daily total PV production in my dashboard. G-bloc gathers information correctly but resets to 0kWh each day at 4PM PST (Los Angeles, Ca. USA).
Here’s my current G-bloc:
XXX I’m trying to reset this information daily at midnight and am currently using at offset of -12. This resets at 4AM, which is fine. I can change this easily.
What’s happening is that the daily total resets at 4PM and that excludes some additional PV production, especially in the summertime .
Grant2, pulling down Time Picker looks to show my correct local time: 2025-12-10 16:49:23 to 2025-12-11 04:49:26
HOWEVER!! I think you nailed it. My Influxdb logs are showing UTC time 8 hrs ahead. (2025-12-11T12:53:32Z) That could be the trick. I’ll have to work out how to get that corrected. Ideas?
I pulling data from another solar monitoring app called Solar Assistant. It’s drawing its data from the inverter wireless dongle. I’m using an matt broker that SA allows to get my data via a telegraf.cnfg file that runs on a docker container the Pi. All the 4 main data gathering and reporting programs run as docker containers.
My plan is to be able to pull the data directly from the inverter either wired or wireless and import it into my existing monitoring program.
All in all, I started learning Linux this summer after I hurt my back and couldn’t windsurf and work in my woodshop much. But now, with PT, I’m back up to speed.
So I ended up with a solution and should have thought of this earlier. By assigning my timezone to Los Angeles the 4pm reset solved itself. Here’s the updated query:
r with
\_value:
(if exists r\["solar_assistant/inverter_1/pv_power_1/state"\]
then float(v: r\["solar_assistant/inverter_1/pv_power_1/state"\])
else 0.0) +
(if exists r\["solar_assistant/inverter_1/pv_power_2/state"\]
then float(v: r\["solar_assistant/inverter_1/pv_power_2/state"\])
else 0.0)
}))
// Clamp + W → Wh per minute
|> map(fn: (r) => ({
r with
\_value: if r.\_value < 0.0 then 0.0 else r.\_value / 60.0