Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateConsoEau.sh: login is failing #2

Open
dalathu opened this issue Apr 19, 2018 · 4 comments
Open

updateConsoEau.sh: login is failing #2

dalathu opened this issue Apr 19, 2018 · 4 comments

Comments

@dalathu
Copy link

dalathu commented Apr 19, 2018

@Sirus10: thanks for this very useful script.

The login was failing for me (on www.toutsurmoneau.fr), probably after an update of the web site.

I have fixed the issue by modifying the script updateConsoEau.sh in my Raspberry Pi and now it's working fine.

Line 141 before modification:

-d "_username=$SDEI_EMAIL&_password=$SDEI_PASSWD&_csrf_token=$csrftoken&signin[username]=$SDEI_EMAIL&signin[password]" |grep -e "se déconnecter" -e "Connexion en cours" > /dev/null

Line 141 after modification:

-d "tsme_user_login[_username]=$SDEI_EMAIL&tsme_user_login[_password]=$SDEI_PASSWD&_csrf_token=$csrftoken"  |grep -e "TABLEAU DE BORD" > /dev/null

I have also uncommented line 145 & 146 so that I can see when the login is failing:

else
        echo "  - LOGIN NOT OK !! $ERRORMSG"
@empierre
Copy link

great, this works ! but only when I pass a year/month else I have an empty file... to be further investiagted

@Sirus10
Copy link
Owner

Sirus10 commented Apr 25, 2018

Hello,

what append it you put current date :

./updateConsoEau_dev.sh 2018 04

Versus :
./updateConsoEau_dev.sh

If file is empty it could come somtimes from provider not having the data yet for the current mouth but as we are end of month I have some doubt here...

You can also use the DEBUG mode :
./updateConsoEau_dev.sh DEBUG

Maybe you get more input ?

I will try to support as much as I can but I moved and my provider is not anymore SUEZ so I cannot test by myself sorry.

Br !

@empierre
Copy link

ok looks like I don't have to pass date now, just have an isue with DB update NOT needed although there is data till two days ago missing

@Sirus10
Copy link
Owner

Sirus10 commented Apr 28, 2018

thanks for your comment. the master script is now updated !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants