+
Skip to content

pb82/sunny

Repository files navigation

pipeline status coverage report godoc Go Report Card

Sunny

Sunny is a library to get actual data from SMA inverters and energy meters via Ethernet (Speedwire).

Note: SMA & Speedwire are registered trademarks by SMA Solar Technology AG

An example application can be found here.

Usage

The password in the following function is the one of the user account which is by default "0000".

To discover reachable devices call:

devices, err := sunny.DiscoverDevices(password)

This will return a list of device instances that can be used for additional communication.

To directly connect to a device use:

device, err := sunny.NewDevice(address, password)

Where address is the IP address of the device.

To get all current values from a device use GetValues():

values, err := device.GetValues()

values will be a map[string]interface{} with the values of the device.

The values differs from device to device:

Note: The data from energy meters are broadcasted only once a second.

Speedwire Protocol

The base protocol is implemented based on the information provided SMA in the documentation of the Energy Meter Protocol and the Speedwire device discovery.

For the core functionality of the protocol are no public information available. Because the missing information the main protocol structure is based on own packet analyses and some existing projects:

About

Mirror of https://gitlab.com/bboehmke/sunny

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载