Is an incomplete information better than nothing?
09/12/2016
This is a request posted in a comment on the article about water consumption that calls out:
And the program that allows monitoring the impulses, is it possible :p ?
The answer to this request, in a form visible by a layman, is this:

The version in a form that interests a computer scientist is probably less sexy (although...):
#!/usr/bin/env python
import RPi.GPIO as GPIO
import time, datetime
GPIO.setmode(GPIO.BOARD)
def cb(pin):
cd= datetime.datetime.now()
f= open('/var/capteurs/eau/' + cd.strftime('%Y-%m-%d_%H%M%S.%f'), 'w')
f.close
GPIO.setup(15,GPIO.IN)
GPIO.add_event_detect(15, GPIO.FALLING, callback=cb, bouncetime=180)
try:
while True:
time.sleep(1)
except KeyboardInterrupt:
GPIO.cleanup()
In all cases, this answer is incomplete.
And yet it is the exact content of the capteur.py file that has been working since 02/17/2014 (almost 3 years!) and which is already at the origin of the counting of more than 1,900,000 impulses...
But it's only a (small) piece of the puzzle that allows visualizing the water consumption presented in the article in question.
At worst, this information is useless. At least it is harmless. At best it will raise lots of other questions :-(. But who knows, perhaps it will be sufficient? In doubt, might as well share it.
The real question that is asked is "How to monitor my consumption myself?" is important and deserves an answer. However, it would take time to really answer it, much more than to write this article, almost as much as to develop the device that allows knowing it, much less than to acquire the skills to have been able to design and realize this device. The availability necessary to answer satisfactorily to this real question competes with more alimentary obligations...
Then, it also depends on the number of interested people, which could motivate a revision of priorities in favor of a more complete communication on the solution implemented to count impulses.
Precisely, there is another parallel project just as motivating: how to collect an objectively quantified opinion on a question. Ah la la, it's not the passionate projects that are missing but the time to treat them well.
In the meantime, back to priorities, those that contribute immediately and directly to the turnover of EURL Barme, all just as passionate by the way...