Log of gas count values

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
GammaKappa
Posts: 23
Joined: Friday 12 January 2018 11:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Log of gas count values

Post by GammaKappa »

Setup:
Domoticz 2022.1 running on a RPi 3
I have a gas counter (Type General, Counter Incremental) that counts pulses from a hall sensor on the gas meter.

I noticed that sometimes the values in the log graphs are not consistent.

The values in Domoticz "per hour" graph match perfectly with the values received from my hall sensor.
However, if I add all the "per hour" values of a day from the first log graph, this total does not match with the "per day" value shown in the second graph.

The error is not compensated for the next day.

Can somebody help to explain and/or solve this problem ?
gascount.jpg
gascount.jpg (89.34 KiB) Viewed 228 times
User avatar
psubiaco
Posts: 222
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Log of gas count values

Post by psubiaco »

This seems to be a rounding issue. If the displayed value by hour had 3 decimals instead of 2, maybe the daily value with 2 decimals will be perfect.
Obviously, the right value is the daily one, not the sum of hourly values.
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
GammaKappa
Posts: 23
Joined: Friday 12 January 2018 11:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: Log of gas count values

Post by GammaKappa »

My hall sensor generates a pulse after every rotation of the last digit on my gas meter (i.e. one pulse per 0.01 m3)
So the logging is done with 2 decimals.
If I check the logged values, the 3rd decimal is always 0.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest