Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 2.23 KB

README.md

File metadata and controls

65 lines (47 loc) · 2.23 KB

Balert

Get Alerts when battery charge levels cross upper or lower limits — Battery management tool of laptop users


Who is this project for?

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.


What does this project do?

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)


Features

  • 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

Installation

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

Usage

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

Your Contributions

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 :)


Note: This project was meant to run in the background so I've saved the source file as .pyw instead of .py

Visitors