Skip to content
Aayush9029Public

About

see why your Macs battery sucks

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watts

watts

Figure out what is actually draining your MacBook battery

Release License

Install

brew install aayush9029/tap/watts

Or tap first:

brew tap aayush9029/tap
brew install watts

Usage

sudo watts install --user "$USER"     # install + start boot daemon
sudo watts status                     # service state + latest sample
sudo watts tail                       # follow collector logs
sudo watts once                       # run one foreground sample
sudo watts restart                    # reload daemon after updating

How it works

  1. Installs a root launchd daemon that samples every 30 seconds
  2. Collects data from pmset, ioreg, powermetrics, and hardware sensors
  3. Stores structured SQLite rows for battery state, power, thermals, fan speed, and top processes
  4. Query the database directly to chart trends and find culprits

License

MIT

About

see why your Macs battery sucks

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages