{"id":19451827,"url":"https://github.com/skoef/growatt","last_synced_at":"2025-04-25T04:30:31.713Z","repository":{"id":139185837,"uuid":"218053440","full_name":"skoef/growatt","owner":"skoef","description":"Growatt API Golang client","archived":false,"fork":false,"pushed_at":"2023-01-02T13:55:05.000Z","size":12,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T15:52:30.840Z","etag":null,"topics":["golang","growatt"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skoef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-28T13:30:55.000Z","updated_at":"2023-02-07T08:03:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"14dc7b25-ad19-4bf3-b5c3-d3c0d35b6db4","html_url":"https://github.com/skoef/growatt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoef%2Fgrowatt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoef%2Fgrowatt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoef%2Fgrowatt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoef%2Fgrowatt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skoef","download_url":"https://codeload.github.com/skoef/growatt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250754543,"owners_count":21481835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","growatt"],"created_at":"2024-11-10T16:43:10.926Z","updated_at":"2025-04-25T04:30:31.355Z","avatar_url":"https://github.com/skoef.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Growatt API Golang client\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/skoef/growatt)](https://goreportcard.com/report/github.com/skoef/growatt) [![Documentation](https://godoc.org/github.com/skoef/growatt?status.svg)](http://godoc.org/github.com/skoef/growatt) [![Building](https://travis-ci.com/skoef/growatt.svg?branch=master)](https://travis-ci.com/skoef/growatt/)\n\nThis is a simple golang library using the rather quirky Growatt API on https://server.growatt.com. This libary is inspired by indykoning's [PyPi_GrowattServer](https://github.com/indykoning/PyPi_GrowattServer) and Sjord's [growatt_api_client](https://github.com/Sjord/growatt_api_client). It tries to normalize objects as much as possible, so API output is parsed and then converted into defined types within the library.\n\nFor simplicity sake, currently only several API endpoints are supported. If you miss specific features in the library, please open an issue!\n\n## Example usage\nAn example for using the API client is shown below, where the credentials are those you would login to https://server.growatt.com/ with:\n\n```golang\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/skoef/growatt\"\n)\n\nfunc main() {\n  api := growatt.NewAPI(\"johndoe\", \"s3cr3t\")\n  plants, err := api.GetPlantList()\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Printf(\"found %d plants in your Growatt account\\n\", len(plants))\n\n  for _, plant := range plants {\n    inverters, err := api.GetPlantInverterList(plant.ID)\n    if err != nil {\n      continue\n    }\n\n    fmt.Printf(\"plant %d has %d inverters\\n\", plant.ID, len(inverters))\n    for _, inverter := range inverters {\n      fmt.Printf(\"inverter %s is generating %0.2fW\\n\", inverter.Serial, inverter.CurrentPower)\n    }\n    fmt.Printf(\"the plant's total combined power is %0.2fW\\n\", plant.CurrentPower)\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoef%2Fgrowatt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskoef%2Fgrowatt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoef%2Fgrowatt/lists"}