Hi there,
I seem to have run into some trouble while trying to export power usage data for coal plants.
[2025-10-18 21:32:54] DEBUG [openelectricity.client._async_get_facility_data:211] Getting facility data for ['AU']/['APS'] (metrics: [<DataMetric.POWER: 'power'>], interval: 1M)
[2025-10-18 21:32:54] DEBUG [openelectricity.client._async_get_facility_data:228] Request parameters: {'facility_code': ['APS'], 'metrics': ['power'], 'interval': '1M', 'date_start': '1995-10-26T00:00:00', 'date_end': '2025-10-18T00:00:00'}
[2025-10-18 21:32:54] ERROR [openelectricity.client._handle_response:112] API error: 400 - Bad Request
I've tried various permutations of the inputs and have tried setting the start and end dates to those that specifically correspond to the data availability variables in the /get_facilities/ API response.
I would love any guidance on how to export power generation stats aggregated at the month level, for all time periods where data are available.
Cheers
Hi there,
I seem to have run into some trouble while trying to export power usage data for coal plants.
[2025-10-18 21:32:54] DEBUG [openelectricity.client._async_get_facility_data:211] Getting facility data for ['AU']/['APS'] (metrics: [<DataMetric.POWER: 'power'>], interval: 1M)[2025-10-18 21:32:54] DEBUG [openelectricity.client._async_get_facility_data:228] Request parameters: {'facility_code': ['APS'], 'metrics': ['power'], 'interval': '1M', 'date_start': '1995-10-26T00:00:00', 'date_end': '2025-10-18T00:00:00'}[2025-10-18 21:32:54] ERROR [openelectricity.client._handle_response:112] API error: 400 - Bad RequestI've tried various permutations of the inputs and have tried setting the start and end dates to those that specifically correspond to the data availability variables in the
/get_facilities/API response.I would love any guidance on how to export power generation stats aggregated at the month level, for all time periods where data are available.
Cheers