site

package
v0.0.0-...-f385b4b Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Healthy() bool
	Loadpoints() []loadpoint.API
	Vehicles() Vehicles

	// GetCircuit returns the assigned circuit
	GetCircuit() api.Circuit

	// Meta
	GetTitle() string
	SetTitle(string)

	// Config
	GetGridMeterRef() string
	SetGridMeterRef(string)
	GetPVMeterRefs() []string
	SetPVMeterRefs([]string)
	GetBatteryMeterRefs() []string
	SetBatteryMeterRefs([]string)

	GetPrioritySoc() float64
	SetPrioritySoc(float64) error
	GetBufferSoc() float64
	SetBufferSoc(float64) error
	GetBufferStartSoc() float64
	SetBufferStartSoc(float64) error
	GetMaxGridSupplyWhileBatteryCharging() float64
	SetMaxGridSupplyWhileBatteryCharging(float64) error

	GetResidualPower() float64
	SetResidualPower(float64) error

	// GetTariff returns the respective tariff
	GetTariff(string) api.Tariff

	GetBatteryDischargeControl() bool
	SetBatteryDischargeControl(bool) error
}

API is the external site API

type Vehicles

type Vehicles interface {
	// Settings returns the list of vehicle adapters
	Settings() []vehicle.API

	// ByName returns a single vehicle adapter by name
	ByName(string) (vehicle.API, error)

	// All returns the list of vehicle instances
	Instances() []api.Vehicle
}

Jump to

Keyboard shortcuts

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