imegeek / battery-notifier

Repository from Github https://github.comimegeek/battery-notifierRepository from Github https://github.comimegeek/battery-notifier

Battery Notifier

Battery Notifier is a Python-based application that provides notifications for battery status, allowing users to set high and low battery level thresholds and get notified when these levels are reached. The application uses Tkinter for the GUI and psutil for accessing battery information.

Features

  • Real-time Battery Monitoring: Continuously monitors battery status and percentage.
  • Customizable Alerts: Set custom high and low battery level thresholds.
  • Notifications: Provides notifications for charging, discharging, and when battery levels cross the set thresholds.
  • Service Management: Start and stop the background service for battery monitoring.

Installation

  1. Clone the repository:

    git clone https://github.com/imegeek/battery-notifier
    cd battery-notifier
  2. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Run the main application:

    python main.py
  2. The application window will open, displaying the current battery status and options to set high and low battery level thresholds.

  3. Adjust the battery level thresholds using the sliders.

  4. Start or stop the battery monitoring service using the provided button.

Project Structure

  • main.py: Main script for the application.
  • battery_process.pyw: Script that runs as a background service for monitoring battery levels.
  • settings.json: Configuration file for storing user settings.
  • src/: Directory containing icons and images used in the application.

Screenshots

Battery Notifier

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

About

License:MIT License


Languages

Language:Python 100.0%