Git Product home page Git Product logo

alfred-airpod-connector's Introduction

alfred-airpod-connector's People

Contributors

acidham avatar learn2reid avatar sendhil avatar sponge-bink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alfred-airpod-connector's Issues

This is great!

Thanks so much for taking the time to make this as it has greatly enhanced the experience on my Mac. What theme are you using for Alfred? I love how fresh it looks.

Blueutil crashing after running the workflow on MacOS Sonoma

I have upgraded to Sonoma, and when I run the workflow, I get an error from MacOS saying blueutil crashed and asking me if I want to send a report. This seems to be the key error in the report:

"This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data."

I'm not sure if this is a blueutil or workflow problem, but as far as I can tell, blueutil works perfectly from the command line and I don't get this error.

Any advice on what the cause might be (or how to debug/fix it) is appreciated.

error 8194: "airpod1",

Alfred.alfredpreferences/workflows/user.workflow.49835F10-1222-4FE2-9692-EFBD5E40BC7B/airp.py", line 15
8194: "airpod1",
^
SyntaxError: invalid syntax

debug console shows /bin/sh: blueutil: command not found

I have installed blueutil
❯ blueutil
Power: 1
Discoverable: 0

and my default shell is zsh.
But seems the workflow cannot detect blueutil
debug console output :
[16:57:29.023] AirPods Connector[Script Filter] Queuing argument '(null)'
[16:57:29.159] AirPods Connector[Script Filter] Script with argv '(null)' finished
[16:57:29.163] STDERR: AirPods Connector[Script Filter] /bin/sh: blueutil: command not found
[16:57:29.163] AirPods Connector[Script Filter] {

Airpods3 can't connect

Hello there!

found this problem, trying to connect my Airpods 3 with your workflow.

I guess the problem is in blueutil version. Mine is — 2.9.1

[21:40:40.113] AirPods Connector[Script Filter] Queuing argument '(null)'
[21:40:40.217] AirPods Connector[Script Filter] Script with argv '(null)' finished
[21:40:40.223] ERROR: AirPods Connector[Script Filter] Code 1: Traceback (most recent call last):
  File "airp.py", line 32, in get_paired_airpods
    devices: dict = bt_data['devices_list']
KeyError: 'devices_list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "airp.py", line 97, in <module>
    main()
  File "airp.py", line 70, in main
    for ap_name, status in get_paired_airpods().items():
  File "airp.py", line 37, in get_paired_airpods
    not_connected_devices: list = bt_data['device_not_connected']
KeyError: 'device_not_connected'

There is no key device_not_connected in the dictionary that you parse.

airpods pro 2 requires two connect commands to connect

I have a weird issue where I have to type the connect command twice to get my Airpods connected, the first one doesn't do anything, while the second one always works, this happens when my Airpods are connected to the iPhone, and I try to move them back to the mac.

Not working for me 🤷‍♂️

I have blueutil installed and the menu item appears showing my airpods but connect/disconnect does nothing. Happy to give more logs if you tell me how. OS Ventura 13.1, M1 macbook pro.

Not working? Do i need to instal python?

Hi,

I just downloaded the workflow and set it up vanilla. Is there anything else i need to do to get it to work?

When i try to connect to my airpods it never works. Thanks for help

blueutil seems to return different key names

I'm running blueutil 2.9.1, which is the latest brew installed. When I run the command the JSON which gets returned for "os.popen('system_profiler SPBluetoothDataType -json'" seems to have the keys dict_keys(['controller_properties', 'device_paired']), not 'devices_list'. Not sure if that is a recent change or something else is going on.

[Bug] Crashes on macOS Monterrey 12.2

Hey @Acidham thanks for your hard work on this workflow! I've been using it for quite some time and it's great. As of late, however, it hasn't been working correctly for me. I took a look at the log and this is what is output:

[18:45:29.274] Logging Started...

[18:45:30.619] AirPods Connector[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2B48DE9F-77F2-4429-9DCE-63CA7C8AC5FE%3E2378081C-843E-45C6-B549-1B0FFD46EF7C)] Queuing argument '(null)'

[18:45:30.826] AirPods Connector[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2B48DE9F-77F2-4429-9DCE-63CA7C8AC5FE%3E2378081C-843E-45C6-B549-1B0FFD46EF7C)] Script with argv '(null)' finished

[18:45:30.828] ERROR: AirPods Connector[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2B48DE9F-77F2-4429-9DCE-63CA7C8AC5FE%3E2378081C-843E-45C6-B549-1B0FFD46EF7C)] Code 1: Traceback (most recent call last):
  File "/Users/Prized/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2B48DE9F-77F2-4429-9DCE-63CA7C8AC5FE/airp.py", line 81, in <module>
    main()
  File "/Users/Prized/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2B48DE9F-77F2-4429-9DCE-63CA7C8AC5FE/airp.py", line 61, in main
    for ap_name, status in get_paired_airpods().items():
  File "/Users/Prized/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2B48DE9F-77F2-4429-9DCE-63CA7C8AC5FE/airp.py", line 43, in get_paired_airpods
    if connected_devices:  # macos >= 12.3

UnboundLocalError: local variable 'connected_devices' referenced before assignment

I'm unsure what next steps to take here. Would you mind helping me sort this out? Thanks!

(For the record I am unsure if this is related to Monterrey but as of updating to Monterrey it has not worked)

Devices

I am only showing one set of Airpods when I have multiple connected to the Bluetooth. I cannot remember where I was able to set the devices the workflow picks up or how to have it see the other ones. Any suggestions? Thanks

How can I completely uninstall it?

I remember that when I first installed this workflow, there was something added at a Terminal level.
Since I no longer use Aipods now, I would like to completely uninstall it.
Could you please help me?

Can not work on M1 mac

Hey guy, I have tried the WF on my m1 macbook air, but it can not work well. At first, it can't find python3, so I manually changed the path of python3 to /opt/homebrew/bin/python3. And it can not also download blueutil automatically, so I run brew install blueutil in my terminal. In my terminal i can use blueutil just like

blueutil                                                                                      
Power: 1
Discoverable: 0

However, it seems like blueutil can't be found. I got this from alfred

[22:25:09.852] AirPods Connector[Script Filter] Queuing argument '(null)'
[22:25:10.826] AirPods Connector[Script Filter] Script with argv '(null)' finished
[22:25:10.832] STDERR: AirPods Connector[Script Filter] tar: Error opening archive: Unrecognized archive format
Could not download blueutil.
/bin/sh: blueutil: No such file or directory
[22:25:10.833] AirPods Connector[Script Filter] {
    "items": [
        {
            "title": "BLUEUTIL required!",
            "subtitle": "Please install with \"brew install blueutil\" first",
            "valid": false
        }
    ]
}

I think this issue comes from m1 chip or path of blueutil, but I don't know how to tell the script where blueutil is.
Any help would be appreciated!!

does not seem to work with my airpods pro

I have a pair of airpods pro 2, i see them in system_profiler SPBluetoothDataType -json

❯ system_profiler SPBluetoothDataType -json|grep -i airpod
          "WladN’s AirPods Pro" : {

and in the debugger i don't get anything usefull:

[14:42:07.745] AirPods Connector[Script Filter] Queuing argument '(null)'
[14:42:07.994] AirPods Connector[Script Filter] Script with argv '(null)' finished
[14:42:07.995] AirPods Connector[Script Filter] {
    "items": []
}

alfred homebrew installed the dependencies for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.