GitXplorerGitXplorer
e

solaredge-go

public
10 stars
7 forks
1 issues

Commits

List of commits on branch master.
Verified
1e6fa6d49d0209e60a4b61ce93c212bc5801eb34

Change List key to site since API updated

eelliott-davis committed 2 years ago
Verified
6e60ef4b57bdb919d2ca91eb616aa2605a7ee807

Merge pull request #1 from IngmarStein/master

eelliott-davis committed 5 years ago
Verified
f39c2cd6a9154ccf98f74bacf58332f74cea6b22

Fix "meters" parameter for energy and power details.

IIngmarStein committed 5 years ago
Verified
f01cea9fd3f00729542f722c2f61f7510a395e56

Fix example in README.

IIngmarStein committed 5 years ago
Unverified
33471e4b77c27593b77ef5da7a891acb876e1a87

initial commit with minimal site api

committed 5 years ago

README

The README file for this repository.

Golang SolarEdge Monitoring API

Go client for the SolarEdge monitoring API

Usage

package main

import (
    "fmt"
    "os"

    "github.com/elliott-davis/solaredge-go/solaredge"
)

func main() {
    token := os.Getenv("SOLAREDGE_AUTH_TOKEN")
    // You may optionally include your own http client
    client := solaredge.NewClient(nil, token)
    site, err := client.Site.List(&solaredge.ListOptions{Page: 2, PerPage: 1})
    if err != nil {
    	panic(err)
    }
    fmt.Println(site)
}