Skip to content

AayushParekh-1/BatteryAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”‹ Battery Monitor App

Never overcharge or drain your battery again! Your laptop's personal battery guardian.


πŸ’‘ What is This?

Battery Monitor is a lightweight desktop application built with Python and Tkinter that watches your battery percentage and alerts you when it’s:

  • πŸ”Œ Fully charged (time to unplug)
  • πŸ”‹ Too low (time to plug in)

This helps protect your battery health and saves you from accidental overcharging or deep discharging.


🧠 Why Use This App?

Laptop batteries lose capacity faster when:

  • You let them drain below 20%
  • You keep them at 100% while charging
  • You miss the OS notifications (which are easy to ignore)

βœ… This app gives you:

  • Low battery alerts at 20%
  • Full battery alerts at 98%
  • πŸ”” Persistent popup + 🎡 sound alerts every few seconds
  • πŸ’» Lightweight, background-friendly design

🎧 Features

  • πŸͺŸ Popup notifications using tkinter
  • 🎡 Sound alerts using:
    • winsound on Windows
    • afplay on macOS
  • ⚑ Smart status tracking β€” alerts only when status changes
  • 🧡 Multithreaded for a responsive UI
  • ⏲️ Customizable thresholds and check intervals

πŸ“¦ Requirements

  • Python 3.x
  • psutil library (for battery status)
  • .wav sound files for alerts

Install psutil using:

pip install psutil

πŸš€ Getting Started

  1. Clone the Repo
   git clone https://github.com/your-username/battery-monitor.git
   cd battery-monitor

For MacOS users:

   python3 Batteries.py

For Windows Users:

   python3 BatteriesWin.py

Acknowledgements

Built with love to help laptop users: Improve battery life Avoid battery degradation Stay stress-free while working Because good batteries make happy laptops! πŸ§ πŸ”‹


πŸ“„ License

MIT License β€” Use freely, modify easily, and share widely.


πŸ™‹β€β™‚οΈ Contribute

Found a bug? Want a new feature? Feel free to open an issue or submit a pull request. Contributions are always welcome!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages