AirPodsBatteryCLI
CLI tool for Grabbing the AirPods Battery Status
Install / Use
/learn @duk242/AirPodsBatteryCLIREADME
AirPods Battery CLI 2.3
Copyright 2017 Dustin Kerr & Daniel Jones, All Rights Reserved.
Released under the MIT License.
About
This is a CLI tool for Grabbing the AirPods Battery Status
Information is collected from defaults read /Library/Preferences/com.apple.Bluetooth to grab Battery Info from a pair of connected AirPods. It will currently only grab the info for the first paired set of W1 supported headphones.
Usage
If you have multiple sets of Headphones, you can change the line that reads:
MAC_ADDR=$(grep -b2 "Minor Type: Headphones"<<<"${SYSTEM_PROFILER}"|awk '/Address/{print $3}')
To match the MAC address of heaphones you want info for:
MAC_ADDR="7c-04-d0-af-88-62"
Guide
There is a bigger usage guide available online at: http://blog.duklabs.com/airpods-power-in-touchbar/
Requirements
This has been tested and works on OSX 10.12.6 and above.
Related Skills
node-connect
330.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
330.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.4kCommit, push, and open a PR
