Bonsoir,
Pour moi j'ai toujours un problème...
Pourtant j'ai bien la consommation sur le site...
[["01\/04\/2018",0.213,188.891],["02\/04\/2018",0.587,189.478],["03\/04\/2018",0.295,189.773],["04\/04\/2018",0.719,190.492],["05\/04\/2018",0.339,190.831],["06\/04\/2018",0.276,191.107],["07\/04\/2018",0.448,191.555],["08\/04\/2018",0.427,191.982],["09\/04\/2018",0.267,192.249],["10\/04\/2018",1.117,193.366],["11\/04\/2018",0.086,193.452],["12\/04\/2018",0.11,193.562],["13\/04\/2018",0.129,193.691],["14\/04\/2018",0.099,193.79],["15\/04\/2018",0,193.79],["16\/04\/2018",0.129,193.919],["17\/04\/2018",0.187,194.106],["18\/04\/2018",0.229,194.335],["19\/04\/2018",0.376,194.711]
Ci dessous le résultat du script et encore dessous le contenu du fichier.dat
Si vous avez des idées, je suis preneur. Merci d'avance
----------------------------------------------------
/home/pi/EAU/updateConsoEau.sh
----------------------------------------------------
Using Configuration from file /home/pi/EAU/setup_perso
- PART 1 Get the data from website for 2018-04
- TOKEN OK
- DATA collection OK
/home/pi/EAU/2018-04.dat generated
- PART 2 Update .dat file
/home/pi/EAU/2018-04.dat Updated
- PART 3 Generate SQL
/home/pi/EAU/updateConsoEau.sh: line 203: * 100: arithmetic syntax error
comm: /home/pi/EAU/temps.generated.2018-04.sql: No such file or directory
mv: cannot stat `/home/pi/EAU/temps.generated.2018-04.sql': No such file or directory
SQL with 0 line(s) generated : /home/pi/EAU/only_new_generated.2018-04.sql
- PART 4 Update the db
File size is zero -> DB update NOT needed
### END ###
----------------------------------------------------
fichier data
----------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset=UTF-8 />
<meta http-equiv=refresh content=1;url=
https://www.toutsurmoneau.fr/mon$
<title>Redirecting to
https://www.toutsurmoneau.fr/mon-compte-en-ligne/$
</head>
<body>
Redirecting to <a href=
https://www.toutsurmoneau.fr/mon-compte-en-ligne$
</body>
</html>