Community
OpenEnergyMonitor

Community

New feed for kWh/day


(ALLUYN Laurent) #1

Helo,

I’d like to create a new feed for real time daily consumption. Go back to “zero” each new day. How can I do please ?
I want tu use this parameter on Nextion Screen for display.


(Glyn Hudson) #2

Sorry I don’t think there is anyway to do this currently. Agree, this would be something that would be worth looking at.


(Greebo) #3

If you have to write code to get the data to the Nextion Screen, you could take the same approach the EmonCMS “My Electric” App takes using the cumulative kWh feed, ie. get the data in daily chunks via the relevant API and then subtract the value from the day before from the value for each day to get the “daily” value.

The various EmonCMS “Time of Use” Apps operate in the same way with “hourly chunks” of data to work out hourly consumption.


(Chaveiro) #4

I’m sure a DAILY feed in MYSQL engine works that way.
I have some feeds created, they show just a value for each day being the current day value incremented on each post.
image

image


(Brian Orpin) #5

What would be the definition of a ‘day’? Is it timezone adjusted?


(ALLUYN Laurent) #6

Hello,

in fact, I just want to get values displayed by emonGLCD
(59

Mainly "using today in kWh, SolarPV today in kWh like o picture.
Where does emonGLCD get these values ?


(Chaveiro) #7

Yes, the processlist power_to_kwhd function uses the account timezone.


(Robert Wall) #8

By default, only the time comes from the emonBase/emonPi, the power values come direct from the emonTx. The GLCD sketch itself accumulates the kWh values on a daily basis.