# Gas total to consumption per hour

**URL:** <https://community.openenergymonitor.org/t/gas-total-to-consumption-per-hour/2272>\
**Category:** Emoncms\
**Created:** [21 November 2016 05:15 UTC](https://community.openenergymonitor.org/t/gas-total-to-consumption-per-hour/2272 "2016-11-21T05:15:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fversteegen](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/fversteegen/32/22375_2.png) [@fversteegen](https://community.openenergymonitor.org/u/fversteegen)\
**Post date:** [21 November 2016 05:15 UTC](https://community.openenergymonitor.org/t/gas-total-to-consumption-per-hour/2272/1 "2016-11-21T05:15:42Z")

</div>

I use emoncms now already for several years and recently got gas meter reading working. The only problem is that I can read just the absolute gas usage (current gas meter reading since the meter was installed). I want to change this so I can get the hourly consumption. I know how to do it the other way around (as I do for electricity → daily → monthly) but cannot figure out how to do make this work.

Does anyone know how this can be done through input processing? Logically it would be THISHOURCONSUMPTION = CURRENTGASREADING - GASREADINGPREVIOUSHOUR but the minus processor only works for different feeds…

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [22 November 2016 16:53 UTC](https://community.openenergymonitor.org/t/gas-total-to-consumption-per-hour/2272/2 "2016-11-22T16:53:14Z")

</div>

Can you not log to a wh accumulator feed then use the ‘delta’ function of the bar graph vis to display daily or hourly data?

See: [Home | OpenEnergyMonitor](https://openenergymonitor.org/emon/opticalpulsesensor)

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/c/c22cee01fa25aa3c865625fe9375ba9dbf815157.png)

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/b/bbe70466a8571c92177aeca9ad929ac1d99ab039.png)

---

<div class="post-metadata">

**Author:** ![aetjansen](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@aetjansen](https://community.openenergymonitor.org/u/aetjansen)\
**Post date:** [10 January 2017 14:21 UTC](https://community.openenergymonitor.org/t/gas-total-to-consumption-per-hour/2272/3 "2017-01-10T14:21:05Z")

</div>

Hi @fversteegen, did you get this to work? I am looking for a solution to the same problem.

I think I understand what @glyn.hudson is saying, but the gas readings are in m3 usually , you are talking about wH?

---

<div class="post-metadata">

**Author:** ![fversteegen](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/fversteegen/32/22375_2.png) [@fversteegen](https://community.openenergymonitor.org/u/fversteegen)\
**Post date:** [2 June 2017 07:09 UTC](https://community.openenergymonitor.org/t/gas-total-to-consumption-per-hour/2272/4 "2017-06-02T07:09:31Z")

</div>

Hi @aetjansen apologies for the (VERY) late reply.

I didn’t manage to get it to work, but as I use homeassistant nowadays for this the developer of the DSMR script was kind enough to implement it for me. This only works in homeassistant by the way (but homeassistant can also send the values to emoncms if needed). See: [Support for reading Dutch Smart Meter (electricity/gas) (P1 port) - Feature Requests - Home Assistant Community](https://community.home-assistant.io/t/support-for-reading-dutch-smart-meter-electricity-gas-p1-port/1676)
