Skip to main content

No project description provided

Project description

All Contributors

codecov

Download historical solar photovoltaic data from PVOutput.org.

This code is a work-in-progress. The aim is to provide both a Python library for interacting with PVOutput.org's API, and a set of scripts for downloading lots of data :)

Installation

$ pip install pvoutput-ocf

Development installation

If you want to install the latest development version directly from GitHub:

pip install git+https://github.com/openclimatefix/pvoutput.git

Register with PVOutput.org

You need to get an API key and a system ID from PVOutput.org.

If you don't own a physical PV system, click the "energy consumption only" box when registering on PVOutput. If you don't include a system ID, then you'll get a "401 Unauthorized" response from the PVOutput API.

You can pass the API key and system ID into the PVOutput constructor. Or, create a ~/.pvoutput.yml file which looks like:

api_key: <API key from PVOutput.org>
system_id: <SystemID from PVOutput.org>

The default location of the .pvoutput.yml is the user's home directory, expanded from ~. This can be overridden by setting the PVOUTPUT_CONFIG environment variable.

e.g. export PVOUTPUT_CONFIG="/my/preferred/location/.pvoutput.yml"

Alternatively, you can set API_KEY, SYSTEM_ID and DATA_SERVICE_URL (see below) as environmental variables.

API quotas and paid subscriptions

Please see here for update info.

Free

For free, PVOutput.org gives you 60 API requests per hour. In a single API request you can download one day of data for one PV system. (See PVOutput's docs for more info about rate limits.)

Donate

Donating to PVOutput.org increases your API quota to 300 requests per hour.

Paid

To get more historical data, you can pay $800 Australian dollars for a year's 'Live System History' subscription for a single country (more info here. And here's PVOutput.org's full price list). This allows you to use the get batch status API to download 900 PV-system-years per hour.

If you have subscribed to PVOutput's data service then either

  • add data_service_url to your configuration file (~/.pvoutput.yml) or
  • pass data_service_url to the PVOutput constructor.

The data_service_url should end in .org (note the data_service_url doesn't include the /service/r2 part of the URL) For example: data_service_url: https://pvoutput.org/

Usage

See the Quick Start notebook.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Jack Kelly
Jack Kelly

💻
Sam Murphy-Sugrue
Sam Murphy-Sugrue

💻
Gabriel Tseng
Gabriel Tseng

💻
Jamie Taylor
Jamie Taylor

💻
Peter Dudfield
Peter Dudfield

🚇
Shanmukh Chava
Shanmukh Chava

💻
Antsthebul
Antsthebul

💻
Rachit Singh
Rachit Singh

🔣 💻
devsjc
devsjc

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pvoutput_ocf-0.1.39.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pvoutput_ocf-0.1.39-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

Details for the file pvoutput_ocf-0.1.39.tar.gz.

File metadata

  • Download URL: pvoutput_ocf-0.1.39.tar.gz
  • Upload date:
  • Size: 43.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pvoutput_ocf-0.1.39.tar.gz
Algorithm Hash digest
SHA256 22c5bf2976815aa8b35f76ac37c263e9f0528be4396390d9c17c397fe993002d
MD5 c14c62b9177bcea0c1fa6118d172f6d6
BLAKE2b-256 b9cf743c7422d3bc5560b7ae137087bfdbaba078ae3fb33cfb38768cf462e5dc

See more details on using hashes here.

File details

Details for the file pvoutput_ocf-0.1.39-py3-none-any.whl.

File metadata

  • Download URL: pvoutput_ocf-0.1.39-py3-none-any.whl
  • Upload date:
  • Size: 48.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pvoutput_ocf-0.1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 a038e3166b40411c5306e3d4acc7997410e2feb0cf7230c0c5bcae1896733aa1
MD5 584410f3a01680b8ac6895fcd575927f
BLAKE2b-256 7986b5acaa2ea0d94940158121718549e93be9537a04efa4c81cbc75e60b93e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page