Acidham Posted March 24, 2022 Author Posted March 24, 2022 @eshmootie Please give it a try: https://github.com/Acidham/alfred-airpod-connector/blob/master/AirPods Connector.alfredworkflow and let me know
eshmootie Posted March 25, 2022 Posted March 25, 2022 14 hours ago, Acidham said: @eshmootie Please give it a try: https://github.com/Acidham/alfred-airpod-connector/blob/master/AirPods Connector.alfredworkflow and let me know Thanks, Tested and it seems like it works to use and connect with. However, once connected i cannot disconnect using the same command. And when i run 'airpd' while connected it says 'Airpods pro are NOT connected' even though they are.
Acidham Posted March 25, 2022 Author Posted March 25, 2022 Quote And when i run 'airpd' while connected it says 'Airpods pro are NOT connected' even though they are. Yep, I figured that out later yesterday and fixed it: https://github.com/Acidham/alfred-airpod-connector/blob/master/AirPods Connector.alfredworkflow Please try again. cands 1
eshmootie Posted March 25, 2022 Posted March 25, 2022 1 hour ago, Acidham said: Yep, I figured that out later yesterday and fixed it: https://github.com/Acidham/alfred-airpod-connector/blob/master/AirPods Connector.alfredworkflow Please try again. Text is corrected, but can't disconnect! not really a issue though since it's just connecting that i mostly use it for
Acidham Posted March 25, 2022 Author Posted March 25, 2022 (edited) Thx found the issue, please download v 1.2.9.3 (same URL above) and try again...should work now. Edited March 25, 2022 by Acidham
eshmootie Posted March 25, 2022 Posted March 25, 2022 1 hour ago, Acidham said: Thx found the issue, please download v 1.2.9.3 (same URL above) and try again...should work now. Thank you!!!
Acidham Posted March 25, 2022 Author Posted March 25, 2022 Released v1.2.10 you should receive update via automatic update
jnack Posted June 5, 2023 Posted June 5, 2023 June 2023, is this still working for everyone? It seems if my AirPods pro (2nd gen) are connected to my phone and i want to switch to MacBook air it does not work and i have to manually go into bluetooth setting still....just wondering if anyone else is experiencing this
vitor Posted June 5, 2023 Posted June 5, 2023 Welcome @jnack, When you have an issue with a workflow, check the debugger. The creator will need that information to know what’s happening in your case.
Stooovie Posted June 11, 2023 Posted June 11, 2023 Requires installing blueutil to work. Via Homebrew: brew install blueutil Acidham 1
osthing Posted December 20, 2023 Posted December 20, 2023 (edited) I installed blueutil through home-brew but it is not still working what should I do now? Edited December 20, 2023 by osthing
Stephen_C Posted December 20, 2023 Posted December 20, 2023 See this post on how to report a problem with a workflow—then use the debugger while you run the workflow and copy and paste the output here. Stephen
vitor Posted December 20, 2023 Posted December 20, 2023 @osthing If you are on Sonoma, you need to add Alfred to Bluetooth permissions under Privacy & Security on System Settings. osthing 1
osthing Posted December 20, 2023 Posted December 20, 2023 How can I add AirPods icon like this picture? Mine there is no icon then empty space
vitor Posted December 20, 2023 Posted December 20, 2023 That’s a different matter. Please follow the procedure outlined by @Stephen_C. And make sure you’re really using this workflow, since there’s more than one for AirPods.
Acidham Posted December 20, 2023 Author Posted December 20, 2023 @osthing what AirPod version are you using?
osthing Posted December 20, 2023 Posted December 20, 2023 (edited) Now 6B34 Version. Edited December 20, 2023 by osthing
Acidham Posted December 20, 2023 Author Posted December 20, 2023 I assume this is the Firmware Version but I need the AirPod version or better Model Number which you can find in settings when connected.
osthing Posted December 20, 2023 Posted December 20, 2023 I dont know exactly what does it mean airpods version.
Acidham Posted December 20, 2023 Author Posted December 20, 2023 yep model number and from what I see the model is supported, but it seems the icon file will not be picked up. When you open the FINDER (right-click on the workflow) you should see the .png files. Please check
osthing Posted December 22, 2023 Posted December 22, 2023 (edited) Png files are in finder, but it works not like that. Edited December 22, 2023 by osthing
Acidham Posted December 22, 2023 Author Posted December 22, 2023 @osthing I love your "Why?" illustration! So sweet 😀 I can tell you why: I basically forgot to add airpodpro2.png to the workflow. Thank you for reporting I released a new version: https://github.com/Acidham/alfred-airpod-connector/releases/tag/v1.3.10 osthing 1
spongeblink Posted June 8, 2024 Posted June 8, 2024 (edited) Hey, @Acidham. First, thank you for making this workflow. I have submitted pull requests to this workflow and have been a daily user of it since then. I wonder how it performs recently for you because I have issues where it is slow or just straight up doesn't connect/disconnect. I added some debug info in the con_manager.py script and found out that the problem is probably the 'os.popen()' lines. They do not give an error, but they don't seem to do anything. If I pass on the f'{blueutil} --connect {adr}' command to a Terminal Command object, things would work, actually work a lot better. It usually takes about 5-6 seconds to connect to my AirPods, but in this fashion it takes 2 seconds, tops. #!/usr/bin/python3 import os import shutil import sys from Alfred3 import Tools query = Tools.getArgv(1) adr, switch = tuple(query.split(";")) Tools.log(adr) Tools.log(switch) blueutil = shutil.which('blueutil') Tools.log(blueutil) if blueutil: if switch == "disconnected": Tools.log("1") Tools.log(adr) cmd = f'{blueutil} --connect {adr}' Tools.log(cmd) sys.stdout.write(cmd) # os.popen(cmd) else: Tools.log("2") cmd = f'{blueutil} --disconnect {adr}' Tools.log(cmd) sys.stdout.write(cmd) # os.popen(cmd) Tools.log("Finished") Does anyone have an insight into why Python's 'os.popen()' is much slower and could stop working? I have tried to pass the "/opt/homebrew/bin/blueutil --disconnect AA:AA:AA:AA:AA:AA"-like command into a Run Script object like this: Except it did not work. So I chose the Terminal Command object. I would like to know why that happens too… Also, I wonder what the --wait-disconnect option in your script intended to do? I'm using macOS 14.5, Alfred 5.5 [2257], AirPods Pro (2nd gen with USB-C case), blueutil 2.10.0. Edited June 8, 2024 by spongeblink
Acidham Posted June 8, 2024 Author Posted June 8, 2024 I need to look into that but more elegant would be to use subprocess.Popen() I need to implement and test when I will find some time spongeblink 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now