Documentation ¶
Index ¶
- func Discover() (string, error)
- func SetLogger(l envoylogger)
- type Envoy
- func (e *Envoy) Close()
- func (e *Envoy) Home() (*home, error)
- func (e *Envoy) Host() string
- func (e *Envoy) Info() (*EnvoyInfo, error)
- func (e *Envoy) Inventory() (*[]inventory, error)
- func (e *Envoy) Inverters() (*[]Inverter, error)
- func (e *Envoy) Now() (float64, float64, float64, error)
- func (e *Envoy) Password(p string)
- func (e *Envoy) Production() (*production, error)
- func (e *Envoy) Rediscover() error
- func (e *Envoy) SystemMax() (uint64, error)
- func (e *Envoy) Today() (float64, float64, float64, error)
- type EnvoyInfo
- type Inverter
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Envoy ¶
type Envoy struct {
// contains filtered or unexported fields
}
func (*Envoy) Production ¶
func (*Envoy) Rediscover ¶
type EnvoyInfo ¶
type EnvoyInfo struct { Device struct { Text string `xml:",chardata"` Sn string `xml:"sn"` Pn string `xml:"pn"` Software string `xml:"software"` Euaid string `xml:"euaid"` Seqnum string `xml:"seqnum"` Apiver string `xml:"apiver"` Imeter string `xml:"imeter"` } `xml:"device"` BuildInfo struct { Text string `xml:",chardata"` BuildTimeGmt string `xml:"build_time_gmt"` BuildID string `xml:"build_id"` } `xml:"build_info"` XMLName xml.Name `xml:"envoy_info"` Text string `xml:",chardata"` Time string `xml:"time"` Package []struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Pn string `xml:"pn"` Version string `xml:"version"` Build string `xml:"build"` } `xml:"package"` }
type Inverter ¶
type Inverter struct { SerialNumber string `json:"serialNumber"` LastReportDate uint64 `json:"lastReportDate"` DevType uint8 `json:"devType"` LastReportWatts int16 `json:"lastReportWatts"` MaxReportWatts uint16 `json:"maxReportWatts"` }
requires authentication http://envoy.local/api/v1/production/inverters uint8 for Watts might be good enough, but mine are hitting 246...
Click to show internal directories.
Click to hide internal directories.