ps30m

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: BSD-3-Clause Imports: 8 Imported by: 1

README

ps30m

Morningstar PS30M Charge Controller Device

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 {
	Volts      float32
	Amps       float32
	SenseVolts float32
	SlowVolts  float32
	SlowAmps   float32
}

type Controller

type Controller struct {
	Amps float32
}

type LoadInfo

type LoadInfo struct {
	Volts float32
	Amps  float32
}

type Ps30m

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

func (*Ps30m) Run

func (p *Ps30m) Run(i *dean.Injector)

func (*Ps30m) ServeHTTP

func (p *Ps30m) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Ps30m) Subscribers

func (p *Ps30m) Subscribers() dean.Subscribers

type Solar

type Solar struct {
	Volts float32
	Amps  float32
}

type System

type System struct {
	SWVersion     string
	BattVoltMulti uint16
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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