Add support for published consumption readings - #93
Merged
ssenart merged 6 commits intoJul 27, 2026
Merged
Conversation
…gation in case of errors (ssenart#83) * [ssenart#81] Add meter/temperature debug log messages to help investigation in case of errors (ssenart#82) * [ssenart#81] Add meter/temperature debug log messages to help investigation in case of errors * [ssenart#81] Add meter/temperature debug log messages to help investigation in case of errors --------- Co-authored-by: Stéphane Senart <> * [ssenart#81] Add meter/temperature debug log messages to help investigation in case of errors --------- Co-authored-by: Stéphane Senart <>
# Conflicts: # .github/workflows/python-publish-develop.yml # .github/workflows/python-publish-release.yml # CHANGELOG.md # pygazpar/datasource.py # pygazpar/excelparser.py # setup.cfg
Owner
|
Hello, thanks for your contribution. I will publish an alpha release shortly. |
Owner
|
Done, draft release available here: https://pypi.org/project/pygazpar/1.4.0a1/ Thanks a lot ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add explicit support for GRDF published consumption readings without changing the existing informative-reading default.
Context
Some PCEs return no usable history (or only the latest reading) from the
informativesendpoint even though published consumption history is available in the GRDF customer portal. This is the situation reported in ssenart/gazpar2haws#117.PyGazpar already models the
publieesendpoint throughConsumptionType.PUBLISHED, butJsonWebDataSourcealways requests informative readings. In addition, published readings have a nulljourneeGaziereand therefore fail inJsonParser.Changes
ConsumptionTypeused byJsonWebDataSource;ConsumptionType.INFORMATIVEas the default;ConsumptionTypefrom the public package API;dateFinReleve - 1 day);journeeGazierenordateFinReleve;donnees_publiees.jsonfixture.Important behavior
Published readings may cover more than one day. This change does not invent a daily distribution. The complete consumption is assigned to the final day covered by the published period, preserving the GRDF total while making the temporal granularity explicit.
Validation
pytest tests/test_jsonparser.py tests/test_datafileparser.py -q— 7 passed