GithubHelp home page GithubHelp logo

skoef / growatt_api_client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sjord/growatt_api_client

0.0 0.0 0.0 24 KB

This Python script logs in to server.growatt.com and retrieves data on solar panels.

License: Mozilla Public License 2.0

Python 100.00%

growatt_api_client's Introduction

Growatt API client

This Python script logs in to server.growatt.com and retrieves data on solar panels.

Usage

Create a new GrowattApi instance, log in, retrieve a list of plants and request details of these plants. An example can be found in growatt/__main__.py, and can be run using python -m growatt.

API

Currently this package uses an API that I reverse engineered the API from the Growatt mobile app. This is more of an internal API that can be changed by Growatt if they want.

There is also an API specification for a more standard API, but that is currently not used by this package.

Getting started

Run the following commands to set up a new virtualenv and run the growatt API example:

git clone https://github.com/Sjord/growatt_api_client
cd growatt_api_client
python3 -m venv venv                # create a new virtual environment in the directory 'venv'
. venv/bin/activate                 # activate this environment
./setup.py install                  # install all dependencies
python -m growatt username password # retrieve data for today

After setting up like this, you can just run the python from the virtualenv each time you want to run it:

venv/bin/python -m growatt username password

If you want to create your own client, start from growatt/__main__.py. Copy it and change it to your liking, and then run it like this:

venv/bin/python myscript.py username password

growatt_api_client's People

Contributors

sjord 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.