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

Impossible de récupérer les données sur un compteur virtuel #30

Open
joebar38 opened this issue Mar 2, 2022 · 14 comments
Open

Impossible de récupérer les données sur un compteur virtuel #30

joebar38 opened this issue Mar 2, 2022 · 14 comments

Comments

@joebar38
Copy link

joebar38 commented Mar 2, 2022

J'ai un soucis pour remonter les données de mon compteur dans l'onglet mesures.
J'ai suivi tout le tuto sans problème :

  • J'ai créé mon "Managed Counter" en le passant en gaz (id 82003)
  • j'ai rempli le cfg avec mon compte utilisateur et pass avec l'id.
  • Dans le fichier log, aucun problème, les données sont récupérées.

Ci-dessous des captures d'écrans :
Capture d’écran (38)
Capture d’écran (40)
Capture d’écran (41)
Capture d’écran (42)

Merci pour votre aide !

@albebert
Copy link

albebert commented Mar 2, 2022

hum tu as un soucis, tu as le même ID pour le compteur standard et le compteur M3.

@joebar38
Copy link
Author

joebar38 commented Mar 2, 2022

Il faut donc que je crée un second compteur virtuel en kWh et que je renseigne l'id dans ma conf ?

@albebert
Copy link

albebert commented Mar 2, 2022

oui tout est expliquer dans le readme

@albebert
Copy link

albebert commented Mar 2, 2022

In Domoticz, go to hardware, create a virtual "Managed counter". You may as well create a virtual 'Managed counter, Gas' device in m3 (to do so : create first a Managed counter, then modify it in the Utility tab to change Switch type to Gas)

traduction :

créer un virtual switch en "managed counter)
puis un second (toujours en "managed counter", et le modifier (onglet utility) en TYpe Gas

@joebar38
Copy link
Author

joebar38 commented Mar 3, 2022

In Domoticz, go to hardware, create a virtual "Managed counter". You may as well create a virtual 'Managed counter, Gas' device in m3 (to do so : create first a Managed counter, then modify it in the Utility tab to change Switch type to Gas)

traduction :

créer un virtual switch en "managed counter) puis un second (toujours en "managed counter", et le modifier (onglet utility) en TYpe Gas

Je viens de créer mes 2 compteurs (kWh=82009,m3=82003).
Renseigné dans le cfg, et toujours rien.
Question : faut-il aussi l'ajouter dans crontab obligatoirement ? j'ai peur de modifier tout ça en sachant que je suis sur yunohost.

@albebert
Copy link

albebert commented Mar 3, 2022

tu peux passer le LOG_LEVE à DEBUG , relancer et nous donner la log ?

Concernant le crontab ce n'est pas obligatoire, c'est juste pour lancer le script régulièrement afin de récupérer les datas (tous les jours idéalement) et donc les avoirs dans domoticz.

c'est juste un crontab donc pas de soucis pour le mettre sur ton yuno :)

@joebar38
Copy link
Author

joebar38 commented Mar 3, 2022

tu peux passer le LOG_LEVE à DEBUG , relancer et nous donner la log ?

Concernant le crontab ce n'est pas obligatoire, c'est juste pour lancer le script régulièrement afin de récupérer les datas (tous les jours idéalement) et donc les avoirs dans domoticz.

c'est juste un crontab donc pas de soucis pour le mettre sur ton yuno :)

EDIT : je ne trouve pas les json qui doivent être présents dans le répertoire si je suis le readme...

2022-03-03 13:25:15,434 logging in as [email protected]...
2022-03-03 13:25:15,444 Starting new HTTPS connection (1): login.monespace.grdf.fr:443
2022-03-03 13:25:15,800 https://login.monespace.grdf.fr:443 "POST /sofit-account-api/api/v1/auth HTTP/1.1" 200 None
2022-03-03 13:25:15,885 EUC-TW Taiwan prober hit error at byte 580
2022-03-03 13:25:15,902 utf-8 confidence = 0.7525
2022-03-03 13:25:15,903 SHIFT_JIS Japanese confidence = 0.01
2022-03-03 13:25:15,903 EUC-JP Japanese confidence = 0.01
2022-03-03 13:25:15,903 GB2312 Chinese confidence = 0.01
2022-03-03 13:25:15,904 EUC-KR Korean confidence = 0.01
2022-03-03 13:25:15,904 CP949 Korean confidence = 0.01
2022-03-03 13:25:15,904 Big5 Chinese confidence = 0.01
2022-03-03 13:25:15,904 EUC-TW not active
2022-03-03 13:25:15,905 windows-1251 Russian confidence = 0.01
2022-03-03 13:25:15,905 KOI8-R Russian confidence = 0.01
2022-03-03 13:25:15,905 ISO-8859-5 Russian confidence = 0.01
2022-03-03 13:25:15,905 MacCyrillic Russian confidence = 0.01
2022-03-03 13:25:15,906 IBM866 Russian confidence = 0.01
2022-03-03 13:25:15,906 IBM855 Russian confidence = 0.01
2022-03-03 13:25:15,906 ISO-8859-7 Greek confidence = 0.01
2022-03-03 13:25:15,906 windows-1253 Greek confidence = 0.01
2022-03-03 13:25:15,906 ISO-8859-5 Bulgairan confidence = 0.01
2022-03-03 13:25:15,907 windows-1251 Bulgarian confidence = 0.01
2022-03-03 13:25:15,907 TIS-620 Thai confidence = 0.0
2022-03-03 13:25:15,907 ISO-8859-9 Turkish confidence = 0.44522550586942483
2022-03-03 13:25:15,908 windows-1255 Hebrew confidence = 0.0
2022-03-03 13:25:15,908 windows-1255 Hebrew confidence = 0.01
2022-03-03 13:25:15,908 windows-1255 Hebrew confidence = 0.01
2022-03-03 13:25:15,908 utf-8 confidence = 0.7525
2022-03-03 13:25:15,909 SHIFT_JIS Japanese confidence = 0.01
2022-03-03 13:25:15,909 EUC-JP Japanese confidence = 0.01
2022-03-03 13:25:15,909 GB2312 Chinese confidence = 0.01
2022-03-03 13:25:15,909 EUC-KR Korean confidence = 0.01
2022-03-03 13:25:15,909 CP949 Korean confidence = 0.01
2022-03-03 13:25:15,910 Big5 Chinese confidence = 0.01
2022-03-03 13:25:15,910 EUC-TW not active
2022-03-03 13:25:15,910 1st Auth Response :
{"state":"SUCCESS","actualLockoutDuration":0,"displayCaptcha":false,"redirectUrl":"https://sofa-connexion.grdf.fr:443/openam/oauth2/externeGrdf/authorize?response_type=code%26scope=openid%20profile%20email%20infotravaux%20%2Fv1%2Faccred$
2022-03-03 13:25:15,987 EUC-TW Taiwan prober hit error at byte 580
2022-03-03 13:25:16,003 utf-8 confidence = 0.7525
2022-03-03 13:25:16,003 SHIFT_JIS Japanese confidence = 0.01
2022-03-03 13:25:16,004 EUC-JP Japanese confidence = 0.01
2022-03-03 13:25:16,004 GB2312 Chinese confidence = 0.01
2022-03-03 13:25:16,004 EUC-KR Korean confidence = 0.01
2022-03-03 13:25:16,004 CP949 Korean confidence = 0.01
2022-03-03 13:25:16,004 Big5 Chinese confidence = 0.01
2022-03-03 13:25:16,005 EUC-TW not active
2022-03-03 13:25:16,005 windows-1251 Russian confidence = 0.01
2022-03-03 13:25:16,005 KOI8-R Russian confidence = 0.01
2022-03-03 13:25:16,005 ISO-8859-5 Russian confidence = 0.01
2022-03-03 13:25:16,005 MacCyrillic Russian confidence = 0.01
2022-03-03 13:25:16,006 IBM866 Russian confidence = 0.01
2022-03-03 13:25:16,006 IBM855 Russian confidence = 0.01
2022-03-03 13:25:16,006 ISO-8859-7 Greek confidence = 0.01
2022-03-03 13:25:16,006 windows-1253 Greek confidence = 0.01
2022-03-03 13:25:16,006 ISO-8859-5 Bulgairan confidence = 0.01
2022-03-03 13:25:16,007 windows-1251 Bulgarian confidence = 0.01
2022-03-03 13:25:16,007 TIS-620 Thai confidence = 0.0
2022-03-03 13:25:16,007 ISO-8859-9 Turkish confidence = 0.44522550586942483
2022-03-03 13:25:16,007 windows-1255 Hebrew confidence = 0.0
2022-03-03 13:25:16,008 windows-1255 Hebrew confidence = 0.01
2022-03-03 13:25:16,008 windows-1255 Hebrew confidence = 0.01
2022-03-03 13:25:16,008 utf-8 confidence = 0.7525
2022-03-03 13:25:16,009 SHIFT_JIS Japanese confidence = 0.01
2022-03-03 13:25:16,009 EUC-JP Japanese confidence = 0.01
2022-03-03 13:25:16,009 GB2312 Chinese confidence = 0.01
2022-03-03 13:25:16,009 EUC-KR Korean confidence = 0.01
2022-03-03 13:25:16,009 CP949 Korean confidence = 0.01
2022-03-03 13:25:16,010 Big5 Chinese confidence = 0.01
2022-03-03 13:25:16,010 EUC-TW not active
2022-03-03 13:25:16,016 Starting new HTTPS connection (1): monespace.grdf.fr:443
2022-03-03 13:25:16,174 https://monespace.grdf.fr:443 "GET / HTTP/1.1" 302 138
2022-03-03 13:25:16,186 Starting new HTTPS connection (1): sofa-connexion.grdf.fr:443
2022-03-03 13:25:16,350 https://sofa-connexion.grdf.fr:443 "GET /openam/oauth2/externeGrdf/authorize?response_type=code&scope=openid+profile+email+infotravaux+/v1/accreditation+/v1/accreditations+/digiconso/v1+/digiconso/v1/consommation$
2022-03-03 13:25:16,517 https://monespace.grdf.fr:443 "GET /_codexch?code=bHbSa5Nqfkody-niOpykthfVs7E&iss=https%3A%2F%2Fsofa-connexion.grdf.fr%3A443%2Fopenam%2Foauth2%2FexterneGrdf&state=0&client_id=prod_espaceclient HTTP/1.1" 302 138
2022-03-03 13:25:16,552 https://monespace.grdf.fr:443 "GET / HTTP/1.1" 200 8767
2022-03-03 13:25:16,555 2nd API Response :

<title>Espace client - GRDF - Connexion</title> <style type="text/css">@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v121/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format('woff2');}.material-icons{font-fa$ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push(
{'gtm.start': new Date().getTime(),event:'gtm.js'}

);var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MFM3DD');</script>

<script type="application/javascript"> (() => { if (document.location.pathname.includes('endossement') && JSON.parse(localStorage.getItem('user-endossement'))) { document.getElementById("soco-base-ref").href = '/endossement/'; } else if(document.location.pathname.includes('endossement')) { window.location.href = "/"; } })(); </script> <style>@charset "UTF-8";@import url(https://fonts.googleapis.com/icon?family=Material+Icons);:root{--breakpoint-sm:576px;--breakpoint-xl:1200px;}html{-ms-text-size-adjust:100%;}:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pi$ <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MFM3DD" height="0" width="0" style="display:none;visibility:hidden"></iframe>

<script src="runtime.0686d0f28442a6e7dfeb.js" defer></script><script src="polyfills.fe8068d502eaed917a90.js" defer></script><script src="main.26b4ae06278e446e000a.js" defer></script> 2022-03-03 13:25:16,555 logged in successfully! 2022-03-03 13:25:16,556 retrieving data... 2022-03-03 13:25:16,556 start_date: 2022-02-01; end_date: 2022-03-03 2022-03-03 13:25:16,644 https://monespace.grdf.fr:443 "GET /api/e-connexion/users/pce/historique-consultation HTTP/1.1" 200 None 2022-03-03 13:25:16,648 Get NumPce Response : [{"id":133444,"numPce":"xxx","updatedAt":"2022-03-02T17:13:28+01:00"}] 2022-03-03 13:25:16,945 https://monespace.grdf.fr:443 "GET /api/e-conso/pce/consommation/informatives?dateDebut=2022-02-01&dateFin=2022-03-03&pceList[]=xxx HTTP/1.1" 200 None 2022-03-03 13:25:16,952 Data : {"19363096914077":{"idPce":"xxx","releves":[{"dateDebutReleve":"2022-01-31T06:00:00+01:00","dateFinReleve":"2022-02-01T06:00:00+01:00","journeeGaziere":"2022-01-31","indexDebut":1546,"indexFin":1550,"volumeBrutConsomme":4,"en$ 2022-03-03 13:25:16,973 Data to inject : 2022-01-31;82009;42000;1588 2022-03-03 13:25:17,097 Data to inject : 2022-01-31;82003;3.82;1550 2022-03-03 13:25:17,206 Data to inject : 2022-02-01;82009;67000;1655 2022-03-03 13:25:17,307 Data to inject : 2022-02-01;82003;6.09;1556 2022-03-03 13:25:17,407 Data to inject : 2022-02-02;82009;44000;1699 2022-03-03 13:25:17,508 Data to inject : 2022-02-02;82003;4.0;1560 2022-03-03 13:25:17,608 Data to inject : 2022-02-03;82009;30000;1729 2022-03-03 13:25:17,709 Data to inject : 2022-02-03;82003;2.73;1563 2022-03-03 13:25:17,809 Data to inject : 2022-02-04;82009;14000;1743 2022-03-03 13:25:17,910 Data to inject : 2022-02-04;82003;1.27;1564 2022-03-03 13:25:18,044 Data to inject : 2022-02-05;82009;33000;1776 2022-03-03 13:25:18,145 Data to inject : 2022-02-05;82003;3.0;1567 2022-03-03 13:25:18,247 Data to inject : 2022-02-06;82009;49000;1825 2022-03-03 13:25:18,348 Data to inject : 2022-02-06;82003;4.45;1571 2022-03-03 13:25:18,450 Data to inject : 2022-02-07;82009;37000;1862 2022-03-03 13:25:18,552 Data to inject : 2022-02-07;82003;3.36;1575 2022-03-03 13:25:18,654 Data to inject : 2022-02-08;82009;30000;1892 2022-03-03 13:25:18,755 Data to inject : 2022-02-08;82003;2.73;1578 2022-03-03 13:25:18,864 Data to inject : 2022-02-09;82009;27000;1919 2022-03-03 13:25:18,965 Data to inject : 2022-02-09;82003;2.45;1580 2022-03-03 13:25:19,066 Data to inject : 2022-02-10;82009;24000;1943 2022-03-03 13:25:19,167 Data to inject : 2022-02-10;82003;2.18;1582 2022-03-03 13:25:19,268 Data to inject : 2022-02-11;82009;9000;1952 2022-03-03 13:25:19,381 Data to inject : 2022-02-11;82003;0.82;1583 2022-03-03 13:25:19,500 Data to inject : 2022-02-12;82009;0;1952 2022-03-03 13:25:19,600 Data to inject : 2022-02-12;82003;0.0;1583 2022-03-03 13:25:19,701 Data to inject : 2022-02-13;82009;40000;1992 2022-03-03 13:25:19,801 Data to inject : 2022-02-13;82003;3.64;1587 2022-03-03 13:25:19,902 Data to inject : 2022-02-14;82009;26000;2018 2022-03-03 13:25:20,002 Data to inject : 2022-02-14;82003;2.36;1589 2022-03-03 13:25:20,103 Data to inject : 2022-02-15;82009;36000;2054 2022-03-03 13:25:20,204 Data to inject : 2022-02-15;82003;3.27;1592 2022-03-03 13:25:20,305 Data to inject : 2022-02-16;82009;35000;2089 2022-03-03 13:25:20,405 Data to inject : 2022-02-16;82003;3.18;1595 2022-03-03 13:25:20,517 Data to inject : 2022-02-17;82009;10000;2099 2022-03-03 13:25:20,618 Data to inject : 2022-02-17;82003;0.91;1596 2022-03-03 13:25:20,721 Data to inject : 2022-02-18;82009;6000;2105 2022-03-03 13:25:20,823 Data to inject : 2022-02-18;82003;0.55;1597 2022-03-03 13:25:20,925 Data to inject : 2022-02-19;82009;26000;2131 2022-03-03 13:25:20,823 Data to inject : 2022-02-18;82003;0.55;1597 2022-03-03 13:25:20,925 Data to inject : 2022-02-19;82009;26000;2131 2022-03-03 13:25:21,026 Data to inject : 2022-02-19;82003;2.36;1599 2022-03-03 13:25:21,126 Data to inject : 2022-02-20;82009;33000;2164 2022-03-03 13:25:21,228 Data to inject : 2022-02-20;82003;3.0;1602 2022-03-03 13:25:21,330 Data to inject : 2022-02-21;82009;27000;2191 2022-03-03 13:25:21,431 Data to inject : 2022-02-21;82003;2.45;1605 2022-03-03 13:25:21,534 Data to inject : 2022-02-22;82009;39000;2230 2022-03-03 13:25:21,635 Data to inject : 2022-02-22;82003;3.55;1608 2022-03-03 13:25:21,736 Data to inject : 2022-02-23;82009;12000;2242 2022-03-03 13:25:21,837 Data to inject : 2022-02-23;82003;1.09;1609 2022-03-03 13:25:21,938 Data to inject : 2022-02-24;82009;13000;2255 2022-03-03 13:25:22,039 Data to inject : 2022-02-24;82003;1.18;1611 2022-03-03 13:25:22,148 Data to inject : 2022-02-25;82009;27000;2282 2022-03-03 13:25:22,248 Data to inject : 2022-02-25;82003;2.45;1613 2022-03-03 13:25:22,350 Data to inject : 2022-02-26;82009;30000;2312 2022-03-03 13:25:22,451 Data to inject : 2022-02-26;82003;2.73;1616 2022-03-03 13:25:22,553 Data to inject : 2022-02-27;82009;30000;2342 2022-03-03 13:25:22,653 Data to inject : 2022-02-27;82003;2.73;1619 2022-03-03 13:25:22,754 Data to inject : 2022-02-28;82009;24000;2366 2022-03-03 13:25:22,855 Data to inject : 2022-02-28;82003;2.18;1621 2022-03-03 13:25:23,357 got data!

@joebar38
Copy link
Author

joebar38 commented Mar 7, 2022

Petit ajout, les fichiers JSON ne sont pas présents dans le dossier.

@lolo-b
Copy link

lolo-b commented Aug 24, 2022

Bonjour, Je n'ai plus non plus de remonter de ma consommation depuis début juillet.
J'ai fait les mises à jour et pas d'erreur sur l'exécution du programme. Je n'ai pas non plus de fichier JSON mais ne semble pas nécessaire ?

Ci-dessous un extrait de mon log avec le mode DEBUG:

2022-08-24 21:29:52,343 logging in as xxxxxxx...
2022-08-24 21:29:52,390 Starting new HTTPS connection (1): login.monespace.grdf.fr:443
2022-08-24 21:29:52,916 https://login.monespace.grdf.fr:443 "POST /sofit-account-api/api/v1/auth HTTP/1.1" 200 None
2022-08-24 21:29:52,946 1st Auth Response :
{"state":"SUCCESS","actualLockoutDuration":0,"displayCaptcha":false,"redirectUrl":"https://sofa-connexion.grdf.fr:443/openam/oauth2/externeGrdf/authorize?response_type=code%26scope=openid%20profile%20email%20infotravaux%20%2Fv1
%2Faccreditation%20%2Fv1%2Faccreditations%20%2Fdigiconso%2Fv1%20%2Fdigiconso%2Fv1%2Fconsommations%20new_meg%20%2FDemande.read%20%2FDemande.write%26client_id=prod_espaceclient%26state=0%26redirect_uri=https%3A%2F%2Fmonespace.grd
f.fr%2F_codexch%26nonce=7cV89oGyWnw28DYdI-702Gjy9f5XdIJ_4dKE_hbsvag%26by_pass_okta=1%26capp=meg","surname":"xxxxx","name":"xxxx","email":"[email protected]"}
2022-08-24 21:29:52,976 Starting new HTTPS connection (1): monespace.grdf.fr:443
2022-08-24 21:29:53,280 https://monespace.grdf.fr:443 "GET / HTTP/1.1" 302 138
2022-08-24 21:29:53,342 Starting new HTTPS connection (1): sofa-connexion.grdf.fr:443
2022-08-24 21:29:53,667 https://sofa-connexion.grdf.fr:443 "GET /openam/oauth2/externeGrdf/authorize?response_type=code&scope=openid+profile+email+infotravaux+/v1/accreditation+/v1/accreditations+/digiconso/v1+/digiconso/v1/con
sommations+new_meg+/Demande.read+/Demande.write+/digiraccob2c/v1&client_id=prod_espaceclient&state=%2F&redirect_uri=https://monespace.grdf.fr/_codexch&nonce=wIKxCQ-BWc7SqxxX6HmedRca-8&by_pass_okta=1&capp=meg HT
TP/1.1" 302 0
2022-08-24 21:29:53,879 https://monespace.grdf.fr:443 "GET /_codexch?code=-Hzkqa1Z6xgJtq-J2kQM&iss=https%3A%2F%2Fsofa-connexion.grdf.fr%3A443%2Fopenxdf&state=%2F&client_id=prod_espaceclient HTTP/1.1
" 302 138
2022-08-24 21:29:54,003 https://monespace.grdf.fr:443 "GET / HTTP/1.1" 200 8180
2022-08-24 21:29:54,011 2nd API Response :

<meta charset="utf-8">
<title>Espace client - GRDF - Connexion</title>
<base href="/" id="soco-base-ref">
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/assets/shared/images/favicon.ico">
<!-- Google Tag Manager -->

.....

<script src="runtime.9d915b74d30237dbfd88.js" defer></script><script src="polyfills.492ac81b067a5ee3489b.js" defer></script><script src="main.afede78c0d1e67a52e5c.js" defer></script> 2022-08-24 21:29:54,014 logged in successfully! 2022-08-24 21:29:54,015 retrieving data... 2022-08-24 21:29:54,018 start_date: 2022-07-25; end_date: 2022-08-24 2022-08-24 21:29:54,150 https://monespace.grdf.fr:443 "GET /api/e-connexion/users/pce/historique-consultation HTTP/1.1" 200 None 2022-08-24 21:29:54,164 Get NumPce Response : [{"id":18943,"numPce":"21376989xxx","updatedAt":"2022-08-22T21:08:38+02:00"}] 2022-08-24 21:29:54,270 https://monespace.grdf.fr:443 "GET /api/e-conso/pce/consommation/informatives?dateDebut=2022-07-25&dateFin=2022-08-24&pceList[]=251376598xxx HTTP/1.1" 200 None 2022-08-24 21:29:54,286 Data : {"21376989858404":{"idPce":"251376985xxx","releves":[{"dateDebutReleve":"2022-07-24T06:00:00+02:00","dateFinReleve":"2022-07-25T06:00:00+02:00","journeeGaziere":"2022-07-24","indexDebut":2918,"indexFin":2919,"volumeBrutConsom me":0,"energieConsomme":4,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.17,"frequenceReleve":null,"temperature":null}, {"dateDebutReleve":"2022-07-25T06:00:00+02:00","dateFinReleve":"2022-07-26T06:00:00+02:00","journeeGaziere":"2022-07-25","indexDebut":2919,"indexFin":2919,"volumeBrutConsomme":0,"energieConsomme":5,"pcs":null,"volumeConverti":n ull,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-07-26T06:00:00+02:00","dateFin Releve":"2022-07-27T06:00:00+02:00","journeeGaziere":"2022-07-26","indexDebut":2919,"indexFin":2920,"volumeBrutConsomme":0,"energieConsomme":4,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier", "qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-07-27T06:00:00+02:00","dateFinReleve":"2022-07-28T06:00:00+02:00","journeeGaziere":"2 022-07-27","indexDebut":2920,"indexFin":2920,"volumeBrutConsomme":0,"energieConsomme":4,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coef fConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-07-28T06:00:00+02:00","dateFinReleve":"2022-07-29T06:00:00+02:00","journeeGaziere":"2022-07-28","indexDebut":2920,"indexFin":2921,"volumeBru tConsomme":1,"energieConsomme":10,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature ":null},{"dateDebutReleve":"2022-07-29T06:00:00+02:00","dateFinReleve":"2022-07-30T06:00:00+02:00","journeeGaziere":"2022-07-29","indexDebut":2921,"indexFin":2921,"volumeBrutConsomme":0,"energieConsomme":4,"pcs":null,"volumeCon verti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-07-30T06:00:00+02:00", "dateFinReleve":"2022-07-31T06:00:00+02:00","journeeGaziere":"2022-07-30","indexDebut":2921,"indexFin":2922,"volumeBrutConsomme":0,"energieConsomme":5,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Jour nalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-07-31T06:00:00+02:00","dateFinReleve":"2022-08-01T06:00:00+02:00","journeeGaz iere":"2022-07-31","indexDebut":2922,"indexFin":2922,"volumeBrutConsomme":0,"energieConsomme":4,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":nu ll,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-01T06:00:00+02:00","dateFinReleve":"2022-08-02T06:00:00+02:00","journeeGaziere":"2022-08-01","indexDebut":2922,"indexFin":2923,"v olumeBrutConsomme":0,"energieConsomme":5,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temp erature":null},{"dateDebutReleve":"2022-08-02T06:00:00+02:00","dateFinReleve":"2022-08-03T06:00:00+02:00","journeeGaziere":"2022-08-02","indexDebut":2923,"indexFin":2923,"volumeBrutConsomme":0,"energieConsomme":4,"pcs":null,"vo lumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-03T06:00:00+ 02:00","dateFinReleve":"2022-08-04T06:00:00+02:00","journeeGaziere":"2022-08-03","indexDebut":2923,"indexFin":2924,"volumeBrutConsomme":1,"energieConsomme":7,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informati ve Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-04T06:00:00+02:00","dateFinReleve":"2022-08-05T06:00:00+02:00","jou rneeGaziere":"2022-08-04","indexDebut":2924,"indexFin":2924,"volumeBrutConsomme":1,"energieConsomme":9,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","sta tus":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-05T06:00:00+02:00","dateFinReleve":"2022-08-06T06:00:00+02:00","journeeGaziere":"2022-08-05","indexDebut":2924,"indexFin": 2925,"volumeBrutConsomme":0,"energieConsomme":5,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":nul l,"temperature":null},{"dateDebutReleve":"2022-08-06T06:00:00+02:00","dateFinReleve":"2022-08-07T06:00:00+02:00","journeeGaziere":"2022-08-06","indexDebut":2925,"indexFin":2926,"volumeBrutConsomme":1,"energieConsomme":8,"pcs":n ull,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConver

:"2022-08-16T06:00:00+02:00","journeeGaziere":"2022-08-15","indexDebut":2932,"indexFin":2933,"volumeBrutConsomme":1,"energieConsomme":11,"pcs":null,"volumeConverti":null,"pta":null,
"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-16T06:00:00+02:00","dateFinReleve":"2022-0
8-17T06:00:00+02:00","journeeGaziere":"2022-08-16","indexDebut":2933,"indexFin":2933,"volumeBrutConsomme":1,"energieConsomme":8,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationR
eleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-17T06:00:00+02:00","dateFinReleve":"2022-08-18T06:00:00+02:00","journeeGaziere":"2022-08-17","ind
exDebut":2933,"indexFin":2934,"volumeBrutConsomme":1,"energieConsomme":9,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11
.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-18T06:00:00+02:00","dateFinReleve":"2022-08-19T06:00:00+02:00","journeeGaziere":"2022-08-18","indexDebut":2934,"indexFin":2935,"volumeBrutConsomme":1,"e
nergieConsomme":7,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDe
butReleve":"2022-08-19T06:00:00+02:00","dateFinReleve":"2022-08-20T06:00:00+02:00","journeeGaziere":"2022-08-19","indexDebut":2935,"indexFin":2936,"volumeBrutConsomme":1,"energieConsomme":10,"pcs":null,"volumeConverti":null,"pt
a":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-20T06:00:00+02:00","dateFinReleve"
:"2022-08-21T06:00:00+02:00","journeeGaziere":"2022-08-20","indexDebut":2936,"indexFin":2936,"volumeBrutConsomme":1,"energieConsomme":9,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualif
icationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-21T06:00:00+02:00","dateFinReleve":"2022-08-22T06:00:00+02:00","journeeGaziere":"2022-08-
21","indexDebut":2936,"indexFin":2937,"volumeBrutConsomme":1,"energieConsomme":9,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConver
sion":11.24,"frequenceReleve":null,"temperature":null},{"dateDebutReleve":"2022-08-22T06:00:00+02:00","dateFinReleve":"2022-08-23T06:00:00+02:00","journeeGaziere":"2022-08-22","indexDebut":2937,"indexFin":2938,"volumeBrutConsom
me":0,"energieConsomme":5,"pcs":null,"volumeConverti":null,"pta":null,"natureReleve":"Informative Journalier","qualificationReleve":"Mesur\u00e9","status":null,"coeffConversion":11.24,"frequenceReleve":null,"temperature":null}]
,"frequence":null}}
2022-08-24 21:29:54,337 Data to inject : 2022-07-24;39;4000;2922
2022-08-24 21:29:54,351 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=39&svalue=2922%3B4000%3B2022-07-24
2022-08-24 21:29:54,410 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:54,411 Data to inject : 2022-07-24;40;0;2919
2022-08-24 21:29:54,419 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=40&svalue=2919%3B0%3B2022-07-24
2022-08-24 21:29:54,483 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:54,486 Data to inject : 2022-07-25;39;5000;2927
2022-08-24 21:29:54,493 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=39&svalue=2927%3B5000%3B2022-07-25
2022-08-24 21:29:54,552 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:54,553 Data to inject : 2022-07-25;40;0;2919
2022-08-24 21:29:54,561 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=40&svalue=2919%3B0%3B2022-07-25
2022-08-24 21:29:54,624 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:54,627 Data to inject : 2022-07-26;39;4000;2931
2022-08-24 21:29:54,634 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=39&svalue=2931%3B4000%3B2022-07-26
2022-08-24 21:29:54,692 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"

......

2022-08-24 21:29:58,681 Data to inject : 2022-08-22;40;0;2938
2022-08-24 21:29:58,688 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=40&svalue=2938%3B0%3B2022-08-22
2022-08-24 21:29:58,751 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:58,758 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=39&svalue=5000
2022-08-24 21:29:58,815 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:58,821 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=39&svalue=3133%3B5000%3B2022-08-23+06%3A00%3A00
2022-08-24 21:29:58,879 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:58,885 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=40&svalue=0
2022-08-24 21:29:58,947 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:58,951 Domoticz Request :
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=40&svalue=2938%3B0%3B2022-08-23+06%3A00%3A00
2022-08-24 21:29:59,015 Domoticz Response :
{
"status" : "OK",
"title" : "Update Device"
}

2022-08-24 21:29:59,017 got data!

@melufre
Copy link

melufre commented Aug 24, 2022

fait une mise a jours de gazpar.py
il y a une modifications du site début juillet

@lolo-b
Copy link

lolo-b commented Aug 24, 2022

J'ai bien la dernière version gazpar.py de mis à jour avec l'ajout 'domain': 'grdf.fr'.

Comme indiqué, pas d'erreur sur l'exécution et sur la récupération des données (selon le log). Les compteurs virtuels indiquent bien une mise à jour mais les valeurs restent à 0 !

@lolo-b
Copy link

lolo-b commented Aug 24, 2022

par exemple pour la consommation d'hier, la commande pour remonter les valeurs est la bonne ?
http://192.168.1.168:8080/json.htm?type=command&param=udevice&idx=39&svalue=3133%3B5000%3B2022-08-23+06%3A00%3A00

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

5 participants
@albebert @melufre @lolo-b @joebar38 and others