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 post
  • 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 post
  • 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 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.

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.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...