Skip to content

Can't get DataMetric.RENEWABLE_PROPORTION to work #18

@AndrewDonaldson

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?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions