Skip to content

Can't get DataMetric.RENEWABLE_PROPORTION to work #18

Description

@AndrewDonaldson

Using both the Python API and via Curl, I have never got the renewable portion to work. I get a 500.
e.g. applying this diff to the Quick Start sample in the readme:

$ diff test-orig.py test.py
21c21
<         metrics=[DataMetric.POWER, DataMetric.ENERGY],
---
>         metrics=[DataMetric.RENEWABLE_PROPORTION],

Gives:
[2025-11-09 20:59:27] ERROR [openelectricity.client._handle_response:112] API error: 500 - Internal Server Error
Could you confirm getting renewable portion works and perhaps suggest a diff to the sample which also works?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions