Documentation ¶
Overview ¶
Package renogy implements the renogy charge controller sensor for DC batteries. Tested with renogy wanderer model Wanderer Manual: https://www.renogy.com/content/RNG-CTRL-WND30-LI/WND30-LI-Manual.pdf LCD Wanderer Manual: https://ca.renogy.com/content/manual/RNG-CTRL-WND10-Manual.pdf
Index ¶
- type Config
- type Renogy
- func (r *Renogy) Close(ctx context.Context) error
- func (r *Renogy) Current(ctx context.Context, extra map[string]interface{}) (float64, bool, error)
- func (r *Renogy) Power(ctx context.Context, extra map[string]interface{}) (float64, error)
- func (r *Renogy) Readings(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error)
- func (r *Renogy) Voltage(ctx context.Context, extra map[string]interface{}) (float64, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { resource.TriviallyValidateConfig Path string `json:"serial_path,omitempty"` Baud int `json:"serial_baud_rate,omitempty"` ModbusID byte `json:"modbus_id,omitempty"` }
Config is used for converting config attributes.
type Renogy ¶
type Renogy struct { resource.Named resource.AlwaysRebuild // contains filtered or unexported fields }
Renogy is a serial charge controller.
func (*Renogy) Current ¶
Current returns the load's current and boolean isAC. If the controller does not have a load input, will return zero.
func (*Renogy) Power ¶
Power returns the power of the load. If the controller does not have a load input, will return zero.
Click to show internal directories.
Click to hide internal directories.