aristocratos / bpytop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.2k stars 399 forks source link

[REQUEST] Support for APC UPS through apcupsd #376

Open HoodedDeath opened 2 years ago

HoodedDeath commented 2 years ago

Is your feature request related to a problem? Please describe. With bpytop not recognizing an APC UPS as a power supply, it doesn't normally show the battery meter when using it. The only times it shows the battery meter is when using something like a wireless controller.

Describe the solution you'd like Some way for bptop to recognize apcupsd and use that for battery reading. Possibly also a 'preferred_battery' option in the config to allow asigning what battery to show on meter (if multiple exist).

Additional context To my knowledge, apcupsd only reports battery info through the apcaccess command. I'm unaware of any files the daemon may use to store battery info temporarily. I have two systems running on an APC UPS (one through USB and one through network connection) if testing is needed and I plan to try to figure out an implimentation myself.