Real-time battery charging speed monitor for macOS
Project description
mac-battery-monitor
Real-time battery charging speed monitor for macOS, showing current draw (mA), power (W), charge level, temperature, health, and estimated time to full/empty.
Install
pip install mac-battery-monitor
Or from source:
git clone https://github.com/yeahea-hoque-shoumik/mac-battery-monitor.git
cd mac-battery-monitor
pip install .
Usage
battery-monitor # default 1s refresh
battery-monitor -i 0.5 # custom refresh interval (seconds)
battery-monitor --log # also log readings to battery_log.csv
Requirements
- macOS only (uses
ioregto readAppleSmartBattery) - Python 3.10+
- No third-party dependencies
Output
──────────────────────────────────────────────────────
⚡ macOS Battery Monitor 2026-03-23 12:00:00
──────────────────────────────────────────────────────
Charge level [████████████████░░░░░░░░░░░░░░] 54.3%
Current rate +1842 mA charging
Power draw 20.34 W
Voltage 11043 mV
Temperature 34.5 °C
Battery health 91.2% (8300/9100 mAh)
Cycle count 142
ETA 1h 12m until full
Plugged in: Yes Charging: Yes Full: No
Refresh every 1.0s | No logging | Ctrl-C to quit
──────────────────────────────────────────────────────
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mac_battery_monitor-0.1.0.tar.gz.
File metadata
- Download URL: mac_battery_monitor-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
713bb731325a0222a88281eb0513f62b369ddfa2a1e402d653cc4fc41037b3f4
|
|
| MD5 |
d147733432952db868d2175b570e7fac
|
|
| BLAKE2b-256 |
f7728b2c88b779807a802b3d03b2898d87bb3945550f90bc0ef3efdf46133e87
|
File details
Details for the file mac_battery_monitor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mac_battery_monitor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
831f7ff400ebfb71a768bb74c72f4ab71f87d115bd4e1bf549a940ce26b0793b
|
|
| MD5 |
b0cdf1ce8f712790dab06c66ef1a0263
|
|
| BLAKE2b-256 |
972cabfbb1afc504f74ca3de5ef729f76c8d15b4281297c65fe3e332f8a425ba
|