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
XMLSyntaxError: Opening and ending tag mismatch #29
Comments
Bonjour, |
oui ils ont refait leur site web, il va falloir tout refaire...
…On Wed, Nov 24, 2021 at 10:53 AM Julien Peyrouse ***@***.***> wrote:
Bonjour,
Merci pour cet outil qui a très bien fonctionné pendant 1 an. Depuis
quelques jours je n'ai plus la conso dans Domoticz et j'ai l'erreur
suivante dans le log :
2021-11-24 10:30:41,846 logging in as ***@***.***
Traceback (most recent call last):
File "/home/pi/domoticz_gaspar/gaspar_json.py", line 179, in
main()
File "/home/pi/domoticz_gaspar/gaspar_json.py", line 113, in main
token = gaspar.login(USERNAME, PASSWORD)
File "/home/pi/domoticz_gaspar/gaspar.py", line 101, in login
javaxvs2=parse_lxml(req.text)
File "/home/pi/domoticz_gaspar/gaspar.py", line 61, in parse_lxml
root = etree.fromstring(c)
File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1758, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1068, in
lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 601, in
lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
File "", line 6
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: hr line 5 and
body, line 6, column 8
Savez-vous d'où provient le problème ?
Merci d'avance pour votre aide.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXTDCXGXE7AXFDYT6SQ3ELUNSYYDANCNFSM5IVTTSMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
bon ça semble un poil plus simple si je passe l'authent, on peut
télécharger le fichier et le transformer en csv
https://monespace.grdf.fr/api/e-conso/pce/consommation/informatives/telecharger?dateDebut=2018-11-24&dateFin=2021-11-24&frequence=Journalier&pceList%5B%5D=aaaa
…On Wed, Nov 24, 2021 at 11:22 AM Emmanuel PIERRE ***@***.***> wrote:
oui ils ont refait leur site web, il va falloir tout refaire...
On Wed, Nov 24, 2021 at 10:53 AM Julien Peyrouse ***@***.***>
wrote:
> Bonjour,
> Merci pour cet outil qui a très bien fonctionné pendant 1 an. Depuis
> quelques jours je n'ai plus la conso dans Domoticz et j'ai l'erreur
> suivante dans le log :
> 2021-11-24 10:30:41,846 logging in as ***@***.***
> Traceback (most recent call last):
> File "/home/pi/domoticz_gaspar/gaspar_json.py", line 179, in
> main()
> File "/home/pi/domoticz_gaspar/gaspar_json.py", line 113, in main
> token = gaspar.login(USERNAME, PASSWORD)
> File "/home/pi/domoticz_gaspar/gaspar.py", line 101, in login
> javaxvs2=parse_lxml(req.text)
> File "/home/pi/domoticz_gaspar/gaspar.py", line 61, in parse_lxml
> root = etree.fromstring(c)
> File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring
> File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
> File "src/lxml/parser.pxi", line 1758, in lxml.etree._parseDoc
> File "src/lxml/parser.pxi", line 1068, in
> lxml.etree._BaseParser._parseUnicodeDoc
> File "src/lxml/parser.pxi", line 601, in
> lxml.etree._ParserContext._handleParseResultDoc
> File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
> File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
> File "", line 6
> lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: hr line 5 and
> body, line 6, column 8
>
> Savez-vous d'où provient le problème ?
> Merci d'avance pour votre aide.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#29>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABXTDCXGXE7AXFDYT6SQ3ELUNSYYDANCNFSM5IVTTSMA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
Bonjour, |
c'est pas du correctif, y'a de l'oauth2 avec nginx f5 et okta... si je
peix recuperer le token on sera bon sinon...
Le mer. 24 nov. 2021, 21:56, dranreb38 ***@***.***> a écrit :
… Bonjour,
Idem en place depuis 3 ans sans pb.... En attendant les correctifs d'
@empierre <https://github.com/empierre> j'importe le fichier en manuel.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXTDCWDYC66LFGSXCHP6RTUNVGONANCNFSM5IVTTSMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Effectivement ce n'est pas un simple correctif, mais une refonte complète , dans mon esprit c’était bien cela !. |
forgerock, okta, nginx... si je passe tout ça on sera bon... pas gagné...
…On Thu, Nov 25, 2021 at 9:31 AM dranreb38 ***@***.***> wrote:
Effectivement ce n'est pas un simple correctif, mais une refonte complète
, dans mon esprit c’était bien cela !.
Merci pour ton travail Emmanuel !
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXTDCTB7UI32QFBKNFS2LLUNXX5LANCNFSM5IVTTSMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Bonjour. |
oui
…On Fri, Nov 26, 2021 at 1:49 PM jiji45 ***@***.***> wrote:
Bonjour.
Je rencontre des problèmes de relevé depuis le 21 novembre, est-ce dû a ce
que je viens de lire ici????
Pardonnez mon ignorance, mais je suis un peu nul en informatique.
Bien cordialement
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXTDCSWG3US2O4BIEHLZDDUN566RANCNFSM5IVTTSMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Pour info, j'ai refais un script python de 0 qui utilise le nouveau site et ça marche nickel. Je vais le modifier pour qu'il soit plus propre et complètement configurable |
Génial ça ! J'espère que tu le mettras quelque part sur Github (une branche ici ou un projet ailleurs). Merci ! |
+1 |
Bonsoir, Je sais que le plugin en l'état ne remonte plus d'info, je vais donc voir sur le site GRDF pour importer manuellement , et là , mes dernières données s'arrêtent le 23 Novembre, est-ce pareil pour vous ? |
Pareil ! |
Idem ! |
+1 idem, arrêt au 23/11 |
Bonjour, voici le script qui fonctionne avec le nouveau site : https://github.com/Scrat95220/DomoticzGazpar |
Merci @Scrat95220 , je teste dès que les valeurs sont de nouveaux en ligne ! |
Hello,
Joli ! tu as réussi à le faire sans l'identifiant de domicile ?
…On Tue, Nov 30, 2021 at 10:28 PM dranreb38 ***@***.***> wrote:
Merci @Scrat95220 <https://github.com/Scrat95220> , je teste dès que les
valeurs sont de nouveaux en ligne !
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXTDCVUPPPQ5SCLH7PSGADUOU6XFANCNFSM5IVTTSMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hello, De mon coté j'ai 3 nouvelles données du 24, 25 et 26 mises à jour sur le site GRDF. Ils sont à la bourre dans les batchs visiblement ... |
J'ai testé le script :) J'ai une erreur si je demande trop de jour (150, c'est bon et 200 j'ai l'erreur) En tout cas, ca fonctionne de nouveau, et j'ai pu constater que je consomme plus que l'an dernier, donc je dois avoir un réglage pas correct sur mon plancher chauffant vu que j'ai réduit la température des pieces LOL (mais c'est hors sujet) |
Si tu parles du numéro de PCE, il y a un service qui permet d'avoir l'info |
C'est parce qu'il faut modifier le fichier cfg avec GAZPAR_USERNAME avec un Z , anciennement (version empierre) avec GASPAR_USERNAME avec un S. |
J'ai testé 120j max chez moi car je n'ai pas de donné avant... Je regarderais pourquoi ça crash, peut être une limitation |
Juste une chose, si vous vous trompez une fois de password, le site va redemander de valider la catpcha et le script ne fonctionnera plus. |
Pour corriger l'erreur TypeError: unsupported operand type(s) for +: 'int' and 'NoneType' voir l'issue que j'ai posté sur le Git de Scrat95220 (https://github.com/Scrat95220/DomoticzGazpar) Lorsque un relevé est manquant 'Absence de Données' le script plante. Correction proposée: for releve in j[str(numPce)]['releves']: print(releve) req_date = releve['journeeGaziere'] conso = releve['energieConsomme'] try : index = index + conso except TypeError: print(req_date, conso, index, "Invalid Entry") continue Et ca marche. |
La limite semble être de 3 ans, à 1096 Jours ça passe, à 1097 ça plante. ( 3x365 = 1095 + 1 jour bissextile 2020 ?? = 1096) |
Super :) ça marche nickel merci. |
Du coup, j'ai mis aussi 1096 ;) pour tester et ça a fonctionné aussi. |
ils sont en train de nous mettre un captcha ... marre de ces sites qui ne proposent pas d'api et qui bloque tout |
Bonsoir à tous, J'ai ajouté la possibilité d'alimenter un compteur Gaz en m3 au code de Scratc95220. |
Jolie !! Je comptais le faire aussi mais pas eu le temps. |
Hello,
Visiblement les dernières version de sqlite3 (ubuntu pour ma part)
crashend la bdd domoticz... donc il faut stopper domoticz puis le
redémarrer avant d'injecter les valeurs....
…On Thu, Dec 2, 2021 at 6:40 PM Scrat ***@***.***> wrote:
Bonsoir à tous,
J'ai ajouté la possibilité d'alimenter un compteur Gaz en m3 au code de
Scratc95220. Voir Pull request Scrat95220/DomoticzGazpar#3
<Scrat95220/DomoticzGazpar#3>
Jolie !! Je comptais le faire aussi mais pas eu le temps. Je regarde la PR
ce soir et je merge ça ASAP
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXTDCUI3USCQAR4YFQP5V3UO6VPPANCNFSM5IVTTSMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Pour ceux qui savent coder, vu que c'est du python, il y a peut-être un moyen de modifier le script directement pour un plugin domoticz (comme ça, plus de pb avec la DB) ? |
Hello,
en fait c'est mon domoticz qui a un soucis, plantage de base régulière
sur la dernière beta et (ou pas )lié à des updates de libs ... il a planté
à 6h ce matin encore sans raison
bref grosse galère... et ticket ouvert chez domoticz.
…On Sun, Dec 5, 2021 at 9:54 AM Sebastiii ***@***.***> wrote:
Pour ceux qui savent coder, vu que c'est du python, il y a peut-être un
moyen de modifier le script directement pour un plugin domoticz (comme ça,
plus de pb avec la DB) ?
Ou alors passer par l'alimentation des valeurs par l'intégration de l'URL
web ?
Après vu que l'on intègre pas mal d'information, ça peut aussi faire
planter Domoticz :(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXTDCWFJSETX66GDA2LFQTUPMSEDANCNFSM5IVTTSMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Esperons pour un fix rapide alors ! |
Bonjour, j'ai raté un épisode ou on est encore coincé ? |
oui, c'est sur la page d'accueil: |
Arg, je suis passé à coté ! |
j'ai un script de migration du device sur l'accueil github car le type est différent, il fait le mapping de l'ancien au nouveau device sur l'historique. |
Bonjour,
Merci pour cet outil qui a très bien fonctionné pendant 1 an. Depuis quelques jours je n'ai plus la conso dans Domoticz et j'ai l'erreur suivante dans le log :
2021-11-24 10:30:41,846 logging in as xxxxxxxx@gmail.com...
Traceback (most recent call last):
File "/home/pi/domoticz_gaspar/gaspar_json.py", line 179, in
main()
File "/home/pi/domoticz_gaspar/gaspar_json.py", line 113, in main
token = gaspar.login(USERNAME, PASSWORD)
File "/home/pi/domoticz_gaspar/gaspar.py", line 101, in login
javaxvs2=parse_lxml(req.text)
File "/home/pi/domoticz_gaspar/gaspar.py", line 61, in parse_lxml
root = etree.fromstring(c)
File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1758, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1068, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
File "", line 6
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: hr line 5 and body, line 6, column 8
Savez-vous d'où provient le problème ?
Merci d'avance pour votre aide.
The text was updated successfully, but these errors were encountered: