models

package
v0.0.0-...-7c74551 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcInfo

type AcInfo struct {
	Current   float32
	Voltage   float32
	Frequency float32
}

type BmsInfo

type BmsInfo struct {
	ChargeCurrent    float32
	ChargeVoltage    float32
	DischargeCurrent float32
	DischargeVoltage float32

	CurrentVoltage float32

	CapacityTotal float32
	CapacityLeft  float32
}

type Config

type Config struct {
	Connection string
}

type Data

type Data struct {
	Pv   PvInfo
	Bms  BmsInfo
	Grid AcInfo

	Output OutputInfo

	GeneralInfo
}

type GeneralInfo

type GeneralInfo struct {
	InverterMode string

	OutputPriority string
	ChargePriority string

	SccChargeOn bool
	SccVoltage  float32

	BusVoltage float32

	BatteryDischargeVoltage float32
	BatteryChargeVoltage    float32
	BatteryFloatVoltage     float32
	BatteryCutoffVoltage    float32

	PvMaxChargeCurrent   float32
	GridMaxChargeCurrent float32

	HeatsinkTemperature float32
}

type OutputInfo

type OutputInfo struct {
	AcInfo
	Status  bool
	Percent float32
}

type PvInfo

type PvInfo struct {
	Current float32
	Voltage float32
}

Jump to

Keyboard shortcuts

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