Get Alerts when battery charge levels cross upper or lower limits — Battery management tool of laptop users
Most laptop batteries becomes faulty after several years of usage i.e., The charge doesn't decrease gradually. So if the power source is disconnected, the battery lasts only a few minutes. Without even notifying us, the system will be forced shutdown leading to interruption in your workflow. This project is meant to be useful for all of us suffering from this issue.
This project throws a notification to the user whenever the charge levels of laptop battery falls below or above the specified levels. (Useful for maintaining charge at certain levels)
- Monitor the charge level of your laptop battery
- Notify you when the charge level is low
- Notify you when the battery is sufficiently charged
- Prevent unexpected shutdowns due to low battery
To use this tool, you will need to have Python3 and the following libraries installed:
You can install this library using 'pip':
pip install notify-py
pip install psutil
To use this tool, you can simply run the main_program.pyw script:
python main_program.pyw
To set the threshold limits that trigger the notifications modify the config.txt where the first line contains the upper threshold limit and the second line, the lower threshold.
For example, If you set the upper and lower limits to 85% and 35%, the contents of config.txt will be:
85
35
All your contributions are welcome. If you have an idea for a new feature or have found a bug, please open an issue or submit a pull request :)