Documentation ¶
Index ¶
Constants ¶
View Source
const ( SettingsPath = "settings" MeasurementsPath = "measurements" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChargingCurrent ¶
type ChargingCurrent struct {
Value float64
}
ChargingCurrent is Settings.Values.ChargingCurrent
type ChargingStatus ¶
type ChargingStatus struct {
Charging bool
}
ChargingStatus is Settings.Values.ChargingStatus
type DeviceMetadata ¶
type DeviceMetadata struct {
Password string
}
DeviceMetadata is Settings.Values.DeviceMetadata
type Measurements ¶
type Measurements struct { Message string `json:"omitempty"` // api message if not ok ChargingEnergy float64 ChargingEnergyOverAll float64 ChargingPower float64 ChargingPowerPhase [3]float64 ChargingCurrentPhase [3]float64 Frequency float64 }
Measurements is the /api/measurements response
type Settings ¶
type Settings struct { Message string `json:",omitempty"` // api message if not ok Info *Info `json:",omitempty"` Values Values }
Settings is the /api/settings request/response
type Values ¶
type Values struct { ChargingStatus *ChargingStatus `json:",omitempty"` ChargingCurrent *ChargingCurrent `json:",omitempty"` DeviceMetadata DeviceMetadata }
Values is Settings.Values
Click to show internal directories.
Click to hide internal directories.