Skip to main content

A package to talk to growatt server

Project description

Growatt Server

Package to retrieve PV information form the growatt server.

Special thanks to Sjoerd Langkemper who has provided a strong base to start off from https://github.com/Sjord/growatt_api_client These projects may merge in the future since they are simmilar in code and function.

Usage

import growattServer

api = growattServer.GrowattApi()
login_response = api.login(<username>, <password>)
#Get a list of growatt plants.
print(api.plant_list(login_response['userId']))

Methods and Variables

Methods

Any methods that may be useful.

api.login(username, password) Log into the growatt api. This must be done before making any request. after this you will be logged in. you will want to capture the response to get the userId variable.

api.plant_list(user_id) Get a list of plants registered to your account.

api.plant_info(plant_id) Get info for specified plant.

api.plant_detail(plant_id, timespan<1=day, 2=month>, date) Get details of a specific plant.

api.inverter_list(plant_id) Get a list of inverters in specified plant. (May be deprecated in the future, since it gets all devices. Use device_list instead)

api.device_list(plant_id) Get a list of devices in specified plant.

api.inverter_data(inverter_id, date) Get some basic data of a specific date for the inverter.

api.inverter_detail(inverter_id) Get detailed data on inverter.

api.tlx_data(tlx_id, date) Get some basic data of a specific date for the tlx type inverter.

api.tlx_detail(tlx_id) Get detailed data on a tlx type inverter.

api.storage_detail(storage_id) Get detailed data on storage (battery).

api.storage_params(storage_id) Get a ton of info on storage (More info, more convoluted).

api.storage_energy_overview(plant_id, storage_id) Get the information you see in the "Generation overview".

Variables

Some variables you may want to set.

api.server_url The growatt server url, default: 'http://server.growatt.com/'

Note

This is based on the endpoints used on the mobile app and could be changed without notice.

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

growattServer-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

growattServer-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file growattServer-0.1.0.tar.gz.

File metadata

  • Download URL: growattServer-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for growattServer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1feef4a9ded1b4064193a12534e9400551b2ba565c8096d3005485052bf93b0
MD5 45727f211bd5edd60c8ea4b3732c9743
BLAKE2b-256 43d506a760e0556e819bd7736ddbe2ad193e13d4ef84b17c2f973079c3af2f2e

See more details on using hashes here.

File details

Details for the file growattServer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: growattServer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for growattServer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52499f1abc908920ddef32fed35940aa1927c101ebfcf9f7a5eedc803bb6fdbd
MD5 25351eeb5b9e614e10d944ca2284bbe6
BLAKE2b-256 f54a9bd307281ed78861a200c3d33cc5ff3c3c66563d96476a0ab48089c74f10

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