mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-30 15:31:07 +00:00
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```
|