mohamed-arradi / AirpodsBattery-Monitor-For-Mac

Your AirPods Battery levels at your status bar | MacOS | Widget
MIT License
422 stars 29 forks source link

Mac OS Ventura and M2 Pro Support #44

Closed noname2001 closed 1 year ago

noname2001 commented 1 year ago

This app will not launch on the Ventura (M2 Pro)

mohamed-arradi commented 1 year ago

@noname2001 Which app version are you using, are you using the latest release ?

On my M2 Ventura machine I have no issue with it.

Can you explain what happens when you launch it ? Any errors or alert from your system ?

Here the example with my machine

Screenshot 2023-05-11 at 16 51 46
noname2001 commented 1 year ago

Update Infomation

@mohamed-arradi I found the reason

if I close the hammerspoon, Airpods Battery Monitor can display on menubar

before

image

after I close hammerspon

image

It's because my lua script add few menus in menubar, and there's not enough space to show it. close the issue, and thank you for your app! :)

noname2001 commented 1 year ago

@mohamed-arradi it's me again

the battery percentage display still doesn't work

but the "connect to" button works, when I click it, my airpods connect to macbook, but there is no battery info

I try to click "refresh Devices" but still no battery infomation

FYI my airpods is the first generation airpods released in 2017

image
mohamed-arradi commented 1 year ago

@noname2001

Can you try to run this debug script on your laptop after you have connected your Airpods with your Macbook ?

airpods-debug.sh.zip

To run it :

Open a terminal
Go to where you stored the file cd my_file_directory (generally /Downloads)
sh airpods-debug.sh

You should see something coming between some line E1 and E2 as per below .

I need you to send me the content copied to the email: moha-dev-pro@proton.me

Screenshot 2023-05-17 at 19 46 29

With that I will be able to know why your battery level is not read. Maybe the output on First generation is different. I cannot buy all generations :)

noname2001 commented 1 year ago

@mohamed-arradi done : )

mohamed-arradi commented 1 year ago

@noname2001 Well received. Your output seems totally fine and is working fine on my end.

I sent you an email with a specific debug version (that I will not release publicly) which contains some UI additional stuff to continue the debugging.

As far as I saw, there is nothing wrong, and I suspect something related to either permissions in your Macbook or something else.

Go over the email and let me know once you did the steps.

noname2001 commented 1 year ago

@mohamed-arradi checked and reply to you, just close this issue, it seems works well now