Acidham Posted June 29, 2020 Share Posted June 29, 2020 (edited) I know, it is another AirPods Connector, but I am an owner of 3 pairs of them, and I was unable to find an AirPods Connector which supports more than one pair. In addition, the WF runs out of the box without any configuration. Download on Git Edited April 8, 2022 by Acidham Link to comment
vitor Posted June 29, 2020 Share Posted June 29, 2020 1 hour ago, Acidham said: The Workflow requires blueutil brew install blueutil Would you like it not to require users to have to manually install the dependency? I can help you set up _sharedresources, if you’d like. blueutil is supported, as I use it in one of my Workflows. Link to comment
Acidham Posted June 29, 2020 Author Share Posted June 29, 2020 @vitor sure would be wonderful. What is preferred way to start integrating it? Should I read manual first or is it meant to get premium support from you ? 🤗 Link to comment
vitor Posted June 29, 2020 Share Posted June 29, 2020 @Acidham Just like OpenUpdater, it’s meant to be as simple as possible.Add the script to your Workflow. Doesn’t matter where you put it; it’s wherever is convenient to you.Inside any script that requires blueutil, run /path/to/_sharedresources blueutil.Set the result of the previous command to the PATH environment variable.Call blueutil as usual. In Bash you’d so something like (assuming _sharedresources and the script are in the same directory): PATH="$(./_sharedresources 'blueutil')" blueutil WHATEVER In Ruby: require 'open3' ENV['PATH'] = Open3.capture2('./_sharedresources', 'blueutil').first Open3.capture2('blueutil', WHATEVER) Link to comment
Acidham Posted June 29, 2020 Author Share Posted June 29, 2020 (edited) what about Python? import os os.environ['PATH'] = os.popen('./_sharedresources "blueutil"').readline() os.popen('blueutil WHATEVER') Edited June 29, 2020 by Acidham Link to comment
Acidham Posted June 29, 2020 Author Share Posted June 29, 2020 @vitor Done...implemented and released Thank you for the tip! vitor 1 Link to comment
vitor Posted June 29, 2020 Share Posted June 29, 2020 37 minutes ago, Acidham said: what about Python? I assumed it would be just as simple, but since you are a Pythonista and I’m not, I was confident you’d reach the best solution from my examples. Link to comment
vitor Posted June 29, 2020 Share Posted June 29, 2020 Don’t forget you can edit the top post to remove the blueutil requirement. Link to comment
Acidham Posted June 29, 2020 Author Share Posted June 29, 2020 14 minutes ago, vitor said: Don’t forget you can edit the top post to remove the blueutil requirement. not sure I understand. Which top post ? Link to comment
vitor Posted June 29, 2020 Share Posted June 29, 2020 Just now, Acidham said: not sure I understand. Which top post ? The first one on this thread. Link to comment
Oblique Posted July 6, 2020 Share Posted July 6, 2020 This does not seem to work on Catalina - I activate the script but nothing happens. However the script correctly reads if the AirPods are connected or not. I installed the developer tool that was required Link to comment
Acidham Posted July 6, 2020 Author Share Posted July 6, 2020 (edited) I am on Catalina and no issues.... 1. what is the output when you enter ... blueutil -v ....in terminal? 2. What is log output of Alfred...open workflow and click on the bug on top right corner Edited July 6, 2020 by Acidham Link to comment
epistaxis Posted July 6, 2020 Share Posted July 6, 2020 (edited) Same thing for me; nothing happens when I input the keyword. I downloaded the workflow and let the program download something. Here's my results: 1. ----------------------------------------------------------------------- Last login: Mon Jul 6 15:12:53 on ttys000 user@MacBook-Pro ~ % blueutil -v zsh: command not found: blueutil user@MacBook-Pro ~ % ----------------------------------------------------------------------- 2. ----------------------------------------------------------------------- [15:16:20.645] ERROR: AirPods Connector[Run Script] /Users/user/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D0C9763C-E272-427B-8A49-1EAA4862E448:1: no such file or directory: /usr/local/bin/blueutil Update: After installing blueutil on terminal, it's working as intended now. P.S.: Thanks! 👍 Edited July 6, 2020 by epistaxis Update Link to comment
Acidham Posted July 7, 2020 Author Share Posted July 7, 2020 @epistaxis thank you for reporting this issue. It was a bug in my script when blueutil was installed via installer script. Fixed now! Link to comment
Acidham Posted July 13, 2020 Author Share Posted July 13, 2020 (edited) v1.2 supports Powerbeats Pro in addition. Download on Git Edited July 13, 2020 by Acidham Link to comment
ProRock Posted March 4, 2021 Share Posted March 4, 2021 Hello, Great wf. works as intended. Can you kindly add AirPods Max? Link to comment
Acidham Posted March 4, 2021 Author Share Posted March 4, 2021 Sure but I do not own AirPods Max. Therefore, I need VendorID and ProductID. Please follow following instructions and provide me with the two IDs: https://github.com/Acidham/alfred-airpod-connector/issues/1#issuecomment-657230457 Link to comment
eshmootie Posted March 24, 2022 Share Posted March 24, 2022 Hi, I get the following error when i run 'airpd' any suggestion how to deal with this? Link to comment
Acidham Posted March 24, 2022 Author Share Posted March 24, 2022 (edited) I assume your Bluetooth is enabled? Please run following command system_profiler SPBluetoothDataType -json It should look like: { "SPBluetoothDataType" : [ { "controller_properties" : { "controller_address" : "F8:FF:C2:50:D0:46", "controller_chipset" : "BCM_4364B3", "controller_discoverable" : "attrib_off", "controller_firmwareVersion" : "v75 c4195", "controller_productID" : "0x0001", "controller_state" : "attrib_on", "controller_supportedServices" : "0x382039 < HFP AVRCP A2DP HID Braille AACP GATT Serial >", "controller_transport" : "UART", "controller_vendorID" : "0x004C (Apple)" }, "devices_list" : [ { "Aci Mouse" : { "device_address" : "24:D0:DF:0A:F2:CF", "device_connected" : "Yes", "device_firmwareVersion" : "1.7.0", "device_minorType" : "Mouse", "device_productID" : "0x0269", "device_services" : "0x800020 < HID ACL >", "device_vendorID" : "0x004C" } }, { "As AirPods Pro " : { "device_address" : "E4:90:FD:81:4C:7E", "device_firmwareVersion" : "4C165", "device_minorType" : "Headphones", "device_productID" : "0x200E", "device_serialNumber" : "GRHCGM9XLKKT", "device_vendorID" : "0x004C" } },... Edited March 24, 2022 by Acidham Link to comment
eshmootie Posted March 24, 2022 Share Posted March 24, 2022 5 minutes ago, Acidham said: I assume your Bluetooth is enabled? Please run following command system_profiler SPBluetoothDataType -json It should look like: { "SPBluetoothDataType" : [ { "controller_properties" : { "controller_address" : "F8:FF:C2:50:D0:46", "controller_chipset" : "BCM_4364B3", "controller_discoverable" : "attrib_off", "controller_firmwareVersion" : "v75 c4195", "controller_productID" : "0x0001", "controller_state" : "attrib_on", "controller_supportedServices" : "0x382039 < HFP AVRCP A2DP HID Braille AACP GATT Serial >", "controller_transport" : "UART", "controller_vendorID" : "0x004C (Apple)" }, "devices_list" : [ { "Aci Mouse" : { "device_address" : "24:D0:DF:0A:F2:CF", "device_connected" : "Yes", "device_firmwareVersion" : "1.7.0", "device_minorType" : "Mouse", "device_productID" : "0x0269", "device_services" : "0x800020 < HID ACL >", "device_vendorID" : "0x004C" } }, { "AciPad" : { "device_address" : "28:EC:95:84:90:5D" } },... Yes, It looks like this: (1st is with airpods connected and 2nd without) "SPBluetoothDataType" : [ { "controller_properties" : { "controller_address" : "8C:85:90:0E:03:F6", "controller_chipset" : "BCM_4350", "controller_discoverable" : "attrib_off", "controller_firmwareVersion" : "v134 c5628", "controller_productID" : "0x0001", "controller_state" : "attrib_on", "controller_supportedServices" : "0x382039 < HFP AVRCP A2DP HID Braille AACP GATT Serial >", "controller_transport" : "UART", "controller_vendorID" : "0x004C (Apple)" }, "device_connected" : [ { "name – AirPods Pro" : { "device_address" : "B8:81:FA:78:AA:25", "device_batteryLevelCase" : "23 %", "device_batteryLevelLeft" : "81 %", "device_firmwareVersion" : "4C165", "device_minorType" : "Headphones", "device_productID" : "0x200E", "device_serialNumber" : "GX9D94FQLKKT", "device_services" : "0x980019 < HFP AVRCP A2DP AACP GATT ACL >", "device_vendorID" : "0x004C" } } ], "device_not_connected" : [ { "name iPhone" : { "device_address" : "A0:FB:C5:B7:C0:C4", "device_rssi" : "-38" } } ] } ] (base) name-mbp:~ name$ system_profiler SPBluetoothDataType -json { "SPBluetoothDataType" : [ { "controller_properties" : { "controller_address" : "8C:85:90:0E:03:F6", "controller_chipset" : "BCM_4350", "controller_discoverable" : "attrib_off", "controller_firmwareVersion" : "v134 c5628", "controller_productID" : "0x0001", "controller_state" : "attrib_on", "controller_supportedServices" : "0x382039 < HFP AVRCP A2DP HID Braille AACP GATT Serial >", "controller_transport" : "UART", "controller_vendorID" : "0x004C (Apple)" }, "device_not_connected" : [ { "Name – AirPods Pro" : { "device_address" : "B8:81:FA:78:AA:25", "device_firmwareVersion" : "4C165", "device_minorType" : "Headphones", "device_productID" : "0x200E", "device_serialNumber" : "GX9D94FQLKKT", "device_vendorID" : "0x004C" } }, { "Name iPhone" : { "device_address" : "A0:FB:C5:B7:C0:C4", "device_rssi" : "-38" } } ] } ] Link to comment
Acidham Posted March 24, 2022 Author Share Posted March 24, 2022 Interesting, seems Apple renamed device_list. Which macos and CPU are you on? Link to comment
eshmootie Posted March 24, 2022 Share Posted March 24, 2022 (edited) 10 minutes ago, Acidham said: Interesting, seems Apple renamed device_list. Which macos and CPU are you on? mac os 12.3 macbook pro 13" - 2017 standard config (intel i5) Edited March 24, 2022 by eshmootie Link to comment
Acidham Posted March 24, 2022 Author Share Posted March 24, 2022 oook ... seems I will experience the same when I am upgrading tonight I will look into it after the upgrade and when json changed in the same way. eshmootie 1 Link to comment
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