hp2430n

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

hp2430n

Solisto HP2430N 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 {
	SOC         uint8
	Volts       float32
	Amps        float32
	Temp        uint8 // deg C
	ChargeState string
}

type Controller

type Controller struct {
	Temp   uint8    // deg C
	Alarms []string // faults and warnings
}

type Daily

type Daily struct {
	BattMinVolts      float32
	BattMaxVolts      float32
	ChargeMaxAmps     float32
	DischargeMaxAmps  float32
	ChargeMaxWatts    uint16
	DischargeMaxWatts uint16
	ChargeAmpHrs      uint16
	DischargeAmpHrs   uint16
	GenPowerWatts     uint16
	ConPowerWatts     uint16
}

type Historical

type Historical struct {
	OpDays          uint16
	OverDischarges  uint16
	FullCharges     uint16
	ChargeAmpHrs    uint32
	DischargeAmpHrs uint32
	GenPowerWatts   uint32
	ConPowerWatts   uint32
}

type Hp2430n

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

func (*Hp2430n) Run

func (h *Hp2430n) Run(i *dean.Injector)

func (*Hp2430n) ServeHTTP

func (h *Hp2430n) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Hp2430n) Subscribers

func (h *Hp2430n) Subscribers() dean.Subscribers

type LoadInfo

type LoadInfo struct {
	Volts      float32
	Amps       float32
	Status     bool
	Brightness uint8
}

type Solar

type Solar struct {
	Volts float32
	Amps  float32
}

type System

type System struct {
	MaxVolts      uint8
	ChargeAmps    uint8
	DischargeAmps uint8
	ProductType   uint8
	Model         string
	SWVersion     string
	HWVersion     string
	Serial        string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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