Is there a way to put UPS monitoring in HTOP ?
by tuxthegreat from LinuxQuestions.org on (#5RVXJ)
I was wondering if I could somehow pipe the battery % info from my UPS into HTOP battery section. Here is my UPS info Code:root@odroid:~# apcaccess
APC : 001,036,0878
DATE : 2021-11-13 03:56:02 +0100
HOSTNAME : odroid
VERSION : 3.14.12 (29 March 2014) debian
UPSNAME : donglebongle
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2021-11-12 07:10:03 +0100
MODEL : Back-UPS RS 1500G
STATUS : ONLINE
LINEV : 229.0 Volts
LOADPCT : 21.0 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 18.6 Minutes
MBATTCHG : 30 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
SENSE : High
LOTRANS : 176.0 Volts
HITRANS : 288.0 Volts
ALARMDEL : 30 Seconds
BATTV : 27.2 Volts
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x05000008
SERIALNO : 3B1316X17705
BATTDATE : 2019-05-30
NOMINV : 230 Volts
NOMBATTV : 24.0 Volts
NOMPOWER : 865 Watts
FIRMWARE : 878.L4 .I USB FW:L4
END APC : 2021-11-13 03:56:12 +0100
APC : 001,036,0878
DATE : 2021-11-13 03:56:02 +0100
HOSTNAME : odroid
VERSION : 3.14.12 (29 March 2014) debian
UPSNAME : donglebongle
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2021-11-12 07:10:03 +0100
MODEL : Back-UPS RS 1500G
STATUS : ONLINE
LINEV : 229.0 Volts
LOADPCT : 21.0 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 18.6 Minutes
MBATTCHG : 30 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
SENSE : High
LOTRANS : 176.0 Volts
HITRANS : 288.0 Volts
ALARMDEL : 30 Seconds
BATTV : 27.2 Volts
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x05000008
SERIALNO : 3B1316X17705
BATTDATE : 2019-05-30
NOMINV : 230 Volts
NOMBATTV : 24.0 Volts
NOMPOWER : 865 Watts
FIRMWARE : 878.L4 .I USB FW:L4
END APC : 2021-11-13 03:56:12 +0100