Re: [TUTO] Consomation d'eau ajout simple dans domoticz - SDEI
Publié : 05 août 2015, 21:45
Ne pas tenir compte de cette phrase, jai corrigé mon precedent post
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
Code : Tout sélectionner
SDEI_CODE=PLOLKIKU
SDEI_EMAIL=toto@tata.com
SDEI_PASSWD=totolabrico42
devicerowid=196Code : Tout sélectionner
chmod +x /home/pi/SDEI/updateConsoEau.sh Code : Tout sélectionner
/home/pi/SDEI/updateConsoEau.sh Code : Tout sélectionner
sudo apt-get install ksh Code : Tout sélectionner
cd /home/pi/SDEI
mv ./updateConsoEau.sh ./updateConsoEau.sh.old
wget http://domotique.web2diz.net/files/updateConsoEau.sh
chmod +x updateConsoEau.shCode : Tout sélectionner
/home/pi/SDEI/updateConsoEau.shCode : Tout sélectionner
root@raspberrypi2:/home/pi/SDEI# /home/pi/SDEI/updateConsoEau.sh
/home/pi/SDEI/updateConsoEau.sh[20]: [: argument expected
- PART 1 Get the data from SDEI for 2015-08
/home/pi/SDEI/2015-08.dat generated
- PART 2 Update .dat file
/home/pi/SDEI/2015-08.dat Updated
- PART 3 Generate SQL
/home/pi/SDEI/updateConsoEau.sh: line 108: * 100: arithmetic syntax error
comm: /home/pi/SDEI/temps.generated.2015-08.sql: No such file or directory
update DeviceStatus set lastupdate = 'www.lyonnaise-des-eaux.fr--<HTML><HEAD><META HTTP-EQUIV=Refresh Content=0;URL=http: 14:48:55' where id = ;
mv: cannot stat `/home/pi/SDEI/temps.generated.2015-08.sql': No such file or directory
- PART 4 Update the db
File size is zero -> DB update NOT needed
### END ###Code : Tout sélectionner
<HTML><HEAD><META HTTP-EQUIV=Refresh Content=0;URL=http://www.lyonnaise-des-eaux.fr/erreur><META HTTP-EQUIV=Location Content=http://www.lyonnaise-des-eaux.fr/erreur></HEAD><BODY></BODY></HTML>Code : Tout sélectionner
#SDEI PERSONAL CODE ( see http://domotique.web2diz.net/?p=137)
SDEI_CODE= # put your code here ex: SDEI_CODE=PLOLKIKU
SDEI_EMAIL= # put your email here ex: SDEI_EMAIL=toto@tata.com
SDEI_PASSWD= # put your password here ex: SDEI_PASSWD=totolabrico42Code : Tout sélectionner
# Your virtual device ID in domoticz (see step2 here http://domotique.web2diz.net/?p=138 )
devicerowid= # put your devices idx here ex : devicerowid=123Code : Tout sélectionner
/home/pi/SDEI/updateConsoEau.sh[19]: [: argument expected
- PART 1 Get the data from SDEI for 2015-08
/home/pi/SDEI/2015-08.dat generated
- PART 2 Update .dat file
/home/pi/SDEI/2015-08.dat Updated
- PART 3 Generate SQL
/home/pi/SDEI/updateConsoEau.sh: line 110: * 100: arithmetic syntax error
comm: /home/pi/SDEI/temps.generated.2015-08.sql: Aucun fichier ou dossier de ce type
update DeviceStatus set lastupdate = 'www.sogest.info--<HTML><HEAD><META HTTP-EQUIV=Refresh Content=0;URL=http: 2015 ' where id = 60;
mv: impossible d'évaluer « /home/pi/SDEI/temps.generated.2015-08.sql »: Aucun fichier ou dossier de ce type
- PART 4 Update the db
File size is zero -> DB update NOT needed
### END ###
Code : Tout sélectionner
https://www.lyonnaise-des-eaux.fr/mon-compte-en-ligne/statJData/2015/01/<ton code ici>Code : Tout sélectionner
https://www.sogest.info/mon-compte-en-ligne/statJData/2015/01/<ton code ici>Code : Tout sélectionner
https://www.sogest.info/????/<ton code ici>/??? Code : Tout sélectionner
https://www.lyonnaise-des-eaux.fr/mon-compte-en-ligne/statJData/2015/01/D9909H090Code : Tout sélectionner
https://www.sogest.info/mon-compte-en-ligne/statJData/2015/01/<ton code ici>Code : Tout sélectionner
[["01\/08\/2015",0.185,468.902],["02\/08\/2015",0.344,469.246],["03\/08\/2015",0.445,469.691],["04\/08\/2015",0.581,470.271],["05\/08\/2015",0.433,470.704],["06\/08\/2015",0.508,471.212],["07\/08\/2015",0.416,471.628],["08\/08\/2015",0,0],["09\/08\/2015",0,0],["10\/08\/2015",0,0],["11\/08\/2015",0,0],["12\/08\/2015",0,0],["13\/08\/2015",0,0],["14\/08\/2015",0,0],["15\/08\/2015",0,0],["16\/08\/2015",0,0],["17\/08\/2015",0,0],["18\/08\/2015",0,0],["19\/08\/2015",0,0],["20\/08\/2015",0,0],["21\/08\/2015",0,0],["22\/08\/2015",0,0],["23\/08\/2015",0,0],["24\/08\/2015",0,0],["25\/08\/2015",0,0],["26\/08\/2015",0,0],["27\/08\/2015",0,0],["28\/08\/2015",0,0],["29\/08\/2015",0,0],["30\/08\/2015",0,0],["31\/08\/2015",0,0]]Code : Tout sélectionner
<HTML><HEAD><META HTTP-EQUIV=Refresh Content=0;URL=http://www.lyonnaise-des-eaux.fr/erreur><META HTTP-EQUIV=Location Content=http://www.lyonnaise-des-eaux.fr/erreur></HEAD><BODY></BODY></HTML>Code : Tout sélectionner
<!DOCTYPE html>
<html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <meta http-equiv=refresh content=1;url=/erreur /><title>Redirecting to /erreur</title> </head> <body> Redirecting to <a href=/erreur>/erreur</a>. </body>
Code : Tout sélectionner
<HTML><HEAD><META HTTP-EQUIV=Refresh Content=0;URL=http://www.sogest.info/erreur><META HTTP-EQUIV=Location Content=http://www.sogest.info/erreur></HEAD><BODY></BODY></HTML>