Jump to content

Battery Status | Power Status | Cycle Count


Recommended Posts

Posted (edited)

@andy4222 Thanks for sharing! Lots of useful stats at a glance. I'd like to point out a few things:

  • The workflow doesn't currently work because you call your python script with the python command, which is for Python 2. You should be using the python3 command, as Python 2 stopped shipping with macOS 12.3.
  • The chmod command isn't necessary, as the powerinfo.py file is already executable with the python3 command
  • Your screenshot includes a result from Vítor's System Settings workflow, which might not be clear to some users
  • I'd recommend giving this blog post a read for how to share your Workflow using GitHub. Dropbox isn't a permanent way to share Workflows and requires sharing a new link any time you release an update. There are a lot of Workflows on the forum that have been lost to time because the authors stopped maintaining their Dropbox download links.
Edited by FireFingers21
Posted

Thanks. It was out of necessity as I've been tracking my mac deteriorating battery within the first few months of purchase 😐 

 

12 minutes ago, FireFingers21 said:

The workflow doesn't currently work because you call your python script with the python command, which is for Python 2.

 

Actually on my mac, I've mapped python to python3 lol. But you are right, should be direct path to python3. I updated the link with python3 now. 

 

12 minutes ago, FireFingers21 said:

chmod command isn't necessary

 

Gotcha. I don't know, I faced a few issues with it in the past so usually add that to make sure the executing user get the perms. removed chmod

 

17 minutes ago, FireFingers21 said:

Your screenshot includes a result from Vítor's

 

added new screenshot

 

 

12 minutes ago, FireFingers21 said:

Workflow using GitHub. Dropbox isn't a permanent way to share Workflows

 

I did review that page in the past when Vitor had reached out when they were initially starting up the gallery, I had a few workflows hosted the same way and they were setting up some creator pages or something similar. I personally don't like using GitHub for anything except personal stuff. And, it does require some work to set it up based on the guidelines shared by Vitor and the team, which I agree are good and necessary. I pretty bad with documentation honestly 😄. Maybe in the future I'll change that and try to document the details according to the guidelines. 

 

 

 

Posted (edited)

not sure why but I can edit my original post. Don't want people to scroll down to get the latest workflow. 

 

image.png.509cf82ab55c159a7bd0d253f1ed723c.png

Edited by andy4222
Posted
56 minutes ago, andy4222 said:

not sure why but I can edit my original post

 

It's a feature of the forum, you only have a certain amount of time to edit your posts. The quality of the forum would heavily drop if everybody could edit the content (and therefore context) of conversations at any point in time.

 

1 hour ago, andy4222 said:

Don't want people to scroll down to get the latest workflow

 

There begins the trade-offs of using a tool like Dropbox. Every solution has its pros and cons, it ultimately comes down to what works best for you as the author.

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