This Kotlin / Java library logs in to server.growatt.com and retrieves data on solar panels. This library is a port of Sjord's Python Growatt API: https://github.com/Sjord/growatt_api_client
Create a new GrowattApi instance by logging in, then retrieve a list of plants and request details of these plants.
val api = GrowattApi.productionApiLogin("username", "password")
val data = api2.userEnergyData()
data.todayValueInKwh // do something awesome with the data
This library uses an official API from Growatt, reverse engineered from the Growatt mobile app. Credits go to Sjord: https://github.com/Sjord