Documentation ¶
Overview ¶
Package apc provides utilities for communicating with APC Smart-UPS battery backups
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status struct { // ReplaceBattery indicates the battery is spent if true ReplaceBattery bool `json:"replaceBattery"` // LowBattery indicates the battery will run out soon LowBattery bool `json:"lowBattery"` // Overloaded indicates the battery backup is subject to excess load Overloaded bool `json:"overloaded"` // OnBattery indicates that the mains connection is disrupted OnBattery bool `json:"onBattery"` // OnMains indicates the system is on mains power OnMains bool `json:"onMains"` // SmartBoost indicates APC's "SmartBoost" mode is engaged SmartBoost bool `json:"smartBoost"` // SmartTrim indicates APC's "SmartTrim" is engaged SmartTrim bool `json:"smartTrim"` // RunTimeCalibrating indicates the remaining operation time on battery is currently beign calibrated RunTimeCalibrating bool `json:"runtimeCalibrating"` }
Status is a decoded version of the UPS' status bitfield
type UPS ¶
type UPS struct {
*comm.RemoteDevice
}
UPS represents an uninterruptible power supply
func (*UPS) Temperature ¶
Temperature is the internal temperature of the battery backup
Click to show internal directories.
Click to hide internal directories.