zeitlings Posted April 30 Share Posted April 30 (edited) Bluetooth Device Battery View the battery charge status of connected Bluetooth devices (macOS 13.0+) Make sure you have SF Pro installed to render the symbols. Edited May 10 by zeitlings Link to comment
zeitlings Posted April 30 Author Share Posted April 30 I only confirmed that it works with connected Apple devices. Other devices I briefly connected for testing were not found by ioreg or the system profiler, or the battery information was simply not there. If you have a device that you think should show up but doesn't, you can print a log to Alfred's debug window by typing -btb. If you see battery status information that the workflow ignores, feel free to send me those logs. That way I can try to fine-tune the parser. The same goes for specific information about older AirPods and case versions. If you let me know what uniquely identifies them, they can get proper representation. Link to comment
Terminal Posted April 30 Share Posted April 30 How are you getting those Icons in the subtitle ? Link to comment
zeitlings Posted April 30 Author Share Posted April 30 24 minutes ago, Terminal said: How are you getting those Icons in the subtitle ? They come from Apple's SF Symbols. They are available through the macOS System Font (SF Pro), so technically they're not icons or images and can be used in the subtitles for that reason 😁 Link to comment
Terminal Posted April 30 Share Posted April 30 52 minutes ago, zeitlings said: They come from Apple's SF Symbols. They are available through the macOS System Font (SF Pro), so technically they're not icons or images and can be used in the subtitles for that reason 😁 Dang! I thought I missed an update and Alfred expanded its capabilities! Either way, this helps me with my workflow update! You've got great workflows btw. Thanks zeitlings 1 Link to comment
giovanni Posted May 10 Share Posted May 10 On 4/30/2023 at 12:53 PM, zeitlings said: They are available through the macOS System Font (SF Pro) but the user needs to have them installed, correct? Or are you able to embed them in your workflow? Link to comment
zeitlings Posted May 10 Author Share Posted May 10 17 minutes ago, giovanni said: but the user needs to have them installed Possibly. I assumed that by now macOS ships with SF Pro by default. Doesn't it? The font is not included in the workflow. Link to comment
giovanni Posted May 10 Share Posted May 10 not sure about Ventura because I installed them, but they are not in Monterey. Link to comment
vitor Posted May 10 Share Posted May 10 Unfortunately the symbols are not available as a font by default in Ventura, no. Link to comment
vurte Posted May 22 Share Posted May 22 I'm trying this out and this is the first time I'm trying to troubleshoot a workflow. Here's what I have from the debug: [13:50:30.728] Logging Started... [13:50:42.658] Device Battery[Script Filter] Queuing argument '(null)' [13:50:43.264] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:43.266] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} [13:50:47.273] Device Battery[Script Filter] Queuing argument '(null)' [13:50:47.588] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:47.590] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} [13:50:51.596] Device Battery[Script Filter] Queuing argument '(null)' [13:50:51.929] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:51.931] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} [13:50:55.937] Device Battery[Script Filter] Queuing argument '(null)' [13:50:56.215] Device Battery[Script Filter] Script with argv '(null)' finished [13:50:56.217] Device Battery[Script Filter] {"items":[{"title":"No Bluetooth devices connected"}],"rerun":4} I currently have my AirPods Pro connected. Link to comment
zeitlings Posted 21 hours ago Author Share Posted 21 hours ago Hey @vurte The debug info you shared shows what happens when you use the keyword "btb". To see device logs you can just prefix the keyword with a minus sign: "-btb". This will show what information macOS provides through the channels that the workflow uses to find the device's battery information. There is an update available that should accommodate more devices. However, the way AirPods are handled hasn't changed. If your device is still not showing up, feel free to share the log that you get when typing "-btb". v1.1.0 Added support for more devices Added headphones icon 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