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
[Issue] No data update - GrDF web site is half broken - Download button does not work anymore #58
Comments
Hi For your information I also use another système that works https://github.com/yukulehe/gazpar2mqtt Any news ? Regards |
Hello, I have a work in progress to move on a new method to get the data. There is already an alpha release (corresponding to the develop branch) available here: https://pypi.org/project/pygazpar/1.2.0a53/ The API has changed. You will have to adapt you code a little bit. There are some code samples in the README.md. Let me know |
Ok I will recompile my docker with that version . |
Hi it works Nevertheless Influx format has changes because I have a lot of errors: {'time_period': '25/11/2022', 'start_index_m3': 1982, 'end_index_m3': 1986, 'volume_m3': 4, 'energy_kwh': 34, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 7.86, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '26/11/2022', 'start_index_m3': 1986, 'end_index_m3': 1989, 'volume_m3': 4, 'energy_kwh': 34, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 7.16, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '27/11/2022', 'start_index_m3': 1989, 'end_index_m3': 1993, 'volume_m3': 4, 'energy_kwh': 35, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 7.2, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '28/11/2022', 'start_index_m3': 1993, 'end_index_m3': 1996, 'volume_m3': 3, 'energy_kwh': 32, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 7.31, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '29/11/2022', 'start_index_m3': 1996, 'end_index_m3': 2001, 'volume_m3': 5, 'energy_kwh': 45, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 4.09, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '30/11/2022', 'start_index_m3': 2001, 'end_index_m3': 2006, 'volume_m3': 5, 'energy_kwh': 48, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 5.59, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '01/12/2022', 'start_index_m3': 2006, 'end_index_m3': 2011, 'volume_m3': 5, 'energy_kwh': 44, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 4.44, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '02/12/2022', 'start_index_m3': 2011, 'end_index_m3': 2016, 'volume_m3': 5, 'energy_kwh': 51, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 3.15, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} {'time_period': '03/12/2022', 'start_index_m3': 2016, 'end_index_m3': 2024, 'volume_m3': 8, 'energy_kwh': 76, 'converter_factor_kwh/m3': 9.47, 'temperature_degC': 2.25, 'type': 'Mesuré', 'timestamp': '2022-12-05T17:27:57.802315'} Traceback (most recent call last): File "/data/./pygazpar_to_influxdb.py", line 90, in
File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 374, in write
File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 372, in write_payload
File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 483, in _post_write
File "/usr/local/lib/python3.9/site-packages/influxdb_client/service/write_service.py", line 60, in post_write
File "/usr/local/lib/python3.9/site-packages/influxdb_client/service/write_service.py", line 90, in post_write_with_http_info
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 343, in call_api
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 173, in __call_api
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 388, in request
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/rest.py", line 311, in POST
File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/rest.py", line 261, in request
influxdb_client.rest.ApiException: (422) Reason: Unprocessable Entity HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.5.1', 'X-Platform-Error-Code': 'unprocessable entity', 'Date': 'Mon, 05 Dec 2022 16:27:57 GMT', 'Content-Length': '246'}) HTTP response body: {"code":"unprocessable entity","message":"failure writing points to database: partial write: field type conflict: input field "end_index_m3" on measurement "gazpar_consumption_per_day" is type integer, already exists as type float dropped=7"} some necessary improvment necessary on my side ! Phil |
Hi I try to update my docker as soon as there is a new beta. Thanks HTTP response body: {"code":"unprocessable entity","message":"failure writing points to database: partial write: field type conflict: input field "converter_factor_kwh/m3" on measurement "gazpar_consumption_per_day" is type integer, already exists as type float dropped=6"} |
Hi, it complains about the type. It seems to see an int, but it is already used as a float in the db. Don't you have any means to declare the types of your fields. |
Hi |
Yes, there is an alpha version: see https://github.com/ssenart/PyGazpar/blob/develop/CHANGELOG.md I'm still currently testing it. The develop branch is here: https://github.com/ssenart/PyGazpar/tree/develop The last corresponding alpha is 1.2.0a65. For performance reason, it will be possible to download all frequencies at one time. |
Since more 1 week, GrDF web site is half broken and Télécharger button does not work any more.
PyGazpar relies on the same URL behind the Télécharger button. We now have a 404 error on this URL.
GrDF is aware of that issue and is working on it.
Please, be patient !
The text was updated successfully, but these errors were encountered: