Salut Sirus,
pareil avec 1017 02 et le debug ça donne ça:
pi@raspberrypi:~ $ /home/pi/EAU/updateConsoEau.sh DEBUG
START DEBUG MODE
Using Configuration from file /home/pi/EAU/setup_perso
- PART 1 Get the data from website for 2017-02
########## debug URL START ###############
login page :
https://www.toutsurmoneau.fr/mon-compte ... e-connecte
datapage page :
https://www.toutsurmoneau.fr/mon-compte ... 12FA580323
########## debug URL END ###############
########## debug csrftoken START ###############
csrftoken :
bTCpVYzf2dTdjmjuHN7pitXuqooidl-ifcexQIqeRWE
########## debug csrftoken END ###############
- TOKEN OK
- LOGIN OK
########## debug export_file START ###############
["ERR","Aucune consommation n'a \u00e9t\u00e9 enregistr\u00e9e sur cette p\u00e9riode"]########## debug export_file END ###############
- DATA collection OK
/home/pi/EAU/2017-02.dat generated
- PART 2 Update .dat file
########## debug .dat file START ###############
########## debug .dat file END ###############
/home/pi/EAU/2017-02.dat Updated
- PART 3 Generate SQL
########## debug SQL file START ###############
cat: /home/pi/EAU/temps.generated.2017-02.sql: Aucun fichier ou dossier de ce type
########## debug SQL file END ###############
comm: /home/pi/EAU/temps.generated.2017-02.sql: Aucun fichier ou dossier de ce type
########## debug sqlfinalfile file START ###############
update DeviceStatus set lastupdate = '-- ' where id = 2850;
########## debug sqlfinalfile file END ###############
mv: impossible d'évaluer « /home/pi/EAU/temps.generated.2017-02.sql »: Aucun fichier ou dossier de ce type
SQL with 0 line(s) generated : /home/pi/EAU/only_new_generated.2017-02.sql
- PART 4 Update the db
File size is zero -> DB update NOT needed
### END ###
pi@raspberrypi:~ $
pi@raspberrypi:~ $ pi@raspberrypi:~ $ /home/pi/EAU/updateConsoEau.sh DEBUG
["ERR","Aucune consommation n'a \u00e9t\u00e9 enregistr\u00e9e sur cette p\u00e9riode"]########## debug export_file END ###############
- DATA collection OK
-bash: pi@raspberrypi:~ : commande introuvable
/home/pi/EAU/2017-02.dat generated
pi@raspberrypi:~ $
pi@raspberrypi:~ $ START DEBUG MODE
-bash: START : commande introuvable
- PART 2 Update .dat file
########## debug .dat file START ###############
pi@raspberrypi:~ $
########## debug .dat file END ###############
pi@raspberrypi:~ $
/home/pi/EAU/2017-02.dat Updated
pi@raspberrypi:~ $ Using Configuration from file /home/pi/EAU/setup_perso
-bash: Using : commande introuvable
pi@raspberrypi:~ $
pi@raspberrypi:~ $ - PART 1 Get the data from website for 2017-02
-bash: - : commande introuvable
pi@raspberrypi:~ $ ########## debug URL START ###############
pi@raspberrypi:~ $ login page :
https://www.toutsurmoneau.fr/mon-compte ... e-connecte
login : fonctionnement impossible sans être réellement le superutilisateur
pi@raspberrypi:~ $ datapage page :
https://www.toutsurmoneau.fr/mon-compte ... 12FA580323
-bash: datapage : commande introuvable
pi@raspberrypi:~ $ ########## debug URL END ###############
pi@raspberrypi:~ $ ########## debug csrftoken START ###############
pi@raspberrypi:~ $ csrftoken :
-bash: csrftoken : commande introuvable
pi@raspberrypi:~ $ bTCpVYzf2dTdjmjuHN7pitXuqooidl-ifcexQIqeRWE
-bash: bTCpVYzf2dTdjmjuHN7pitXuqooidl-ifcexQIqeRWE : commande introuvable
pi@raspberrypi:~ $ ########## debug csrftoken END ###############
pi@raspberrypi:~ $ - TOKEN OK
-bash: - : commande introuvable
pi@raspberrypi:~ $ - LOGIN OK
-bash: - : commande introuvable
pi@raspberrypi:~ $ ########## debug export_file START ###############
pi@raspberrypi:~ $ ["ERR","Aucune consommation n'a \u00e9t\u00e9 enregistr\u00e9e sur cette p\u00e9riode"]########## debug export_file END ###############
-bash: [ERR,Aucune consommation n'a \u00e9t\u00e9 enregistr\u00e9e sur cette p\u00e9riode]########## : commande introuvable
pi@raspberrypi:~ $ - DATA collection OK
-bash: - : commande introuvable
pi@raspberrypi:~ $
pi@raspberrypi:~ $ /home/pi/EAU/2017-02.dat generated
-bash: /home/pi/EAU/2017-02.dat: Permission non accordée
pi@raspberrypi:~ $
pi@raspberrypi:~ $ - PART 2 Update .dat file
-bash: - : commande introuvable
pi@raspberrypi:~ $ ########## debug .dat file START ###############
pi@raspberrypi:~ $ ########## debug .dat file END ###############
pi@raspberrypi:~ $
pi@raspberrypi:~ $ /home/pi/EAU/2017-02.dat Updated
-bash: /home/pi/EAU/2017-02.dat: Permission non accordée
pi@raspberrypi:~ $
pi@raspberrypi:~ $ - PART 3 Generate SQL
-bash: - : commande introuvable
pi@raspberrypi:~ $ ########## debug SQL file START ###############
pi@raspberrypi:~ $ cat: /home/pi/EAU/temps.generated.2017-02.sql: Aucun fichier ou dossier de ce type
-bash: cat: : commande introuvable
pi@raspberrypi:~ $ ########## debug SQL file END ###############
pi@raspberrypi:~ $ comm: /home/pi/EAU/temps.generated.2017-02.sql: Aucun fichier ou dossier de ce type
-bash: comm: : commande introuvable
pi@raspberrypi:~ $ ########## debug sqlfinalfile file START ###############
pi@raspberrypi:~ $ update DeviceStatus set lastupdate = '-- ' where id = 2850;
-bash: update : commande introuvable
pi@raspberrypi:~ $ ########## debug sqlfinalfile file END ###############
pi@raspberrypi:~ $ mv: impossible d'évaluer « /home/pi/EAU/temps.generated.2002.sql »: Aucun fichier ou dossier de ce type
>
> SQL with 0 line(s) generated : /home/pi/EAU/only_new_generated.2017-02.sql
>
> - PART 4 Update the db
>
> File size is zero -> DB update NOT needed
>
> ### END ###