mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-12-18 08:10:17 +00:00
5b8a5b169a
* Create Battery_notification.py * Create README.md * Update README.md * Update README.md * Update README.md * Update README.md
12 lines
495 B
Markdown
12 lines
495 B
Markdown
Here is this python3 code to get a notification/battery alert when the battery is low (35%)and while charging it is 98% it will give notification till you didn't plug-in when it is low(35%) and out when it is 98% for a Windows laptop.Install some Python library by writing some pip code in terminal.
|
|
|
|
```
|
|
pip install psutil
|
|
|
|
pip install pyttsx3
|
|
|
|
pip install win10toast
|
|
```
|
|
than run the file.
|
|
using ```python``` for windows and ```python3``` for linux and follow up ```Battery_notification.py```
|