TheWeirdDev / Bluetooth_Headset_Battery_Level

A python script to get battery level from Bluetooth headsets
GNU General Public License v3.0
760 stars 83 forks source link

It works on Raspberry Pi 3B/Raspberry OS(Buster) with Anker soundcore a3102 BT speakers #75

Open theorbitofmercury opened 2 years ago

theorbitofmercury commented 2 years ago

Option 1: $ sudo apt install libbluetooth-dev python3-dev $ pip3 install bluetooth_battery $ bluetooth_battery XX:XX:... Battery level for XX:XX:... is 70% (agrees with Android 11)

Incidentally does it only report in jumps of 10%? After some time it was reporting 60% but I never saw anything in-between. I had a look at your code but did not see anything to account for this so maybe its a function of the BT device?

Many thanks