-
Notifications
You must be signed in to change notification settings - Fork 11
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
Connection Problem #9
Comments
@ruttiratta Do u use an Apple M1 chip? Since I switched I have the same issue |
@BenoitFroment Yes, I do. Then maybe that is the problem 🤔 |
I have the same issue in an M1. Here's the output of the debugging:
It's seems it's not getting any values. In case it's useful I also ran bluetoothconnector in the terminal and it seems to be working fine: Any suggestions? |
OK I had a bit more time to go through this. Basically the issue is that BluetoothConnector was in a different path (brew changed behavior). I've also changed it to use Python 3.x. I had to change the beginning of the script import subprocess
import re
import json
out = subprocess.run('/opt/homebrew/bin/BluetoothConnector', capture_output=True, text=True)
devicesRaw = out.stderr
deviceMacs = []
deviceNames = []
airPodsPosition = -1 And in the workflow I had to change the last stage ("Connect to provided bluetooth MAC") script to:
Everything is working smoothly now! :) |
Thank you very much for the change suggestion, @andrethrill. I will prepare a new version that is compatible with the new path of Homebrew binaries and the next few days! |
Hi, Just wondering if this has been updated yet. I am also using Apple M1, and it is not configuring. |
@andrethrill I have tried your fix but am getting this error, I have also updated python to the latest version out = subprocess.run('/opt/homebrew/bin/BluetoothConnector', capture_output=True, text=True) |
I just ran into the same problem.My solution is to modify the beginning of the script #!/usr/bin/env python3 |
Not working on MacBook M1 |
I finally had a chance to dig into this a little bit - apologies in advance as I haven't really done much with Alfred workflows and not much more with python. https://github.com/mikeoertli/alfred-airpods-connector/releases/tag/v2.0 https://github.com/mikeoertli/alfred-airpods-connector I ended up doing a bit of a facelift to the workflow and scripts (some necessary, some superficial, some just as part of my learning/exploration). The main issues I encountered (that I can remember) were:
I don't intend to maintain a fork here and I'm not sure how complete my changes are, but I figured a fork with a release was the best option (rather than committing the I have tested this on 2 newer Macs w/ Python 3.9.x and 3.10.x and it seems to be working for me through a decent chunk of manual testing. I will open a merge request when I get a chance and if there is anything I can do to help get this back into the mainline of development here, please don't hesitate to reach out @mariuskiessling. Thanks for such an awesome utility! UPDATE: PR opened: #11 |
thanks @mikeoertli your version works perfectly on my mac m1 with python 3.9 |
Hey @mikeoertli, thanks for updating the workflow. In case you're still maintaining the fork: BluetoothConnector seems to have some problems with Ventura (lapfelix/BluetoothConnector#20). Switching to blueutil, which is still actively maintained, fixed those problems for me on 13.2.1.
|
Thanks for the info and for reaching out! Unfortunately, I likely won't be maintaining it... I switched to Raycast a while back and haven't had much need to look back. I'll add a "todo" for at least updating the readme with that info and then likely archive the repo. |
I installed everything as the description says, but somehow, when I run the workflow to configure it, it won't find my AirPods. Help would be very much appreciated.
The text was updated successfully, but these errors were encountered: