beufanet / linkyndle

Fetch dataset from Enedis portal (need Linky) and push it to grafana
53 stars 15 forks source link

Unable to login #5

Closed PierrickGT closed 5 years ago

PierrickGT commented 5 years ago

Hi, Is the script still able to login? I feel like the endpoints may have changed since I can't login with my credentials.

2019-03-20 10:17:32,811 logging in InfluxDB Server Host localhost...
2019-03-20 10:17:32,813 logged in InfluxDB Server Host localhost succesfully
2019-03-20 10:17:32,814 logging in Enedis URI https://espace-client-particuliers.enedis.fr/group/espace-particuliers...
2019-03-20 10:17:32,825 Starting new HTTPS connection (1): espace-client-connexion.enedis.fr:443
2019-03-20 10:17:32,945 https://espace-client-connexion.enedis.fr:443 "POST /auth/UI/Login HTTP/1.1" 302 209
2019-03-20 10:17:32,955 unable to login on https://espace-client-particuliers.enedis.fr/group/espace-particuliers : Login unsuccessful. Check your credentials.

I've followed the README to perform the setup and I don't think I've missed anything. My credentials do work when I copy/paste them in my browser.

PierrickGT commented 5 years ago

There's a work around available in this lib: https://github.com/Pirionfr/pyLinky/commit/2e44c54590ceb0f14674fce2591454f95a911db4

beufanet commented 5 years ago

Thanks for the feedback I added into the code and updated with some new thing.