Skip to content

Update capacity methods to use the new capacity API endpoints #56

Description

@JamieTaylor-TUOS

We're making a small change to the PV_Live API which affects the /capacity endpoint.

As of now, this endpoint on the "on-prem" PV_Live API returns a directory listing, with folders for each PV capacity update which contain a series of compressed files, see e.g. https://api.solar.sheffield.ac.uk/capacity/.

Note that the "GCP-hosted" PV_Live API is currently configured to redirect requests for https://api.pvlive.uk/capacity/ to https://api.solar.sheffield.ac.uk/capacity/.

We have now developed a new API endpoint to provision capacity data, which is more aligned with the other PV_Live API endpoints in that it provides a JSON response. The new capacity data endpoint is currently available for testing at https://api.solar.sheffield.ac.uk/capacity2/

After sunset on Monday 7th July 2025, we plan to:
decommission the old endpoint: https://api.solar.sheffield.ac.uk/capacity/
rename the /capacity2 endpoint:
from https://api.solar.sheffield.ac.uk/capacity2/
to: https://api.solar.sheffield.ac.uk/capacity/
remove the redirect from api.pvlive.uk/capacity/ to api.solar.sheffield.ac.uk/capacity/
The capacity data will instead be hosted natively on GCP
We recommend using https://api.solar.sheffield.ac.uk/capacity to access capacity data going forward
The on-prem API (https://api.solar.sheffield.ac.uk/) remains as a test environment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions