Replies: 3 comments 2 replies
-
What's stored in the Vuegraf DB is essentially WattSeconds, since it's recording the Watts used across each progressing second. If you want KwH for a selected Grafana date range, wouldn't you be able to take the sum of the WattSeconds and divide by 3,600,000 (3600 seconds in an hour x 1000 watts in a Kw)? I figure there is likely some double dipping going on, either in the data coming from Emporia, or perhaps Vuegraf is slightly overlapping (re-requesting) some intervals, since my numbers are always higher than my Electric bill for the same period. I haven't focused much on accuracy of the data since my primary reason for building Vuegraf is for detecting relative usage trends and proactive alerting to abnormal energy usage. But if someone wants to double check my logic it wouldn't hurt. |
Beta Was this translation helpful? Give feedback.
-
I was also playing with this (but for tracking Avg, Min, Max kW usage during a given timeframe - so not exactly the same), but I had to change the data around to make it work. For example, if I wanted the average power usage for an hour, I had to set the time range to "Last 1 Hour", ensure that the field defined for display had Watt(W), and that my math matched up with the timeframe: Unfortunately, even that doesn't quite match up exactly with what I see on the Emporia App, but it's pretty close. I would think that there's has to be some way that this math can automatically done. For example, I noticed that in the 'Group By' field the time option has $interval defined in it, so if the $interval is 1 hour, then I figure there would be some way to change the value inside of math(/$interval.seconds), so that it would equal the interval in seconds - not sure what programming language or syntax is used; I just assumed that I could do object.property . Any idea how that could be done? I don't know anything about Grafana or SQL databases (if Influx is even a SQL type database) at all. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Update...since the previous posts weren't exactly relevant to the title of the post - to get Kilowatt Hours for a timespan, (instead of tracking Avg/Min/Max loads like I was interested in / what I posted above), I did the following: I changed the field to Watt-Hour(Wh) and then used Sum to add everything up for the applied $timeFilter and then divided by 3600 seconds and it matches up with what I see in the Emporia App. |
Beta Was this translation helpful? Give feedback.
-
Hi,
The real-time graphing is working really well but I would love to be able to track total usage in kWh over time. I have tried various queries to accomplish this but I can't get it to work properly.
I think it would be great to be able to pull a total usage per circuit per day so that we can monitor total kWh over time. Then I could take that and sum it to weekly, monthly either by circuit or for whole house usage.
I know that I can pull a CSV report from the Emporia app but I would think that this should be available via Grafana too but I can't seem to arrive on a query that works so I thought maybe there was something else that could be pulled from Emporia that would provide totals properly.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions