Giter VIP home page Giter VIP logo

solaredge2graphite's Introduction

solaredge2graphite

Small Python script to retrieve inverter readings for a SolarEdge PV array from the SolarEdge monitoring portal and send them to a Graphite metrics storage server.

Usage

You will need an API key and your site ID from the SolarEdge monitoring portal (under Admin -> Site Access when viewed in a desktop web browser; if this is not visible, contact your installer).

Supply your Graphite host, the desired prefix, your API key and site ID as arguments or edit the script and set them as defaults.

Run the script every 15 minutes as a scheduled task. (Don't run it more frequently than that, as the SolarEdge monitoring portal only updates at that interval.) (You'll probably want to adjust the storage schema for these metrics in Graphite too.)

As PV arrays don't tend to generate much energy at night, the --null option skips retrieving the current readings and simply sends zero or 'unknown' values to Graphite, avoiding unnecessary API calls. This is to avoid hitting the API call limit under heavy usage but will probably not be required by most users and is entirely optional.

To test retrieval of current readings without updating Graphite, use the --debug option to show the values returned. In normal use, the script does not produce any output unless an error occurs.

Limitations

The script only retrieves the current power and lifetime energy outputs. It does not handle stored energy systems such as batteries, for which there are a number of other API calls that could be added.

Dependencies

Use PIP to install the following Python libraries from PYPI:

  • solaredge
  • graphyte

solaredge2graphite needs Python 3.2+, only because the solaredge API library requires it (for functools).

Author

Ade Rixon, http://www.big-bubbles.org.uk/

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.