# Feeding emoncms with total counter values

**URL:** <https://community.openenergymonitor.org/t/feeding-emoncms-with-total-counter-values/5233>\
**Category:** Emoncms\
**Tags:** watermeter, cummulativedata\
**Created:** [28 September 2017 13:10 UTC](https://community.openenergymonitor.org/t/feeding-emoncms-with-total-counter-values/5233 "2017-09-28T13:10:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jujonet](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jujonet/32/4571_2.png) [@Jujonet](https://community.openenergymonitor.org/u/Jujonet)\
**Post date:** [28 September 2017 13:10 UTC](https://community.openenergymonitor.org/t/feeding-emoncms-with-total-counter-values/5233/1 "2017-09-28T13:10:52Z")

</div>

Hello,

First of all thank you in advance for reading this.  
I’m planning to use emoncms to track my water usage.  
I’m able to feed emoncms with the cummulative value that is shown in the water counter (have a smart meter that is able to send the actual value to the KNX bus).  
I know usually users feed using pulses, but I thought that in case some pulses are lost (let’s say I ran out of electricity, or the computer are rebooting or any other stuff, I would not lose data; just will be written in another time.)

Let’s assume I have this following data:

- 12:00 25,000 litres
- 12:01 25.001 litres
- 12:06 25.004 litres
- 12:10 25.010 litres
- 12:32 25.415 litres

This way my consumption should be the actual - previous data.

Could anyone point me in the right direction in order to set up inputs and feeds to get:graphs of

- Consumption by minutes last hour
- Consumption by hours last day
- Consumption by weeks last 2 months
- etc…

And yes… I have a water leak I’m not able to find 😩

For the avoidance of doubt; as of today I’m using [emoncms.org](http://emoncms.org) and my values are increasing measure after measure. I plan to use also a Rpi -at a later stage- and monitor both in local and in remote.  
If my English is not the best… well, I’m Spanish

Again, thanks very much in advance

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [20 October 2017 18:08 UTC](https://community.openenergymonitor.org/t/feeding-emoncms-with-total-counter-values/5233/2 "2017-10-20T18:08:59Z")

</div>

Hi Julio!

I may be able to point you in the right direction. I have a RasPi device that I am rebuilding (SD card went corrupt) that monitors my water usage and I don’t have access to all of the info you requested.

Like your setup I see only the cumulative value with my water meter (in gallons). But my setup only grabs and logs data once per minute.

I did this (see image below) to get the incremental values (again per minute):

 ![55 PM](https://community.openenergymonitor.org/uploads/default/original/2X/2/2bf33145f310299b6f2d818c327b1e04b6c6b13b.png)

There are a few forum posts that may help:  
[https://openenergymonitor.org/forum-archive/node/12537.html](https://openenergymonitor.org/forum-archive/node/12537.html)  
-or-

> [@Water Meter Guide Updated v2.0 - \[REPOST\]](https://community.openenergymonitor.org/t/water-meter-guide-updated-v2-0-repost/3246):
>
> The post below is a repost from the archived OEM forum. Originally submitted by smitt1979 on Thu, 21 April 2016 - 21:23 This guide is to show the setup of a water meter with a pulse output. I will be using the pulse input on an EmonTH in this guide but there is no reason the setup will not work with other products in the OEM family that have a pulse input e.g. (Emonpi, etc). My reason for using the EmonTH is the location of the meter and the pulse input on my Emonpi already being used for mon…

> [@Pulse Counting Logic for Water Meter](https://community.openenergymonitor.org/t/pulse-counting-logic-for-water-meter/1046):
>
> Hi All I’m trying to implement pulse counting on my water meter and I’m struggling to get daily feed totals and also I want to measure how much water I use for showers but for the logic that I’ve attached below, once someone uses the shower, it will add the previous water use for that day.

> [@Help with Water Consumption Tracking - Only showing 1GPM all the time...?](https://community.openenergymonitor.org/t/help-with-water-consumption-tracking-only-showing-1gpm-all-the-time/376):
>
> So I have added three water meters to our house and have got two of them up and running and dumping the pulse data into emoncms. I am reporting back to my emonpi once per minute when the water is not flowing and once per gallon while the water is flowing. My emonhub conf is reporting back to emoncms at 5 second intervals of bulk data. Here is what I would like to do: Monitor, (in near real time) water usage. I realize that I am only reporting every 1 gallon, so this is enough of “near real t…

&nbsp;  
and a few others:  
[https://community.openenergymonitor.org/search?q=water](https://community.openenergymonitor.org/search?q=water)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Jujonet](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jujonet/32/4571_2.png) [@Jujonet](https://community.openenergymonitor.org/u/Jujonet)\
**Post date:** [25 October 2017 07:03 UTC](https://community.openenergymonitor.org/t/feeding-emoncms-with-total-counter-values/5233/3 "2017-10-25T07:03:04Z")

</div>

Thank you very much for pointing me in the right direction.  
I had already seen those posts, despite did not see any mention to the “rate of change” process.

Furthermore I tried to set it up at [emoncms.org](http://emoncms.org) and unfortunately did not find it.  
Am I doing something wrong or is because [emoncms.org](http://emoncms.org) is just a reduced version of the local installation.

Best regards and thank you again

Julio

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [25 October 2017 21:26 UTC](https://community.openenergymonitor.org/t/feeding-emoncms-with-total-counter-values/5233/4 "2017-10-25T21:26:38Z")

</div>

Julio - I am not an expert with [emoncms.org](http://emoncms.org) but I did give it a quick try. I did not see “rate of change” either. So you might be better off waiting until you get the Rpi setup and do the “rate of change” locally.

Or maybe Trystan @TrystanLea can answer if “rate of change” might be available on [emoncms.org](http://emoncms.org) sometime soon.

---

<div class="post-metadata">

**Author:** ![Jujonet](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jujonet/32/4571_2.png) [@Jujonet](https://community.openenergymonitor.org/u/Jujonet)\
**Post date:** [25 June 2018 09:08 UTC](https://community.openenergymonitor.org/t/feeding-emoncms-with-total-counter-values/5233/5 "2018-06-25T09:08:38Z")

</div>

After several months I’m here again to thank you.  
The reason for being that late is that the installation of the water meter in my house has been a real pain. Do not want to bother you with the details but took several months installing it.

But now it’s working and providing “close to real time” measurements -KNX is not the fastest protocol in the world…

So just a fast question re your config. What engine are you using?  
PHPFINA is not working for me.  
PHPTIMESERIES looks better though still have to make several trial and error…

Whould you be so kind to share the rest of the config, as well as a couple of graphs?

Best regards
