xbar-plugins icon indicating copy to clipboard operation
xbar-plugins copied to clipboard

Watt Meter: KeyError: 'sppower_current_amperage'

Open ssbarnea opened this issue 5 years ago • 2 comments

imac:~ ssbarnea$ /Users/ssbarnea/Library/Mobile\ Documents/com~apple~CloudDocs/configs/bitbar/watt-meter.20s.py Traceback (most recent call last): File "/Users/ssbarnea/Library/Mobile Documents/com~apple~CloudDocs/configs/bitbar/watt-meter.20s.py", line 78, in main() File "/Users/ssbarnea/Library/Mobile Documents/com~apple~CloudDocs/configs/bitbar/watt-meter.20s.py", line 65, in main machine = parse_system_profiler() File "/Users/ssbarnea/Library/Mobile Documents/com~apple~CloudDocs/configs/bitbar/watt-meter.20s.py", line 43, in parse_system_profiler "current_amperage": int(spbattery_info['sppower_current_amperage']), KeyError: 'sppower_current_amperage' imac:~ ssbarnea$

FAO: (@eripa)

ssbarnea avatar Feb 06 '19 10:02 ssbarnea

Also getting this issue on a 2019 MacBook pro with Monteray.

matty0x74 avatar Apr 12 '22 02:04 matty0x74

@eripa this plugin no longer works on the latest macOS, where output format of system profiler has changed and Apple silicon CPUs are reported in a different way.

Details at: matryer/xbar#849

gingerbeardman avatar Sep 17 '22 13:09 gingerbeardman