Cannot get Wh Accumulator to work

Installation is a latest 'pull' from the repo for both emoncms and app.

I cannot get the Wh Accumulator to work.  The Feed just says 'N/A'.  The log to feed and power to kWh both work.

I followed this instruction;

"Click on the wrench icon for CT1 Wh: Select Wh accumulator. Enter a name for the feed or use suggested, select the Fixed Interval No Averaging (PHPFina) feed engine and select the 10s feed interval."

Any suggestions?  This is a new installation.

Brian

Paul Reed's picture

Re: Cannot get Wh Accumulator to work

Did you read what it said about the Wh Accumulator in the process list setup page.

To be used in conjunction with an emontx sending total watt hours elapsed to emoncms. This processor ensures that when the emontx is reset the watt hour count in emoncms does not reset, it also checks filter's out spikes in energy use that are larger than a max power threshold set in the processor, assuming these are error's, the max power threshold is set to 25kW.
Requires redis installed to work

Paul

Patrik Arlos's picture

Re: Cannot get Wh Accumulator to work

So, unless you update the emontx/pi to a firmware that does this, like emonTxV3_4_Continuous_Beta or emonPi_RFM69CW_RF12Demo_ContinuousSampling (removing the comments for getWattHour), the "Wh Accumulator" should not be used, as it expects/requires a continuously increasing value.  

I've tried to some documentation about the "power to kWh", as it seems to be equivalent, but running locally on the EmonCMS/hub/pi (where?). 

The challenge that I have is that I need to obtain the energy used during a random time interval. My approach was to log the node CT input using the "Power to kWh" to a feed.  

During an experiment, I requested the feed value at the start of the time interval (/emoncms/feed/value.json?...), lets say I got X. Then at the end of the interval, I did the request again and got Y. Now the energy used would be Y-X kWh. Does this seem reasonable? Or should I take the plunge, and update all firmwares to continous_sampling_with_kWh

Some initial tests looked fine. However,as I was unclear about the update rate of the feed I did an experiment where I requested the feed value once per second. I've done two observations. The feed value changes approximately every 140s, and then the change is really small 0.01 (however representing the load on the system for a 140s).

Now, as far as i read on various pages/codes, the emonTx (source in this case), reports the values to the base every 10s. Now, in a bad wireless environment some of these packets could be lost, but to always loose 13 packets and only one making it across? Possible, but unlikely, and more probable some variations in the update rate should be present.. (any way to check this on the receiver, ie. how noisy the environment is?)

When comparing to the "log to feed" of the same input, the samples are really bad, lots of null values, but there is data more frequently than 140s and sadly also bigger than 140s gaps between non-null samples. 

So, questions...

1) where can I find the documentation for "Power to kWh"
2) does my "used energy" approach work (in teory) based on a "Power to kWh" feed?
3) Where are the 140s coming from? 

BR/patrik

borpin123's picture

Re: Cannot get Wh Accumulator to work

Hi Paul,

I'd have loved to read that.  Where did I not find it :).  I googled the first sentence and it did not come up in the results (just this and one other post).  I was doing what Trystan said and followed the EmonPi documentation.  Obviously that was not the right thing to do :(

Cheers.

Paul Reed's picture

Re: Cannot get Wh Accumulator to work

No googling necessary, the information is right there in your emoncms installation.

In emoncms, go to 'inputs' and select a 'spanner' to add a process, select the Wh Accumulator from the 'Add process' box, and you will see the description of the process appear in the blue box below. (as I've pasted above).

Paul

borpin123's picture

Re: Cannot get Wh Accumulator to work

Ah Ok.  I did read that but it did not tell me (and I had no other of way of knowing) that this was telling me that this input was not compatible with my EmonTX (which is a couple of years old).  It would make sense to someone who knows the background, but to someone just coming in fresh, the text means nothing.

So back to my earlier question, what feeds should I be creating to use the My Electric module.  Even there, you really need to know what it is telling you to create the right feed.

The documentation really does need a freshen up (and I'd be happy to contribute) as I've been at this for a while now and I am sure I am not alone in this struggle.

Cheers, Brian.

Paul Reed's picture

Re: Cannot get Wh Accumulator to work

You just need a realtime feed which logs your consumption, then add a process 'power_to_kWh/d', and there are your two feeds.

Paul

borpin123's picture

Re: Cannot get Wh Accumulator to work

OK Great - thanks.

I suppose the next question is whether the V3 can do the accumulator with a firmware upgrade or if it is only available in the later HW.

Brian

Patrik Arlos's picture

Re: Cannot get Wh Accumulator to work

What version of EmonCMS has this? My version is low-write-v8.5 (as delivered on the EmonPi, Sept~Oct 2015), and there its Nodes, where the 'spanner' is found. 

Will try a git pull/update to see if it appears in the new version. 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.