Network UPS Tools (NUT) client module for Go.
View inside example directory.
- Dial(address)
- StartTLS(tlsconfig)
- Auth("login","password")
- Login("upsname")
- Close()
- GetUpsModel()
- Logout()
- IsOnline()
- IsOnBattery()
- IsLowBattery()
- BatteryCharge()
- BatteryChargeLow()
- BatteryChargeWarning()
- BatteryChargeRestart()
- BatteryRuntime()
- BatteryRuntimeLow()
- BatteryRuntimeRestart()
- GetServerInfo()
- GetServerVersion()
- UpsLoad()
- UpsTemperature()
- UpsApparentPower()
- UpsActivePower()
- InputVoltage()
- InputCurrent()
- OutputVoltage()
- OutputCurrent()
- OutputFrequency()
- InputFrequency()
- GetUpsModel()
- GetUpsSerial()
- GetServerUpsList()
- GetUpsVars()
- GetData(varname)
Released under the MIT license. See LICENSE.md
file for details.