ah , la il cause …
.
2023-07-06 18:07:43.551 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 18:07:43.551 - INFO : [041XXXXXXXX62] EXPORTATION DES DONNÉES "CONSUMPTION" DANS INFLUXDB
2023-07-06 18:07:43.551 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 18:07:43.568 - INFO : - 2023-07
Traceback (most recent call last):
File "/app/models/jobs.py", line 228, in job_import_data
ExportInfluxDB(self.influxdb_config, self.usage_point_config).daily()
File "/app/models/export_influxdb.py", line 42, in daily
app.INFLUXDB.write(
File "/app/models/influxdb.py", line 176, in write
self.write_api.write(bucket=self.bucket, org=self.org, record=record)
File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 378, in write
results = list(map(write_payload, payloads.items()))
File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 376, in write_payload
return self._post_write(_async_req, bucket, org, final_string, payload[0])
File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 509, in _post_write
return self._write_service.post_write(org=org, bucket=bucket, body=body, precision=precision,
File "/usr/local/lib/python3.9/site-packages/influxdb_client/service/write_service.py", line 60, in post_write
(data) = self.post_write_with_http_info(org, bucket, body, **kwargs) # noqa: E501
File "/usr/local/lib/python3.9/site-packages/influxdb_client/service/write_service.py", line 90, in post_write_with_http_info
return self.api_client.call_api(
2023-07-06 18:07:43.573 - ERROR : ═══════════════════════════════════════════════•°• :ERREUR: •°•════════════════════════════════════════════════
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 343, in call_api
return self.__call_api(resource_path, method,
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 173, in __call_api
response_data = self.request(
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 388, in request
return self.rest_client.POST(url,
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/rest.py", line 311, in POST
return self.request("POST", url,
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/rest.py", line 261, in request
raise ApiException(http_resp=r)
influxdb_client.rest.ApiException: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Www-Authenticate': 'Basic realm="Hass.io InfluxDB"', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.8.10', 'X-Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Date': 'Thu, 06 Jul 2023 16:07:43 GMT', 'Content-Length': '33'})
HTTP response body: {"error":"authorization failed"}
2023-07-06 18:07:43.574 - ERROR :
2023-07-06 18:07:43.574 - ERROR : Erreur lors de l'exportation des données dans InfluxDB
2023-07-06 18:07:43.574 - ERROR : (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Www-Authenticate': 'Basic realm="Hass.io InfluxDB"', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.8.10', 'X-Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Date': 'Thu, 06 Jul 2023 16:07:43 GMT', 'Content-Length': '33'})
HTTP response body: {"error":"authorization failed"}
2023-07-06 18:07:43.574 - ERROR :
2023-07-06 18:07:43.574 - ERROR : ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════
2023-07-06 18:07:43.574 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 18:07:43.574 - INFO : ▌│█║▌║▌║ ___ _ _____ _ _ _ _ _ _ ║▌║▌║█│▌
2023-07-06 18:07:43.574 - INFO : ▌│█║▌║▌║ |_ _| _ __ ___ _ __ ___ _ __ | |_ | ___|(_) _ __ (_) ___ | |__ | || || | ║▌║▌║█│▌
2023-07-06 18:07:43.574 - INFO : ▌│█║▌║▌║ | | | '_ ` _ \ | '_ \ / _ \ | '__|| __| | |_ | || '_ \ | |/ __|| '_ \ | || || | ║▌║▌║█│▌
2023-07-06 18:07:43.575 - INFO : ▌│█║▌║▌║ | | | | | | | || |_) || (_) || | | |_ | _| | || | | || |\__ \| | | ||_||_||_| ║▌║▌║█│▌
2023-07-06 18:07:43.575 - INFO : ▌│█║▌║▌║ |___||_| |_| |_|| .__/ \___/ |_| \__| |_| |_||_| |_||_||___/|_| |_|(_)(_)(_) ║▌║▌║█│▌
2023-07-06 18:07:43.575 - INFO : ▌│█║▌║▌║ |_| ║▌║▌║█│▌
2023-07-06 18:07:43.575 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
.
.
influxdb_client.rest.ApiException: (401)
Reason: Unauthorized
je viens de re re re re revérifier il y a toutes les autorisations
.
.
qu’est ce qu’il veux de plus ?
j’ai ca aussi :
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Request-Id': '15afb8f8-1c18-11ee-80de-0242ac1e2104', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Error': 'database not found: "myelectricaldata"', 'X-Influxdb-Version': '1.8.10', 'X-Request-Id': '15afb8f8-1c18-11ee-80de-0242ac1e2104', 'Date': 'Thu, 06 Jul 2023 16:13:46 GMT', 'Content-Length': '53'})
HTTP response body: {"error":"database not found: \"myelectricaldata\""}
2023-07-06 18:13:46.464 - ERROR :
2023-07-06 18:13:46.464 - ERROR :
.
bon , déjà ca c’est fait :
.
2023-07-06 21:19:09.798 - INFO : Connect to MQTT broker core-mosquitto:1883
2023-07-06 21:19:09.801 - INFO : => Connection success
2023-07-06 21:19:09.802 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 21:19:09.802 - INFO : Connect to InfluxDB 192.168.0.55:8086
2023-07-06 21:19:09.820 - INFO : => Connection success
2023-07-06 21:19:09.820 - INFO : => Méthode d'importation : SYNCHRONOUS
2023-07-06 21:19:09.821 - INFO : => Aucune durée de rétention de données détectée.
.
.
sauf que maintenant, il reste figé dans les journaux … et l’add on reste a l’arrêt, et n’a plus le bouton redémarrer , ni arrêt . Si je clique sur démarrer il se passe rien !! ni l’add on , ni les journaux …
.
.
.
.
.
pour tout faire repartir 1 fois je dois désinstaller et réinstaller , … je clique sur démarrer ca suis sont cour et ca se fige au même endroit …
---------------------------------------------------------------------------------------------------------------------------
SUITE …
mon problème de myelectricaldata « figé » s’est résolut en redémarrant toute l’installation ,… pas que home assistant … et c’est reparti …curieux …
.
mon problème restant se résumerait à un problème d’ « erreur 401 » … error:« authorization failed »
C’est pas gagné
---------------------------------------------------------------------------------------------------------------------------
.
SUITE …
alors de mieux en mieux , j’ai changé
donc :
#method: synchronous
method: asynchronous
.
j’ai plus d’erreur !! . . . .
.
2023-07-07 01:00:00 1
2023-07-07 02:00:00 1
2023-07-07 03:00:00 1
2023-07-07 04:00:00 1
2023-07-07 05:00:00 1
2023-07-07 06:00:00 1
2023-07-07 07:00:00 1
2023-07-07 08:00:00 1
2023-07-07 09:00:00 1
2023-07-07 10:00:00 1
2023-07-07 11:00:00 1
2023-07-07 12:00:00 1
2023-07-07 13:00:00 1
2023-07-06 22:18:02.510 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 - INFO : EXPORT TERMINÉ
2023-07-06 22:18:02.510 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 - INFO : EXPORTATION INFLUXDB
2023-07-06 22:18:02.510 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 - INFO : [041XXXXXXXXXXX2] EXPORTATION DES DONNÉES "CONSUMPTION" DANS INFLUXDB
2023-07-06 22:18:02.510 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.526 - INFO : - 2023-07
2023-07-06 22:18:02.537 - INFO : - 2023-06
2023-07-06 22:18:02.546 - INFO : - 2023-05
2023-07-06 22:18:02.553 - INFO : - 2023-04
2023-07-06 22:18:02.560 - INFO : - 2023-03
2023-07-06 22:18:02.585 - INFO : - 2023-02
2023-07-06 22:18:02.591 - INFO : - 2023-01
2023-07-06 22:18:02.607 - INFO : - 2022-12
2023-07-06 22:18:02.623 - INFO : - 2022-11
2023-07-06 22:18:02.636 - INFO : - 2022-10
2023-07-06 22:18:02.648 - INFO : - 2022-09
2023-07-06 22:18:02.654 - INFO : - 2022-08
2023-07-06 22:18:02.665 - INFO : - 2022-07
2023-07-06 22:18:02.673 - INFO : - 2022-06
2023-07-06 22:18:02.677 - INFO : - 2022-05
2023-07-06 22:18:02.685 - INFO : - 2022-04
2023-07-06 22:18:02.693 - INFO : - 2022-03
2023-07-06 22:18:02.700 - INFO : - 2022-02
2023-07-06 22:18:02.706 - INFO : - 2022-01
2023-07-06 22:18:02.712 - INFO : - 2021-12
2023-07-06 22:18:02.718 - INFO : - 2021-11
2023-07-06 22:18:02.724 - INFO : - 2021-10
2023-07-06 22:18:02.730 - INFO : - 2021-09
2023-07-06 22:18:02.736 - INFO : - 2021-08
2023-07-06 22:18:02.742 - INFO : - 2021-07
2023-07-06 22:18:02.748 - INFO : - 2021-06
2023-07-06 22:18:02.754 - INFO : - 2021-05
2023-07-06 22:18:02.760 - INFO : - 2021-04
2023-07-06 22:18:02.766 - INFO : - 2021-03
2023-07-06 22:18:02.773 - INFO : - 2021-02
2023-07-06 22:18:02.780 - INFO : - 2021-01
2023-07-06 22:18:02.787 - INFO : - 2020-12
2023-07-06 22:18:02.794 - INFO : - 2020-11
2023-07-06 22:18:02.801 - INFO : - 2020-10
2023-07-06 22:18:02.807 - INFO : - 2020-09
2023-07-06 22:18:02.813 - INFO : - 2020-08
2023-07-06 22:18:02.824 - INFO : - 2020-07
2023-07-06 22:18:02.830 - INFO : - 2020-06
2023-07-06 22:18:02.837 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.838 - INFO : [041XXXXXXXXX62] EXPORTATION DES DONNÉES "CONSUMPTION_DETAIL" DANS INFLUXDB
2023-07-06 22:18:02.838 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:03.901 - INFO : - 2021-06
2023-07-06 22:18:03.907 - INFO : - 2021-07
2023-07-06 22:18:04.215 - INFO : - 2021-08
2023-07-06 22:18:04.423 - INFO : - 2021-09
2023-07-06 22:18:04.619 - INFO : - 2021-10
2023-07-06 22:18:04.943 - INFO : - 2021-11
2023-07-06 22:18:05.418 - INFO : - 2021-12
2023-07-06 22:18:05.855 - INFO : - 2022-01
2023-07-06 22:18:06.405 - INFO : - 2022-02
2023-07-06 22:18:06.819 - INFO : - 2022-03
2023-07-06 22:18:07.249 - INFO : - 2022-04
2023-07-06 22:18:07.651 - INFO : - 2022-05
2023-07-06 22:18:08.111 - INFO : - 2022-06
2023-07-06 22:18:08.548 - INFO : - 2022-07
2023-07-06 22:18:09.223 - INFO : - 2022-08
2023-07-06 22:18:09.698 - INFO : - 2022-09
2023-07-06 22:18:10.213 - INFO : - 2022-10
2023-07-06 22:18:10.642 - INFO : - 2022-11
2023-07-06 22:18:11.039 - INFO : - 2022-12
2023-07-06 22:18:11.486 - INFO : - 2023-01
2023-07-06 22:18:12.062 - INFO : - 2023-02
2023-07-06 22:18:12.485 - INFO : - 2023-03
2023-07-06 22:18:12.916 - INFO : - 2023-04
2023-07-06 22:18:13.333 - INFO : - 2023-05
2023-07-06 22:18:13.779 - INFO : - 2023-06
2023-07-06 22:18:14.217 - INFO : - 2023-07
2023-07-06 22:18:14.404 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:14.404 - INFO : EXPORT TERMINÉ
2023-07-06 22:18:14.404 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:14.404 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:14.405 - INFO : ▌│█║▌║▌║ ___ _ _____ _ _ _ _ _ _ ║▌║▌║█│▌
2023-07-06 22:18:14.405 - INFO : ▌│█║▌║▌║ |_ _| _ __ ___ _ __ ___ _ __ | |_ | ___|(_) _ __ (_) ___ | |__ | || || | ║▌║▌║█│▌
2023-07-06 22:18:14.405 - INFO : ▌│█║▌║▌║ | | | '_ ` _ \ | '_ \ / _ \ | '__|| __| | |_ | || '_ \ | |/ __|| '_ \ | || || | ║▌║▌║█│▌
2023-07-06 22:18:14.405 - INFO : ▌│█║▌║▌║ | | | | | | | || |_) || (_) || | | |_ | _| | || | | || |\__ \| | | ||_||_||_| ║▌║▌║█│▌
2023-07-06 22:18:14.405 - INFO : ▌│█║▌║▌║ |___||_| |_| |_|| .__/ \___/ |_| \__| |_| |_||_| |_||_||___/|_| |_|(_)(_)(_) ║▌║▌║█│▌
2023-07-06 22:18:14.405 - INFO : ▌│█║▌║▌║ |_| ║▌║▌║█│▌
2023-07-06 22:18:14.405 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
C’EST COOL !!!… :
.
mais ma base de données influxdb myelectricaldata.autogen reste désespéramment vide …je sais pas où il les a mises ses données !!!