| Crates.io | nothing-ear |
| lib.rs | nothing-ear |
| version | 0.1.3 |
| created_at | 2026-01-20 12:09:17.752233+00 |
| updated_at | 2026-01-20 12:09:17.752233+00 |
| description | Command-line tool to check battery levels of Nothing Ear wireless earbuds via Bluetooth |
| homepage | https://github.com/pedrordgs/nothing-ear |
| repository | https://github.com/pedrordgs/nothing-ear |
| max_upload_size | |
| id | 2056457 |
| size | 185,581 |
A command-line tool to check battery levels of Nothing Ear wireless earbuds via Bluetooth.

Install directly from crates.io:
cargo install nothing-ear
This will download and compile the latest version and install it to ~/.cargo/bin/nothing-ear.
Download and install the pre-built Debian package:
# Download the latest release from GitHub Releases
wget https://github.com/pedrordgs/nothing-ear/releases/latest/download/nothing-ear_0.1.3_x86_64-unknown-linux-gnu.deb
# Install the package
sudo dpkg -i nothing-ear_0.1.3_x86_64-unknown-linux-gnu.deb
Ensure you have Rust 1.70+ installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Clone and build:
git clone https://github.com/pedrordgs/nothing-ear.git
cd nothing-ear
cargo build --release
sudo cp target/release/nothing-ear /usr/local/bin/
bluetoothd (BlueZ), libbluetooth-devsudo apt update
sudo apt install bluetooth bluez libbluetooth-dev
sudo dnf install bluez bluez-libs bluez-libs-devel
sudo pacman -S bluez bluez-libs
nothing-ear --device AA:BB:CC:DD:EE:FF
--device, -d <MAC>: Bluetooth MAC address of earbuds (optional, auto-scans if not provided)--json, -j: Output in JSON format--retries <N>: Number of retry attempts (default: 3)--monitor, -m: Monitor mode - continuously check every 30 seconds--help, -h: Show help--version, -V: Show version$ nothing-ear
Scanning for Nothing Ear device...
Device: 00:11:22:33:44:55
Case: 85%
Left: 90%
Right: 80%
$ nothing-ear --device 00:11:22:33:44:55
Device: 00:11:22:33:44:55
Case: 85%
Left: 90%
Right: 80%
$ nothing-ear --json --device 00:11:22:33:44:55
{
"device_address": "00:11:22:33:44:55",
"timestamp": 1705420800,
"battery_levels": {
"case": {
"percentage": 85,
"is_charging": true
},
"left": {
"percentage": 90,
"is_charging": false,
"is_connected": true
},
"right": {
"percentage": 80,
"is_charging": false,
"is_connected": true
}
},
"all_connected": true
}
$ nothing-ear --device 00:11:22:33:44:55 --monitor
Ensure Bluetooth is enabled:
sudo systemctl start bluetooth
sudo systemctl enable bluetooth
Run without device address to auto-scan:
nothing-ear
The tool will automatically find and connect to your Nothing Ear device.
Or manually find your earbuds MAC address:
bluetoothctl scan on
# Look for "Nothing Ear" device
Pair if necessary:
bluetoothctl pair AA:BB:CC:DD:EE:FF
bluetoothctl trust AA:BB:CC:DD:EE:FF
"Connection refused"
"Permission denied"
sudo if Bluetooth permissions are restrictedbluetooth group: sudo usermod -a -G bluetooth $USER"Invalid MAC address"
"Parse error"
"Device not found"
bluetoothctl devices (if using --device)cargo build
cargo test
cargo run -- --help
Run unit tests:
cargo test
Run integration tests:
cargo test --test cli_integration
cargo tarpaulin --ignore-tests
MIT License - see LICENSE file.