Skip to main content

Growatt API for photovoltaic statistics

Project description

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'

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

growatt-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

growatt-0.0.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file growatt-0.0.4.tar.gz.

File metadata

  • Download URL: growatt-0.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for growatt-0.0.4.tar.gz
Algorithm Hash digest
SHA256 877449cc8d0427364b7182479aa291ec27268dd0e2afb9f063399eec7498aebc
MD5 90d27f0e30e678a3ef0a73dcdc24b604
BLAKE2b-256 7800ed5be584b5c58128dd2450341b9021b62bb65af1ca05e671c4230003dad7

See more details on using hashes here.

File details

Details for the file growatt-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: growatt-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for growatt-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 12971bf44cec475405ae2757cb834eedbb3e21e0e5a3106504fdc6e1fa906df2
MD5 3805fcdd1523d9d9a16057901b31d97c
BLAKE2b-256 ffb321fac4a89cd6fbb716dfc371aab0a31986e59557d876dc95e82697ead831

See more details on using hashes here.

Supported by

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