BenziAhamed

Battery - view summary stats about your laptop battery

26 posts in this topic

capture.png

 

Description: Shows summary information about your laptop battery (charge, time, status, charge cycles, and health - % of maximum charge your battery can now hold compared to its original design capacity)

Usage: enter the keyword "battery"

Tested on: Mountain Lion, MacBook Pro

Download: from here

 

 

TimeDelta, mklement0, DJay and 15 others like this

Share this post


Link to post

Description: Shows summary information about your laptop battery (charge, time, status, charge cycles, and health - % of maximum charge your battery can now hold compared to its original design capacity)

Usage: enter the keyword "battery"

Tested on: Mountain Lion, MacBook Pro

Download: from here

 

Dude this is awesome :D

Share this post


Link to post

Awesome!  Allows me to remove the battery icon from menu bar.  On 13" MBP, menu bar space is precious.

 

Thanks  :)

 

I'm particular about my menu bar as well. Have you checked out Bartender to keep it tidy?

thec13 likes this

Share this post


Link to post

I can't seem to get this workflow running. It hangs at "..., retrieving..."

 

Any suggestions?

 

 

Hi there, if possible could you run the following command in Terminal and PM me the output?

ioreg -l -n AppleSmartBattery -r

Share this post


Link to post

This looks great and, assuming it's still running, I'm definitely going to install it.

 

I have a question: is it at all possible to tap into the "Apps using the most energy/battery" and display the top two with this workflow, too? That's really the only use the menu bar battery icon still has for me, personally. I know you can also more or less just use the activity monitor for such a thing, but I thought it worth asking.

Share this post


Link to post

Has this stopped working? If I select it it tries to start a Google search.

 

 

Seems to still be working for me. I've had that happen a lot with other workflows, though.

 

Eventually I learned to open the Workflows preferences, select the workflow in question, and click the spider icon on the top right to enable debug output (and changing the dropdown in the console to "All Information"). Then I trigger alfred, type the workflow keyword, and see what information it outputs in that console area. Helps me see if the workflow is bugging or even being triggered at all.

Share this post


Link to post

Has this stopped working? If I select it it tries to start a Google search.

 

Opening Google search is just the "fallback" search, which means that the workflow failed to produce any usable results for Alfred.

 

This happened to me as well at some point with some upgrade. To fix it, just open the file battery.sh in the workflow and, around line 81, change

    <title>$TEMPERATURE° C</title>
	<subtitle>Temperature</subtitle>
	<icon>temp.png</icon>
  </item>

to

    <title>${TEMPERATURE}° C</title>
	<subtitle>Temperature</subtitle>
	<icon>temp.png</icon>
  </item>

So, probably some Yosemite upgrade changed a version of Bash, and that version of Bash chokes when the degree symbol is next to a variable.

Grug and mixterdee like this

Share this post


Link to post

Opening Google search is just the "fallback" search, which means that the workflow failed to produce any usable results for Alfred.

 

This happened to me as well at some point with some upgrade. To fix it, just open the file battery.sh in the workflow and, around line 81, change

    <title>$TEMPERATURE° C</title>
	<subtitle>Temperature</subtitle>
	<icon>temp.png</icon>
  </item>

to

    <title>${TEMPERATURE}° C</title>
	<subtitle>Temperature</subtitle>
	<icon>temp.png</icon>
  </item>

So, probably some Yosemite upgrade changed a version of Bash, and that version of Bash chokes when the degree symbol is next to a variable.

 

Thanks, that fixed it for me.

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.


Sign In Now