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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址