Coder Social home page Coder Social logo

falknerdominik / pvoutput Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openclimatefix/pvoutput

0.0 0.0 0.0 5.15 MB

Fork to fix a single line of ....Python code for downloading PV data from PVOutput.org

License: Apache License 2.0

Python 100.00%

pvoutput's Introduction

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

Register with PVOutput.org

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

If you don't have a 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

PVOutput.org gives you 60 API requests per hour. Per 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 quota for a year to 300 requests per hour.

Paid

To get more historical data, you can pay $600 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 this dones include the /service/r2 part of the URL) For example: data_service_url: https://pvoutput.org/

Install pvoutput Python library

`pip install -e git+https://github.com/openclimatefix/pvoutput.git@main#egg=pvoutput-ocf

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!

pvoutput's People

Contributors

allcontributors[bot] avatar antsthebul avatar devsjc avatar gabrieltseng avatar jackkelly avatar jacobbieker avatar jamietaylor-tuos avatar peterdudfield avatar pre-commit-ci[bot] avatar rachtsingh avatar ssmssam avatar vnshanmukh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.