Page 26 sur 27

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 10 sept. 2020, 13:05
par epierre
ca fonctionne pour vous finalement ? moi toujours rien

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 13 sept. 2020, 15:15
par manuloup
Moi ça remarche.

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 17 sept. 2020, 14:35
par sirus
Vous avez bien vos données de conso journalière des jours passé dans domoticz ?

Vous utiliser le script d'origine ici : https://domotique.web2diz.net/recuperer ... ux-sdei-3/

Quel est le choix que vous utilisez pour PROVIDER ?

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 17 sept. 2020, 14:39
par manuloup
Oui c'est bien celui-là. D'ailleurs c'est toi qui l'a écrit non ?

Code : Tout sélectionner

# This script will get the data from SDEI/SOGEST website and insert into domoticz.db
# Site    : http://domotique.web2diz.net/
# Detail  : http://domotique.web2diz.net/?p=131
# List of working provider : http://domotique.web2diz.net/?p=320
# Source  : https://github.com/Sirus10/domoticz/blob/master/updateConsoEau.sh
# License : CC BY-SA 4.0
Pour le provider, dans mon fichier setup_perso :

Code : Tout sélectionner

PROVIDER=SUEZ
Dans Domoticz :
2020-09-17_144028.jpg
2020-09-17_144028.jpg (137.65 Kio) Consulté 6168 fois

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 17 sept. 2020, 14:50
par epierre
manuloup a écrit : 13 sept. 2020, 15:15 Moi ça remarche.
moi aussi

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 17 sept. 2020, 18:44
par sirus
Oui oui c est bien moi qui ai bidouillé ça il y a quelques années... depuis j ai changé de fournisseur d eau donc je peux plus trop déboguer...

Mais c est cool si ce remarche...

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 11 oct. 2020, 18:19
par vulbas
je viens de tester,
si je fais une requête j'obtiens

Code : Tout sélectionner

pi@raspberrypi:~ $ /home/pi/EAU/updateConsoEau.sh 2020 8

 Using Configuration from file /home/pi/EAU/setup_perso

 - PART 1 Get the data from website for 2020-8
  - TOKEN OK
  - LOGIN OK
  - DATA collection OK

 /home/pi/EAU/2020-8.dat  generated

 - PART 2 Update .dat file

 /home/pi/EAU/2020-8.dat  Updated

 - PART 3 Generate SQL
/home/pi/EAU/updateConsoEau.sh: line 203:   * 100: arithmetic syntax error
comm: /home/pi/EAU/temps.generated.2020-8.sql: No such file or directory
mv: cannot stat '/home/pi/EAU/temps.generated.2020-8.sql': No such file or directory

SQL with 0 line(s) generated : /home/pi/EAU/only_new_generated.2020-8.sql

 - PART 4 Update the db

File size is zero -> DB update NOT needed

 ### END ###
donc rien :(
chez suez je precise

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 21 nov. 2020, 18:46
par hairv
Hello,

je viens juste de mettre en place le script pour SEOP (groupe SUEZ).
Moyennant l'ajout de 2 lignes pour ajouter l'url 'www.seop.fr' ça fonctionne très bien.

Code : Tout sélectionner

       echo "Provider  (copy/paste) : "
        echo "SEOP | SUEZ | SDEI | SOGEST | SEERC | SOBEP | EEF | SENART | OLIVET | SIEVA | SEE"
        read PROVIDER
        echo "Your virtual device ID in domoticz (see step2 here http://domotique.web2diz.net/?p=138 ) "
        read devicerowid
        echo "SDEI_CODE=$CODE
        SDEI_EMAIL=$EMAIL
        SDEI_PASSWD=$PASSWD
        PROVIDER=$PROVIDER
        devicerowid=$devicerowid" > $workingDIR/setup_perso
        echo "#######################################"
        echo " CONFIG FILE setup_perso CREATED WITH : "
        echo "#######################################"
        cat $workingDIR/setup_perso
        echo "#######################################"
        . $workingDIR/setup_perso
fi


#######################################
#
#  PART 1 get the data
#
######################################
echo -e "\n - PART 1 Get the data from website for $dateY-$dateM"

if   [[ $PROVIDER == 'SDEI' ]]          then website="www.toutsurmoneau.fr"
elif [[ $PROVIDER == 'SOGEST' ]]        then website="www.toutsurmoneau.fr"
elif [[ $PROVIDER == 'SEERC' ]]         then website="www.toutsurmoneau.fr"
elif [[ $PROVIDER == 'SOBEP' ]]         then website="www.toutsurmoneau.fr"
elif [[ $PROVIDER == 'EEF' ]]           then website="www.toutsurmoneau.fr"
elif [[ $PROVIDER == 'SUEZ' ]]          then website="www.toutsurmoneau.fr"
elif [[ $PROVIDER == 'SENART' ]]        then website="www.eauxdesenart.com"
elif [[ $PROVIDER == 'OLIVET' ]]        then website="www.eau-olivet.fr"
elif [[ $PROVIDER == 'SIEVA' ]]         then website="www.eau-en-ligne.com"
elif [[ $PROVIDER == 'SEE' ]]           then website="www.eauxdelessonne.com"
elif [[ $PROVIDER == 'SEOP' ]]          then website="www.seop.fr"
fi

Juste une question : pourquoi faire un stop / start de Domoticz ? La màj peut très bien se faire avec la base up,
Edit : OK, je viens de voir que la base peut être locked et donc la màj échoue.

En tous cas merci pour ce script.

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 21 nov. 2020, 19:12
par sirus
Hello,

oui il m'est arrivé déjà de corrompre la base de données avec une écriture simultanées entre domoticz et le script dans dans el doute...

Mais tu peux essayer de supprimer les stop et start si tu veux dans le script.

++

Re: [TUTO] Consomation d'eau ajout simple dans domoticz

Publié : 18 mars 2022, 14:45
par pouilld
Bonjour,
Je viens de découvrir qu'un plugin python a été développé pour intégrer dans Domoticz le suivi de la gestion des consommations d'eau avec SUEZ : viewtopic.php?f=17&t=12202