Jump to content

Battery - view summary stats about your laptop battery


Recommended Posts

58f3773be0597_ScreenShot2017-04-16at7_22_43PM.png.886cee51227e19b4742b8ba62bdf1c74.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

 

 

Edited by Benzi
Fixed download link
Link to comment

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

Link to comment
  • 5 months later...
  • 3 weeks later...
  • 5 months later...

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.

Link to comment
  • 10 months later...
  • 1 month later...

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.

Link to comment

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.

Link to comment

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.

Link to comment

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
×
×
  • Create New...