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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file growattServer-0.1.1.tar.gz
.
File metadata
- Download URL: growattServer-0.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b95b07ca35033a5ab4b15aa2c9b7f2a7131b4469bc85b12bbfb3bbf868f7dfa1 |
|
MD5 | 953c27d9a92dc7d15236130cb7f12cd6 |
|
BLAKE2b-256 | 1158d992a8129389244b6bc0f27df4568670e01c5185ad2b57e3bdd28dc63fa9 |
File details
Details for the file growattServer-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: growattServer-0.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f6539a1e506c0c3ff11f60798c77a2c1ba808fae2a7c65f9642463d2c604df |
|
MD5 | 5fe40b505faf8c64dd157865c98a8124 |
|
BLAKE2b-256 | 8685513de4d6271164e8e473c4eae68dc735933aba01504dfa3507a581afe049 |