sol

package module
v0.0.0-...-23530f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

README

solNew

Skeleton for new charge controller comms

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id, model, name string) dean.Thinger

Types

type Battery

type Battery struct {
	Remaining float32
	Volts     float32
	Amps      float32
}

type LoadInfo

type LoadInfo struct {
	Volts float32
	Amps  float32
}

type Sol

type Sol struct {
	*device.Device
	*modbus.Modbus `json:"-"`
	Status         string
	Battery        Battery
	LoadInfo       LoadInfo
	Solar          Solar
	System         System
}

func (*Sol) ServeHTTP

func (s *Sol) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Sol) Subscribers

func (s *Sol) Subscribers() dean.Subscribers

type Solar

type Solar struct {
	Volts float32
	Amps  float32
}

type System

type System struct {
	Config uint16
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL