This Python script is designed to notify the user when their battery is various levels. This can help users extend their battery life by reminding them to charge or unplug their device at the optimal times. (Set the percentage on when to notify by editing the config.json
using ConfigBuilder.html
)
- Python (only tested on 3.10.x right now)
- Only works on windows
- win10toast (
pip install win10toast
) - psutil (
pip install psutil
)
- Clone the repository OR download the .ZIP file and extract it.
- Install the needed modules.
- Run the script using the
RUN_IN_BACKGROUND.bat
orpythonw battery.py
The script will start running and will continuously monitor your battery percentage. When the battery reaches 100%, a notification will be displayed indicating that the battery is fully charged. When the battery reaches 80% and charging, another notification will be displayed reminding you to unplug your device. Finally, when the battery percentage drops below 30%, the script will display a notification reminding you to charge your device.
Stop the script using killswitch.py