energy-tracker
energy-tracker copied to clipboard
A simple script (meant to be run via cron) that tracks your Mac laptop's energy usage in watt hours.
Hi! Any solutions for Mac mini? `ioreg -rw0 -c AppleSmartBattery | grep BatteryData | grep -o '"AdapterPower"=[0-9]*' | cut -c 16- | xargs -I % lldb --batch -o " print/f...
The current command did not store the output. I used tail -n 1 to get the number from lldb, and awk to remove the `(int)`. Additionally, I check if the...
I am using a M2 13' MacBook Pro. When I grab the `AdaptorPower` number, it is hovering around `935466485`. The conversion to watts is `0.0000231368267`, which kinda means it uses...