Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for AirPods #97

Open
plushrib opened this issue Aug 7, 2024 · 0 comments
Open

Not working for AirPods #97

plushrib opened this issue Aug 7, 2024 · 0 comments

Comments

@plushrib
Copy link

plushrib commented Aug 7, 2024

I tried refreshing, didn't work

it either returned:

Traceback (most recent call last): File "/sbin/bluetooth_battery", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/python3.12/site-packages/bluetooth_battery/bluetooth_battery.py", line 163, in main print("Battery level for {} is {}".format(device, str(query))) ^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/bluetooth_battery/bluetooth_battery.py", line 93, in __str__ return "{:.0%}".format(self._perform_query() / 100) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/bluetooth_battery/bluetooth_battery.py", line 101, in _perform_query sock.connect(self._bt_settings) File "<string>", line 5, in connect bluetooth.btcommon.BluetoothError: [Errno 111] Connection refused

or nothing at all

I tried the port trick, didn't work

bluetooth_battery AA:BB:CC:DD:EE:FF.2
Traceback (most recent call last):
  File "<string>", line 3, in connect
_bluetooth.error: (111, 'Connection refused')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/sbin/bluetooth_battery", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/bluetooth_battery/bluetooth_battery.py", line 163, in main
    print("Battery level for {} is {}".format(device, str(query)))
                                                      ^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/bluetooth_battery/bluetooth_battery.py", line 93, in __str__
    return "{:.0%}".format(self._perform_query() / 100)
                           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/bluetooth_battery/bluetooth_battery.py", line 101, in _perform_query
    sock.connect(self._bt_settings)
  File "<string>", line 5, in connect
bluetooth.btcommon.BluetoothError: [Errno 111] Connection refused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant