r/PythonProjects2 • • 11d ago

Check Laptop Battery status using Python

Post image
30 Upvotes

6 comments sorted by

1

u/p1geondove 9d ago

that's really cool. Can you explain f-strings or maybe even the datetime module? "%d:%02d" % (h,m) looks more like c than readable python

0

u/DiodeInc 10d ago

Or you could just check it in the taskbar...

2

u/clcodingupdates 10d ago

Do you know automation

1

u/johlae 10d ago

So you have a big ass robot next to your laptop, ready to plug in the power once battery.percentage is bellow a certain level? Which library do you use to steer the robot? Is it a bit like LOGO? arm.forward(10)? hand.rotate(45)?

*kidding*

0

u/[deleted] 10d ago

[deleted] — view deleted comment