Accumulate and sum events in EmonPi 9.2

Hello folks

I've recently re-implemented a new EmonCMS with version 9.2 - many thanks for the great enhancements - I particularly love the pre-built SD image with EmonCMS, Node-Red with OpenHAB and Mosquitto already installed.  I've been building a nice Node-Red script to grap details from the Current Cost in home monitor via the Raspberry Pi USB/Serial and push them to MQTT/EmonCMS if anyone is interested.

I have a few "input devices", including counting how many clicks my gas meter makes in 30s intervals.  What I'd like to do is count how many click occur in one day.  I've played with Accumulate, and Daily High - but can't find a way of getting the counter to reset each day.  Am I missing something?

Looks like some nice new features in the process list (SKIP, RESET, SCHEDULE, etc.) which may help - but I've not been able to find too many examples of how they are used.

Hope this makes sense.  Any help gratefully received.

Keep up the great work to all those who contribute.

Mike 

TrystanLea's picture

Re: Accumulate and sum events in EmonPi 9.2

Hello Mike, rather than reset the accumulator in a feed you can use the bargraph visualisation to extract daily data, there's an example at the bottom of this blog post: http://openenergymonitor.blogspot.co.uk/2014/08/monitoring-solarpv-heatp...

Essentially, it requests the total at the end of the day and calculates the daily accumulation as the difference between the end and start of the day.

Keen2bGreen's picture

Re: Accumulate and sum events in EmonPi 9.2

Hello Trystan - I really appreciate your (very) prompt feedback and advice on my question.

I am struggling to reproduce the technique you reference in the blog.  As mentioned - I'm using a pretty vanilla version of the V9.2 SD image for the Raspberry Pi.  The version I'm using doesnt seem to enable creating feeds with PHPFIWA - its disabled.

I've tried with the PHPFINA, but for some reason the Viz always displays a blank chart - so I must be missing a step.

Is PHPFIWA required to make the technique you reference work?

Thanks again.

Mike

Comment viewing options

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