Page 6 sur 15
Re: Script Véolia
Publié : 12 déc. 2017, 11:36
par k20human
Salut,
Pour ma part aucun problème ce matin avec mon script Python (voir mon Github dans le poste d'avant)
Je suis également chez Veolia Idf.
Re: Script Véolia
Publié : 12 déc. 2017, 11:59
par zaraki673
j ai pas essayé celui du git, mais j ai également le soucis (erreur 404) avec le miens (idem avec la version plugin) y a pas eu de changements sur les url, elles sont bonnes en testant manuellement, on obtient bien le fichier
@k20human : a quelle heure as tu effectué ton relevé ce matin ?
Re: Script Véolia
Publié : 12 déc. 2017, 12:43
par Starnight
Moi pareil pas de soucis. Execution du script a 6h du mat
Re: Script Véolia
Publié : 12 déc. 2017, 12:47
par TheFly
Vous êtes sur un NAS synology ?
Re: Script Véolia
Publié : 12 déc. 2017, 13:28
par zaraki673
sur rpi3 pour ma part,
j ai la meme avec celui du Git de k20human :
Code : Tout sélectionner
2017-12-12 13:26:47,142 :: INFO :: Connection au site Veolia Eau
2017-12-12 13:26:47,142 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home.loginAction.do#inside-space
2017-12-12 13:26:47,714 :: INFO :: -> 200
2017-12-12 13:26:47,715 :: INFO :: Page de consommation
2017-12-12 13:26:47,716 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.html
2017-12-12 13:26:48,767 :: INFO :: -> 200
2017-12-12 13:26:48,769 :: INFO :: Page de consommation : historique
2017-12-12 13:26:48,770 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.html?vueConso=historique
2017-12-12 13:26:49,742 :: INFO :: -> 200
2017-12-12 13:26:49,744 :: INFO :: Telechargement du fichier
2017-12-12 13:26:49,745 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.exportConsommationData.do?vueConso=historique
2017-12-12 13:26:49,945 :: INFO :: -> 200
2017-12-12 13:26:49,947 :: INFO :: Deconnection du site Veolia Eau
2017-12-12 13:26:49,948 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/logout
Traceback (most recent call last):
File "execute.py", line 123, in <module>
url.call(urlDisconnect)
File "execute.py", line 80, in call
response = self.urlOpener.open(request)
File "/usr/lib/python3.4/urllib/request.py", line 461, in open
response = meth(req, response)
File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.4/urllib/request.py", line 499, in error
return self._call_chain(*args)
File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
result = func(*args)
File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404:
Re: Script Véolia
Publié : 12 déc. 2017, 14:08
par TheFly
Ok
J'ai la même chose sur le NAS syno.
Re: Script Véolia
Publié : 12 déc. 2017, 14:19
par k20human
Pour ma part à 7h30 ce matin et 12h30 sur un RP3
Code : Tout sélectionner
2017-12-12 07:30:02,323 :: INFO :: Connection au site Veolia Eau
2017-12-12 07:30:02,324 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home.loginAction.do#inside-space
2017-12-12 07:30:02,894 :: INFO :: -> 200
2017-12-12 07:30:02,896 :: INFO :: Page de consommation
2017-12-12 07:30:02,898 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.html
2017-12-12 07:30:03,615 :: INFO :: -> 200
2017-12-12 07:30:03,617 :: INFO :: Page de consommation : historique
2017-12-12 07:30:03,618 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.html?vueConso=historique
2017-12-12 07:30:04,340 :: INFO :: -> 200
2017-12-12 07:30:04,342 :: INFO :: Telechargement du fichier
2017-12-12 07:30:04,343 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.exportConsommationData.do?vueConso=historique
2017-12-12 07:30:04,497 :: INFO :: -> 200
2017-12-12 07:30:04,500 :: INFO :: Deconnection du site Veolia Eau
2017-12-12 07:30:04,501 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/logout
2017-12-12 12:30:02,073 :: INFO :: Connection au site Veolia Eau
2017-12-12 12:30:02,075 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home.loginAction.do#inside-space
2017-12-12 12:30:03,211 :: INFO :: -> 200
2017-12-12 12:30:03,214 :: INFO :: Page de consommation
2017-12-12 12:30:03,215 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.html
2017-12-12 12:30:04,518 :: INFO :: -> 200
2017-12-12 12:30:04,520 :: INFO :: Page de consommation : historique
2017-12-12 12:30:04,521 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.html?vueConso=historique
2017-12-12 12:30:05,654 :: INFO :: -> 200
2017-12-12 12:30:05,656 :: INFO :: Telechargement du fichier
2017-12-12 12:30:05,657 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/home/espace-client/votre-consommation.exportConsommationData.do?vueConso=historique
2017-12-12 12:30:09,994 :: INFO :: -> 200
2017-12-12 12:30:09,996 :: INFO :: Deconnection du site Veolia Eau
2017-12-12 12:30:09,997 :: INFO :: Calling url: https://www.service-client.veoliaeau.fr/logout
Si la déconnexion plante ce n'est pas super grave en soit

Re: Script Véolia
Publié : 14 déc. 2017, 10:51
par zaraki673
Desolé pour le temps de réponses,
problèmes ponctuel sur le site, ca re-fonctionne

Re: Script Véolia
Publié : 14 déc. 2017, 16:55
par TheFly
Donc je vais attendre un peu...
j'ai refais le test le 14/11/2017 a 17h00 et toujours KO.
Je dois désactiver l'url logout pour ne pas avoir d'erreur mais le fichier est toujours vide.
Le script en bash qui marchait également auparavant ne marche plus non plus...
Et pourtant en manuel tout marche.
Incompréhensible.
Re: Script Véolia
Publié : 14 déc. 2017, 17:28
par Starnight
Ca ne marche plus non plus pour moi :
2017-12-14 17:27:15.323 Error: Error executing script command (/home/pi/veolia/veolia.py). returned: 256