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).
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.0.2.tar.gz
.
File metadata
- Download URL: growattServer-0.0.2.tar.gz
- Upload date:
- Size: 3.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a314526f2ac0a96bb2f20c2a035128feeeb035b37328c16d7c975fe5825fa0c |
|
MD5 | 8b347bbdd2d687bccdd1ee3f78d84c95 |
|
BLAKE2b-256 | c47952d0b63ce2fda7e2d2d455d6f7be7d1f8853dea3a5baf8b871495df9146b |
File details
Details for the file growattServer-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: growattServer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 757bb113722695e0dc2a07f060dff23a2b1cf8ef30125ce82eb762a2f5c7c490 |
|
MD5 | da0919328da846f52d407c144bc3225c |
|
BLAKE2b-256 | 3d3e30f1e0318d67fe76f5059a19c53f7a9931dda492306d8f077f9319211e73 |