Hi,
Why are my kWh/d values so widely inaccurate (>400kWh / day) when the power consumption feed is accurate?
DASHBOARD with example of erroneous kWh/D values http://emoncms.org/lgrange
'Power' measurements from emonTXs successfully arrive as 'Inputs' on emoncms.org (every 5 seconds)
I created three feeds per power measurement to process and log power usage data as below.
# Process Arg
1 Allow positive 0
2 Log to feed TOTAL_Power
3 Power to kWh/d kWhd TOTAL_Power
4 histogram Hist TOTAL_Power
The 'TOTAL_Power' feed correctly records and displays current power consumption in dashboards etc.
The 'kWhd TOTAL_Power' feed records hundreds of kWh's, far in excess of actual consumption (10kWh/day)
All other measured power feeds processed this way produce a similar order of magnitude error.
Help, I had this working just fine previously and can't understand what is going wrong in the input processing?
Thanks in advance
Andrew
Re: Power to kWh/Day, input processing problem
Hi Andrew
I thought I was doing the maths wrong but I am not certain after reading your post if I am. I wrote an SQL script to extract the "power" from my power feed then broken that data up over 24 hrs based on my usage tariff. All fine until I then realised that my kwh figures were significantly lower than those produced by the visualizer for kwh or kwh/d.
Did you get anywhere figuring this out?
Revisiting my SQL I realised I was taking the average Watts per period of time then taking the average again which was clearly wrong.
Re: Power to kWh/Day, input processing problem
FYI - and this is most probably wrong knowing me! This should work in most MySQL idles - change the @date, @period_n_X and @cost as appropriate. If you are on a single tariff then you can just use section 7 or the final sql select. Also remember to rename the feed table as appropriate.