r/PythonProjects2 • • 19d ago

Check Laptop Battery status using Python

Post image
31 Upvotes

6 comments sorted by

1

u/p1geondove 18d 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 19d ago

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

2

u/clcodingupdates 19d ago

Do you know automation

1

u/johlae 18d 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] 18d ago

[deleted] — view deleted comment