-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
How can I get data that matches the numbers that appear on the website? Tried multiple times but cannot get the same numbers.
My code:
with OEClient(api_key=os.getenv("OPENELECTRICITY_API_KEY")) as client:
response = client.get_network_data(
network_code="AU",
metrics=[DataMetric.ENERGY],
interval="1d",
secondary_grouping="fueltech_group",
date_start=date(2025, 11, 1),
date_end=date(2025, 11, 4),
)
and got these numbers for solar:
27 2025-11-01 10:00:00 solar 61875.5510
28 2025-11-02 10:00:00 solar 60454.0680
29 2025-11-03 10:00:00 solar 46918.7810
which are very different than those that appear on the website:
besides this, all other categories also do not match but smaller differences, like wind, API response:
30 2025-11-01 10:00:00 wind 62645.3050
31 2025-11-02 10:00:00 wind 108030.1200
32 2025-11-03 10:00:00 wind 105659.0100
or hydro
21 2025-11-01 10:00:00 hydro 37579.5260
22 2025-11-02 10:00:00 hydro 28945.1250
23 2025-11-03 10:00:00 hydro 39744.9370
Metadata
Metadata
Assignees
Labels
No labels