Skip to main content

A package to talk to growatt server

Project description

Growatt Server

Package to retrieve PV information form the growatt server.

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.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.0.4.tar.gz (3.1 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.0.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: growattServer-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for growattServer-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e8c48407567b5e51beb5e04ff39a8c9c3f92aecb9264f3039d662b5a8fdcb92b
MD5 af4238ebd79424fb9aaabac807032b02
BLAKE2b-256 60e799c625b1474415cc5058dafcc182c413b2b844ccb303e830e7f553382b9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: growattServer-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for growattServer-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8aeacd79818f466136d062f92c2077137510ea8b2a1d46001b5eb06a7120e9dd
MD5 9fb0bf6df7ee143d36f8dae095eba9b7
BLAKE2b-256 2e639217d60f98f3ab99a568dbb911346a0de17ae38e7324645ec85224334d6a

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