[Tuto] Compteur eau et détecteur fuite sur un GPIO pour 10€

Vous avez créé un script LUA dont vous êtes fier, un .sh génial, un programme Python hors du commun, un Tuto, c'est ici que vous pouvez les partager.
frenchyyii
Messages : 310
Inscription : 16 oct. 2015, 06:29

Re: Mesure compteur eau en filaire sur un GPIO pour 10€

Message par frenchyyii »

Nickel ce tuto merci, du coup je me demande si un cny70 pourrait voir les portions blanches de mon vieux compteur electrique et ceci depuis l'extérieur du boitier. Une esp8266 derrière et ça simplifierait les chose chez moi.
A l'occaz j'en ferai rentrer un ou deux.
Pour les électrovannes j'ai ça dans mon bahut pour du petit débit, pas de souci pour le moment.
js-martin
Messages : 487
Inscription : 22 mars 2015, 22:08
Contact :

Re: Mesure compteur eau en filaire sur un GPIO pour 10€

Message par js-martin »

Lorsque je cherchais le composant idéal, j'ai vu qu'une personne avait utilisé le cny70 sur un compteur electrique à roue. Cela semble donc possible...

Pour la vanne, je vais creuser la question mais il faut deja que je trouve le temps de modifier mon code...
Domotisation de : mes compteurs EDF, solaire, eau / mon alarme / ma Chaudière Viessamnn / mon congel / ma sonnette. Matériels : Pi2 - RFXTrx433e - Zwave+ Aeotec, ampoules Hue - Détecteur et prises Fibaro - Capteurs Oregon - présentation installation => lien
nickous
Messages : 30
Inscription : 24 juil. 2015, 16:31

Re: Mesure compteur eau en filaire sur un GPIO pour 10€

Message par nickous »

Merci pour ce tuto
c'est exactement ce que je voulais faire (à part que je compte utiliser un TCRT5000 http://www.aliexpress.com/item/free-shi ... 44656.html).

Pour le script Python...je débute...
Pour l'instant j'ai juste créé les 2 widgets, le script setwatercounter.py et...j'ai rencontré 2 obstacles à l'exécution du script
  1. 1- ImportError: No module named requests
    que j'ai résolu par ->

    Code : Tout sélectionner

    sudo apt-get install python-requests
  • 2- TypeError: 'dict' object is not callable
    remplacer à la ligne 30 ->

    Code : Tout sélectionner

    r = requests.get('http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=devices&rid='+str(dummy_idx['compteur_eau'])).json()
    
    par

    Code : Tout sélectionner

    r = requests.get('http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=devices&rid='+str(dummy_idx['compteur_eau'])).json
    
    r=request.get("requete").json sans les parentheses '()' à la fin
Je précise que je tourne sur PI2 avec la dernière version v3.4985 (je suis parti de l'image domoticz-raspberrypi-sdcard-3530.7z ou de la dernière 4834 je sais plus :twisted: :twisted: !!!), avec les dernières maj.
Pour info, la commande "python" me donne "Python 2.7.3 (default, Mar 18 2014, 05:13:23)".
js-martin
Messages : 487
Inscription : 22 mars 2015, 22:08
Contact :

Re: Mesure compteur eau en filaire sur un GPIO pour 10€

Message par js-martin »

J'ai oublié de preciser d'installer requests. Je vais le rajouter dans le tuto.

Pour le deuxième point, je ne sais pas pourquoi. J'ai la meme version que toi de Python.
Domotisation de : mes compteurs EDF, solaire, eau / mon alarme / ma Chaudière Viessamnn / mon congel / ma sonnette. Matériels : Pi2 - RFXTrx433e - Zwave+ Aeotec, ampoules Hue - Détecteur et prises Fibaro - Capteurs Oregon - présentation installation => lien
nickous
Messages : 30
Inscription : 24 juil. 2015, 16:31

Re: Mesure compteur eau en filaire sur un GPIO pour 10€

Message par nickous »

Merci pour la précision
nickous a écrit :je suis parti de l'image domoticz-raspberrypi-sdcard-3530.7z
je viens de refaire une install "propre" avec l'image 4834 du 02/03/2016
(version Python 2.7.9 (default, Mar 8 2015, 00:52:26)
Le problème de parentheses '()' à la fin de r=request.get("requete").json() n'est plus d'actualité :roll:
js-martin
Messages : 487
Inscription : 22 mars 2015, 22:08
Contact :

Re: Mesure compteur eau en filaire sur un GPIO pour 10€

Message par js-martin »

Parfait.

Je suis en train de tester mon code de détection de fuite d'eau s'il y a une fuite supérieure ou égale à 0,5l/h. Ca avance...
Domotisation de : mes compteurs EDF, solaire, eau / mon alarme / ma Chaudière Viessamnn / mon congel / ma sonnette. Matériels : Pi2 - RFXTrx433e - Zwave+ Aeotec, ampoules Hue - Détecteur et prises Fibaro - Capteurs Oregon - présentation installation => lien
js-martin
Messages : 487
Inscription : 22 mars 2015, 22:08
Contact :

Re: Mesure compteur eau en filaire sur un GPIO pour 10€

Message par js-martin »

Mon script de détection de fuite d'eau analytique semble fonctionner !!

Rappel : comme mon foyer ne consomme pas de l'eau toute la journée (surement comme tout le monde ?), je fais une analyse sur 24H des consommations. J'ai mis cela dans des logs pour voir si mon code tournait. S'il y a au moins une heure sans consommation d'eau sur ces 24H, c'est que tout va bien ! En effet, cela signifie qu'il n'y a pas de fuite d'eau : la précision (avec un système comme la demi-lune) est de 0,5l/heure ou 0,0083litre/min. Bref, si le programme vous dit que votre installation est sans fuite c'est que vous n'avez pas de fuite supérieur à 9 millilitres/min (et donc vous pouvez dormir sur vos deux oreilles).

Les logs (ce n'est pas très intéressant...sauf la dernière ligne) :

Code : Tout sélectionner

pi@raspberrypi /var/tmp $ cat eau_debug.log
2016-03-26 23:29:38,761 -- eau -- INFO -- --Debut ananlyse : 23 heure (jour de la semaine 5 (0=lundi to 6=dimanche)
2016-03-26 23:31:57,196 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:40:06,793 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:40:12,527 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:40:20,215 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:40:29,667 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:40:39,136 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:40:48,601 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:40:57,956 -- eau -- INFO -- consommation 0.5 litre
2016-03-26 23:41:07,429 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 00:09:39,036 -- eau -- DEBUG -- changement d'heure - heure courante =0
2016-03-27 00:09:39,037 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 00:09:39,038 -- eau -- DEBUG -- ***changement de jour =6
2016-03-27 00:09:39,039 -- eau -- INFO -- C'est le premier jour d'analyse, on attend une journee entiere
2016-03-27 00:09:39,041 -- eau -- INFO -- ==>sur cette journee non complete : fuite eau
2016-03-27 00:09:39,042 -- eau -- INFO -- --Debut ananlyse : 0 heure (jour de la semaine 6 (0=lundi to 6=dimanche)
2016-03-27 01:09:39,352 -- eau -- DEBUG -- changement d'heure - heure courante =1
2016-03-27 01:09:39,353 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 03:09:39,758 -- eau -- DEBUG -- changement d'heure - heure courante =3
2016-03-27 03:09:39,759 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 04:09:40,212 -- eau -- DEBUG -- changement d'heure - heure courante =4
2016-03-27 04:09:40,213 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 05:09:40,581 -- eau -- DEBUG -- changement d'heure - heure courante =5
2016-03-27 05:09:40,582 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 06:09:40,878 -- eau -- DEBUG -- changement d'heure - heure courante =6
2016-03-27 06:09:40,879 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 07:09:41,364 -- eau -- DEBUG -- changement d'heure - heure courante =7
2016-03-27 07:09:41,365 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 08:09:41,789 -- eau -- DEBUG -- changement d'heure - heure courante =8
2016-03-27 08:09:41,790 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 09:09:42,310 -- eau -- DEBUG -- changement d'heure - heure courante =9
2016-03-27 09:09:42,311 -- eau -- DEBUG -- Pas de consommation d'eau pendant une heure !
2016-03-27 09:18:01,404 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 09:18:18,093 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 09:18:34,535 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:09:42,750 -- eau -- DEBUG -- changement d'heure - heure courante =10
2016-03-27 10:09:42,751 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 10:19:33,559 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:35:52,858 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:36:03,636 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:36:13,876 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:36:24,011 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:36:33,952 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:36:40,823 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:36:45,884 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:36:53,387 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:37:02,584 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:37:11,766 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:37:20,833 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:37:29,975 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:39:56,508 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:46:46,960 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:49:14,014 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:49:46,080 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:51:31,345 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:51:41,137 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:51:50,812 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:52:27,033 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:52:54,607 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:53:21,739 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:53:47,816 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:54:36,546 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:54:46,549 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:55:18,151 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:00,669 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:05,670 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:13,453 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:19,656 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:25,831 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:32,970 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:37,938 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:56:42,955 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 10:57:16,532 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:00:15,523 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:02:45,740 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:02:51,601 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:03:04,075 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:05:42,102 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:06:45,044 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:06:50,027 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:06:55,006 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:08:58,095 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:09:03,282 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:09:08,527 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:09:13,774 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:09:19,061 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:09:42,929 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:09:43,293 -- eau -- DEBUG -- changement d'heure - heure courante =11
2016-03-27 11:09:43,294 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 11:09:51,834 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:12:26,095 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:12:32,252 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:12:59,433 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:13:05,246 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:13:10,715 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:14:26,113 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:14:32,233 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:14:38,381 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:14:46,923 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:14:55,601 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:15:04,263 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:15:13,019 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:19:14,019 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:23:56,539 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:24:01,681 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:24:28,712 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:26:29,582 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:26:36,116 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:26:42,677 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:26:50,691 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:26:58,327 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:27:06,006 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:29:14,033 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:31:02,360 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:31:16,839 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:31:21,883 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:31:26,900 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:32:55,843 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:34:08,489 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:36:42,753 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:37:43,635 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:37:48,730 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:40:34,729 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:40:45,000 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:41:01,258 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:49:23,686 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:49:29,866 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:49:36,032 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 11:58:15,473 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:09:43,773 -- eau -- DEBUG -- changement d'heure - heure courante =12
2016-03-27 12:09:43,774 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 12:20:04,141 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:20:13,912 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:20:23,702 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:20:33,558 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:20:43,411 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:20:53,189 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:20:59,345 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:21:07,105 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:24:25,147 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:25:48,037 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:37:21,091 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:37:27,042 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:38:34,426 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:38:39,299 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:38:44,267 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:38:49,221 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:38:54,222 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:38:59,203 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:49:25,103 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 12:52:46,609 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 13:09:44,164 -- eau -- DEBUG -- changement d'heure - heure courante =13
2016-03-27 13:09:44,165 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 13:28:54,855 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 13:30:01,732 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 13:45:16,278 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 13:53:49,857 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 13:58:11,881 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:09:44,692 -- eau -- DEBUG -- changement d'heure - heure courante =14
2016-03-27 14:09:44,693 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 14:16:52,155 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:02,108 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:09,663 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:13,665 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:17,684 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:21,698 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:30,103 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:39,803 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:49,495 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:17:59,230 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:18:08,910 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:18:18,657 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:18:28,358 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:18:35,780 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:26:09,195 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:26:17,162 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:26:25,085 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:26:33,019 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:26:49,558 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:26:55,994 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:27:12,097 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:27:17,194 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:27:35,121 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:28:22,285 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:28:27,630 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:29:06,685 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:29:19,062 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:29:24,888 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:30:07,183 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:31:35,666 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:31:41,536 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:31:47,400 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:31:53,257 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:31:59,148 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:32:16,802 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:32:22,195 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:33:03,150 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:33:08,140 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:33:13,140 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:33:46,488 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:34:06,177 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:34:18,863 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:34:24,895 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:38:04,844 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:45:28,429 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:46:23,732 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:46:31,241 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:46:38,770 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 14:48:51,263 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:09:45,054 -- eau -- DEBUG -- changement d'heure - heure courante =15
2016-03-27 15:09:45,055 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 15:10:53,685 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:11:04,349 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:11:14,679 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:11:24,864 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:11:33,128 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:11:37,922 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:11:43,517 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:11:52,881 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:12:02,119 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:12:08,136 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:12:16,378 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:12:25,334 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:18:36,237 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:19:32,773 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:19:39,000 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:51:01,069 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:56:32,440 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:56:37,962 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:56:41,308 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:56:51,124 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:57:00,881 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:57:10,568 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:57:20,319 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:57:30,003 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:57:39,684 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 15:57:49,329 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:09:45,423 -- eau -- DEBUG -- changement d'heure - heure courante =16
2016-03-27 16:09:45,424 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 16:30:25,390 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:30:35,214 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:30:45,036 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:30:54,882 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:31:04,795 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:31:14,595 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:31:24,484 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:31:34,289 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:31:44,123 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:31:53,900 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:32:03,735 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:43:26,042 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:43:37,083 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:43:47,679 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:43:58,071 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:44:08,474 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:44:18,897 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:44:29,109 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:44:39,432 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:48:14,186 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 16:53:16,743 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 17:09:45,885 -- eau -- DEBUG -- changement d'heure - heure courante =17
2016-03-27 17:09:45,886 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 18:09:46,282 -- eau -- DEBUG -- changement d'heure - heure courante =18
2016-03-27 18:09:46,283 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 19:09:46,830 -- eau -- DEBUG -- changement d'heure - heure courante =19
2016-03-27 19:09:46,832 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 19:14:14,380 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:14:24,899 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:14:32,869 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:14:42,035 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:14:51,532 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:15:01,006 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:15:10,427 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:15:19,874 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 19:15:29,221 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:03:09,659 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:04:30,626 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:04:54,140 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:05:01,491 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:04,469 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:14,441 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:24,425 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:31,579 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:35,207 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:38,832 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:42,463 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:46,079 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:49,692 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:53,292 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:06:56,883 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:00,463 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:04,019 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:08,303 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:13,293 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:18,464 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:23,827 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:29,185 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:34,578 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:39,965 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:45,384 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:50,832 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:07:56,245 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:01,586 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:06,950 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:12,336 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:17,794 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:23,181 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:28,570 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:33,950 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:39,324 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:44,699 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:50,078 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:08:55,416 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:00,794 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:06,185 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:11,643 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:17,030 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:22,430 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:27,810 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:33,192 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:38,577 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:43,992 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:47,216 -- eau -- DEBUG -- changement d'heure - heure courante =20
2016-03-27 20:09:47,217 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 20:09:49,398 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:09:54,826 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:00,270 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:05,764 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:11,189 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:16,613 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:21,998 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:27,431 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:32,892 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:38,393 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:43,905 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:49,440 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:10:54,883 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:00,337 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:05,814 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:11,358 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:16,862 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:22,350 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:27,795 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:33,295 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:38,797 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:44,305 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:49,792 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:11:55,289 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:00,763 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:06,281 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:11,762 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:17,775 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:24,704 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:31,644 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:38,607 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:45,634 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:52,537 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:12:59,453 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:06,422 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:13,394 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:20,266 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:27,201 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:34,152 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:41,099 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:47,999 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:13:54,954 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:14:01,867 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:14:08,789 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:14:15,691 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:14:22,555 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:14:29,412 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:15:27,181 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 20:20:40,658 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:09:47,736 -- eau -- DEBUG -- changement d'heure - heure courante =21
2016-03-27 21:09:47,737 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 21:27:15,108 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:27:26,212 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:27:33,817 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:27:39,084 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:27:49,005 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:27:58,696 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:28:08,340 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:28:17,882 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:28:21,729 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:28:28,644 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:29:30,403 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:29:36,738 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:29:42,601 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:29:48,462 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:29:54,331 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:01,866 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:07,984 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:14,312 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:20,662 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:27,017 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:33,391 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:39,730 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:30:46,086 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:31:09,480 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:43:43,117 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:43:49,533 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:43:55,965 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:44:02,388 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:44:08,881 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:44:15,811 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 21:44:22,218 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:09:48,100 -- eau -- DEBUG -- changement d'heure - heure courante =22
2016-03-27 22:09:48,101 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 22:28:21,190 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:42:08,690 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:42:15,058 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:42:21,451 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:42:27,855 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:42:34,312 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:42:42,148 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:42:48,497 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:43:15,203 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:50:48,389 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:50:54,857 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:51:01,361 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:51:07,844 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:51:14,344 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:51:26,716 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:51:35,035 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:56:11,433 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:56:49,074 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:57:53,505 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:58:02,054 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:58:54,820 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:59:13,249 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:59:31,468 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 22:59:49,838 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:08:43,108 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:08:48,631 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:08:56,197 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:06,010 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:15,822 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:25,663 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:35,413 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:39,766 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:43,408 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:47,042 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:48,560 -- eau -- DEBUG -- changement d'heure - heure courante =23
2016-03-27 23:09:48,561 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-27 23:09:50,690 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:54,356 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:09:58,007 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:10:01,666 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:10:11,051 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:11:20,293 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:11:26,005 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:11:31,745 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:11:37,453 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:11:43,175 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:11:48,909 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:11:54,675 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:00,413 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:06,163 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:11,816 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:17,487 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:23,142 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:28,796 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:34,423 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:40,063 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:45,702 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:51,359 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:12:56,986 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:13:02,638 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:21:23,427 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:21:33,408 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:21:43,293 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:21:53,239 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:22:03,110 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:22:13,026 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:23:43,139 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:23:49,631 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:23:56,150 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:24:02,663 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:28:49,244 -- eau -- INFO -- consommation 0.5 litre
2016-03-27 23:28:55,721 -- eau -- INFO -- consommation 0.5 litre
2016-03-28 00:09:48,957 -- eau -- DEBUG -- changement d'heure - heure courante =0
2016-03-28 00:09:48,959 -- eau -- DEBUG -- il y a eu des consommations cette heure-ci...
2016-03-28 00:09:48,960 -- eau -- DEBUG -- ***changement de jour =0
2016-03-28 00:09:48,961 -- eau -- INFO -- ===fin analyse sur 24H : pas de fuite ===

Le code Python : pour le moment, il fait ce que fait le premier code + les logs pour la détection de fuite d'eau. Il faut que je rajoute la gestion d'un switch virtuel "Fuite d'eau" :

Code : Tout sélectionner

#!/usr/bin/python
# -*- coding: utf-8 -*-

import json
import requests
import urllib
import RPi.GPIO as GPIO  # bibliotheque pour utiliser les GPIO
import time
import logging

############# Parametres #################################

#~~~~~~~~~~ Parametres Domoticz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
domoticz_ip="192.168.0.40"
domoticz_port="8080"
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# IDX de Domoticz
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# remplacer XXX par votre idx de votre widget
dummy_idx={'compteur_eau': 331, 'switch_eau':330}

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Choix du GPIO
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# On mesure le compteur d'eau sur le GPIO 22 pin 15
GPIO.setmode(GPIO.BCM)   # mode de numérotation des pins
GPIO.setup(22,GPIO.IN)   # GPIO 22 (pin 15) réglée en entrée

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Mode debug
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# si debug = True => on affiche plein de choses... (sinon mettre False)
debug=True


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Parametres Logs
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
formatter = logging.Formatter("%(asctime)s -- %(name)s -- %(levelname)s -- %(message)s")
handler_debug = logging.FileHandler("/var/tmp/eau_debug.log", mode="a", encoding="utf-8")
handler_info = logging.FileHandler("/var/tmp/eau_info.log", mode="a", encoding="utf-8")
handler_debug.setFormatter(formatter)
handler_info.setFormatter(formatter)
handler_debug.setLevel(logging.DEBUG)
handler_info.setLevel(logging.INFO)
logger = logging.getLogger("eau")
logger.setLevel(logging.DEBUG)
logger.addHandler(handler_debug)
logger.addHandler(handler_info)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



###############  fin des parametres #############################

CheckGoOFF=False # pour eviter les erreurs de comptage (on compte un litre que si le capteur passe de OFF à ON)
CheckGoON=True # pour eviter de charger les logs de Domoticz en OFF inutiles
CheckConso=False
WaterAlarm=True
FirstDay=True
hto=time.localtime().tm_hour # heure debut analyse
jto=time.localtime().tm_wday # jour de la semaine
logger.info("--Debut ananlyse : "+str(hto)+" heure (jour de la semaine "+str(jto)+" (0=lundi to 6=dimanche)")

def Loop4(channel):
    global CheckGoOFF
    global CheckGoON
    global CheckConso
    global debug
    if GPIO.input(channel):
        if debug:
           print "---interrupt ON---"
           print "---Valeur CheckGoOFF="+str(CheckGoOFF)
        if CheckGoOFF:
           # On met à jour les drapeaux
           CheckGoOFF=False
           CheckGoON=True
           CheckConso=True
           # on met à jour le compteur incremental de Domoticz
           requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=udevice&idx='+str(dummy_idx['compteur_eau'])+'&svalue=1'
           urllib.urlopen(requete)
           logger.info("consommation 0.5 litre")
           #on passe le switch d'etat de la demi-lune à ON
           requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=switchlight&idx='+str(dummy_idx['switch_eau'])+'&switchcmd=On&level=0'
           urllib.urlopen(requete)
           if debug:
              print "***La roue a bien fait un tour, il faut incrementer le compteur de 1"
              r = requests.get('http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=devices&rid='+str(dummy_idx['compteur_eau'])).json()
              result={}
              index=str(r['result'][0]['Counter'])
              print "Compteur eau nouvel index = "+index
        else:
           CheckGoOFF=False # not needed
           if debug:
              print "=====Traitement interruptions multiples sur un meme etat===="
              print "=====>> CheckGoOFF vaut encore False : la demi lune n'a pas encore fait un tour... on ignore l'interruption"
    else:
        if CheckGoON:
           if debug:
              print ":::interrupt OFF:::"
              print ":::Valeur CheckGoOFF="+str(CheckGoOFF)
              print ":::La lune metalique a fait un demi-tour - on passe la valeur de CheckGoOFF a True"
           # On met à jour les drapeaux
           CheckGoOFF=True
           CheckGoON=False
           CheckConso=True
           logger.info("consommation 0.5 litre")
           #on passe le switch d'etat de la demi-lune a OFF
           requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=switchlight&idx='+str(dummy_idx['switch_eau'])+'&switchcmd=Off&level=0'
           urllib.urlopen(requete)
        else:
           CheckGoON=False # not needed
           if debug:
              print "=====Traitement interruptions multiples sur un meme etat===="
              print "=====>> CheckGoON vaut encore False : on ignore l'interruption"

GPIO.add_event_detect(22, GPIO.BOTH, callback=Loop4, bouncetime=100)


while True:
    time.sleep(600) # on attend 10 min
    hcur=time.localtime().tm_hour
    if hto != hcur: # changement heure
       print "changement d'heure - heure courante ="+str(hcur)
       logger.debug("changement d'heure - heure courante ="+str(hcur))
       # on regarde s'il y a eu de l'eau consommee
       if CheckConso == False:
          # cela veut dire qu'il n'y a pas eu de consommation d'eau dans l'heure
          WaterAlarm=False
          logger.debug("Pas de consommation d'eau pendant une heure !")
       else:
          logger.debug("il y a eu des consommations cette heure-ci...")
       hto=hcur
       CheckConso=False
       jcur=time.localtime().tm_wday
       if jto != jcur: # changement de jour
          logger.debug("***changement de jour ="+str(jcur))
          if FirstDay:
             logger.info("C'est le premier jour d'analyse, on attend une journee entiere")
             FirstDay=False
             if WaterAlarm:
                logger.info("==>sur cette journee non complete : fuite eau")
             else:
                logger.info("==>sur cette journee non complete : pas de fuite ===")
          else:
             if WaterAlarm:
                print "===ALARME=== fuite eau "
                logger.info("===ALARME=== fuite eau ")
             else:
                print "===fin analyse sur 24H : pas de fuite ==="
                logger.info("===fin analyse sur 24H : pas de fuite ===")
          #on repart sur 24H d'analyse
          CheckConso=False
          WaterAlarm=True
          hto=time.localtime().tm_hour # heure debut analyse
          jto=time.localtime().tm_wday # jour de la semaine
          logger.info("--Debut ananlyse : "+str(hto)+" heure (jour de la semaine "+str(jto)+" (0=lundi to 6=dimanche)")
Dernière modification par js-martin le 20 avr. 2016, 00:04, modifié 2 fois.
Domotisation de : mes compteurs EDF, solaire, eau / mon alarme / ma Chaudière Viessamnn / mon congel / ma sonnette. Matériels : Pi2 - RFXTrx433e - Zwave+ Aeotec, ampoules Hue - Détecteur et prises Fibaro - Capteurs Oregon - présentation installation => lien
Flintstones
Messages : 41
Inscription : 20 janv. 2015, 22:56

Re: Compteur eau et détecteur fuite sur un GPIO pour 10€

Message par Flintstones »

Beau boulot, j'aurais surement une belle explication demain de vive voix ;)
js-martin
Messages : 487
Inscription : 22 mars 2015, 22:08
Contact :

Re: Compteur eau et détecteur fuite sur un GPIO pour 10€

Message par js-martin »

oui et même une petite démo si tu es sage ;)
Domotisation de : mes compteurs EDF, solaire, eau / mon alarme / ma Chaudière Viessamnn / mon congel / ma sonnette. Matériels : Pi2 - RFXTrx433e - Zwave+ Aeotec, ampoules Hue - Détecteur et prises Fibaro - Capteurs Oregon - présentation installation => lien
js-martin
Messages : 487
Inscription : 22 mars 2015, 22:08
Contact :

Re: Compteur eau et détecteur fuite sur un GPIO pour 10€

Message par js-martin »

Voici le code qui intègre un troisième switch virtuel "Détection de fuite d'eau".
Capture.JPG
Capture.JPG (19.71 Kio) Consulté 13143 fois
(cela permet de mettre facilement une alerte mail, prowl ou autre en cas de passage à ON de l'interrupteur)

Code : Tout sélectionner

#!/usr/bin/python
# -*- coding: utf-8 -*-

import json
import requests
import urllib
import RPi.GPIO as GPIO
import time
import logging

############# Parametres #################################

#~~~~~~~~~~ Parametres Domoticz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
domoticz_ip="192.168.0.40"
domoticz_port="8080"
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# IDX de Domoticz
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# remplacer XXX par votre idx de votre widget
dummy_idx={'compteur_eau': 331, 'switch_eau':330, 'switch_detection_fuite': 332}

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Choix du GPIO
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# On mesure le compteur d'eau sur le GPIO 22 pin 15
GPIO.setmode(GPIO.BCM)   # mode de numérotation des pins
GPIO.setup(22,GPIO.IN)   # GPIO 22 (pin 15) réglée en entrée

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Mode debug
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# si debug = True => on affiche plein de choses... (sinon mettre False)
debug=True


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Parametres Logs
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
formatter = logging.Formatter("%(asctime)s -- %(name)s -- %(levelname)s -- %(message)s")
handler_debug = logging.FileHandler("/var/tmp/eau_debug.log", mode="a", encoding="utf-8")
handler_info = logging.FileHandler("/var/tmp/eau_info.log", mode="a", encoding="utf-8")
handler_debug.setFormatter(formatter)
handler_info.setFormatter(formatter)
handler_debug.setLevel(logging.DEBUG)
handler_info.setLevel(logging.INFO)
logger = logging.getLogger("eau")
logger.setLevel(logging.DEBUG)
logger.addHandler(handler_debug)
logger.addHandler(handler_info)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



###############  fin des parametres #############################

CheckGoOFF=False # pour eviter les erreurs de comptage (on compte un litre que si le capteur passe de OFF à ON)
CheckGoON=True # pour eviter de charger les logs de Domoticz en OFF inutiles
CheckConso=False
WaterAlarm=True
FirstDay=True
hto=time.localtime().tm_hour # heure debut analyse
jto=time.localtime().tm_wday # jour de la semaine
print "--Debut ananlyse : "+str(hto)+" heure (jour de la semaine "+str(jto)+" (0=lundi to 6=dimanche)"
logger.info("--Debut ananlyse : "+str(hto)+" heure (jour de la semaine "+str(jto)+" (0=lundi to 6=dimanche)")

def Loop4(channel):
    global CheckGoOFF
    global CheckGoON
    global CheckConso
    global debug
    if GPIO.input(channel):
        if debug:
           print "---interrupt ON---"
           print "---Valeur CheckGoOFF="+str(CheckGoOFF)
        if CheckGoOFF:
           # On met à jour les drapeaux
           CheckGoOFF=False
           CheckGoON=True
           CheckConso=True
           # on met à jour le compteur incremental de Domoticz
           requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=udevice&idx='+str(dummy_idx['compteur_eau'])+'&svalue=1'
           urllib.urlopen(requete)
           logger.info("consommation 0.5 litre")
           #on passe le switch d'etat de la demi-lune à ON
           requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=switchlight&idx='+str(dummy_idx['switch_eau'])+'&switchcmd=On&level=0'
           urllib.urlopen(requete)
           if debug:
              print "***La roue a bien fait un tour, il faut incrementer le compteur de 1"
              r = requests.get('http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=devices&rid='+str(dummy_idx['compteur_eau'])).json()
              result={}
              index=str(r['result'][0]['Counter'])
              print "Compteur eau nouvel index = "+index
        else:
           CheckGoOFF=False # not needed
           if debug:
              print "=====Traitement interruptions multiples sur un meme etat===="
              print "=====>> CheckGoOFF vaut encore False : la demi lune n'a pas encore fait un tour... on ignore l'interruption"
    else:
        if CheckGoON:
           if debug:
              print ":::interrupt OFF:::"
              print ":::Valeur CheckGoOFF="+str(CheckGoOFF)
              print ":::La lune metalique a fait un demi-tour - on passe la valeur de CheckGoOFF a True"
           # On met à jour les drapeaux
           CheckGoOFF=True
           CheckGoON=False
           CheckConso=True
           logger.info("consommation 0.5 litre")
           #on passe le switch d'etat de la demi-lune a OFF
           requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=switchlight&idx='+str(dummy_idx['switch_eau'])+'&switchcmd=Off&level=0'
           urllib.urlopen(requete)
        else:
           CheckGoON=False # not needed
           if debug:
              print "=====Traitement interruptions multiples sur un meme etat===="
              print "=====>> CheckGoON vaut encore False : on ignore l'interruption"

GPIO.add_event_detect(22, GPIO.BOTH, callback=Loop4, bouncetime=100)


while True:
    time.sleep(600) # on attend 10 min
    hcur=time.localtime().tm_hour
    if hto != hcur: # changement heure
       if debug:
          print "changement d'heure - heure courante ="+str(hcur)
       logger.debug("changement d'heure - heure courante ="+str(hcur))
       # on regarde s'il y a eu de l'eau consommee
       if CheckConso == False:
          # cela veut dire qu'il n'y a pas eu de consommation d'eau dans l'heure
          WaterAlarm=False
          logger.debug("Pas de consommation d'eau pendant une heure !")
       else:
          logger.debug("il y a eu des consommations cette heure-ci...")
       hto=hcur
       CheckConso=False
       jcur=time.localtime().tm_wday
       if jto != jcur: # changement de jour
          if debug:
             print "***changement de jour ="+str(jcur)
          logger.debug("***changement de jour ="+str(jcur))
          if FirstDay:
             logger.info("C'est le premier jour d'analyse, on attend une journee entiere")
             FirstDay=False
             if WaterAlarm:
                logger.info("==>sur cette journee non complete : fuite eau")
             else:
                logger.info("==>sur cette journee non complete : pas de fuite ===")
          else:
             if WaterAlarm:
                print "===ALARME=== fuite eau "
                logger.info("===ALARME=== fuite eau ")
                requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=switchlight&idx='+str(dummy_idx['switch_detection_fuite'])+'&switchcmd=On&level=0'
                urllib.urlopen(requete)
             else:
                print "===fin analyse sur 24H : pas de fuite ==="
                logger.info("===fin analyse sur 24H : pas de fuite ===")
                requete='http://'+domoticz_ip+':'+domoticz_port+'/json.htm?type=command&param=switchlight&idx='+str(dummy_idx['switch_detection_fuite'])+'&switchcmd=Off&level=0'

                urllib.urlopen(requete)
          #on repart sur 24H d'analyse
          CheckConso=False
          WaterAlarm=True
          hto=time.localtime().tm_hour # heure debut analyse
          jto=time.localtime().tm_wday # jour de la semaine
          if debug:
             print "--Debut nouvelle ananlyse : "+str(hto)+" heure (jour de la semaine "+str(jto)+" (0=lundi to 6=dimanche)"
          logger.info("--Debut nouvelle ananlyse : "+str(hto)+" heure (jour de la semaine "+str(jto)+" (0=lundi to 6=dimanche)")

Je vous conseille de mettre en place un RAMDISK si vous souhaitez avoir autant de log (ou virer les logs) pour limiter l'usure de votre carte SD. Par défaut, je mets les logs dans /var/tmp. N'oubliez pas de suivre ces conseils : http://easydomoticz.com/ajouter-un-ram- ... raspberry/

Pour l'electrovanne, j'hésite encore. Il ne faut pas prendre une NC (normaly closed) : car si panne de courant => panne d'eau...
Celle-ci serait possible mais je m'étonne des options "Joint d'huile de matériau NBR (option: EPDM ou Viton)"...cela ne me parle pas.
http://fr.aliexpress.com/item/normally- ... 31e72cb0c8

Qui a mis une électrovanne sur son arrivée d'eau ? Avez-vous des tuyaux :lol: ?
Domotisation de : mes compteurs EDF, solaire, eau / mon alarme / ma Chaudière Viessamnn / mon congel / ma sonnette. Matériels : Pi2 - RFXTrx433e - Zwave+ Aeotec, ampoules Hue - Détecteur et prises Fibaro - Capteurs Oregon - présentation installation => lien
Répondre