Skip to content

This Python script logs in to server.growatt.com and retrieves data on solar panels.

License

Notifications You must be signed in to change notification settings

timvancann/growatt_api_client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Growatt API client

This Python 3 script logs in to server.growatt.com and retrieves data on solar panels.

Example

You can get your plant info with the following snippet:

import datetime
from growat_api.growatt_api import GrowattApi, Timespan

username = ...
password = ...


api = GrowattApi()
login_res = api.login(username, password)
user_id = login_res['userId']
plant_info = api.plant_list(user_id)
print(plant_info)

plant_id = plant_info['data'][0]['plantId']
plant_detail = api.plant_detail(plant_id, Timespan.day, datetime.date.today())
print(plant_detail)

Todays total energy

To get todays total energy across all plants in kWh you can use

from growat_api.growatt_api import todays_energy_total
todays_energy_total(username='...', password='...')

About

This Python script logs in to server.growatt.com and retrieves data on solar panels.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%