- Windows 10 or later
- Python 3.8 or higher installed
- Administrator access for installation
Open Command Prompt (cmd) and run:
pip install psutil pyttsx3 win10toastOr install all at once:
pip install psutil pyttsx3 win10toast pypiwin32Run this command to ensure all packages are installed:
python -c "import psutil, pyttsx3, win10toast; print('All packages installed successfully!')"Create a folder named BatteryMonitor and place:
battery_monitor.py(main application)battery_indicator.ico(optional - battery icon file)run_battery_monitor.bat(launcher file)
You can either:
Option A: Use a pre-made icon
- Download a battery icon from: https://icons8.com/icons/set/battery
- Save it as
battery_indicator.icoin the project folder
Option B: Use your own icon
- Convert any PNG/JPG image to ICO format using an online converter
- Ensure filename is
battery_indicator.ico
- Double-click
run_battery_monitor.bat - The application will launch automatically
- Open Command Prompt
- Navigate to the project folder:
cd path\to\BatteryMonitor
- Run the application:
python battery_monitor.py
- Open
battery_monitor.pyin your favorite IDE (PyCharm, VS Code, etc.) - Click "Run" or press F5
The application creates a battery_config.json file on first run.
Default Settings:
- Low Battery Threshold: 30%
- Full Battery Threshold: 100%
- Warning Threshold: 90%
- Check Interval: 10 seconds
- Notifications: Enabled
- Voice Alerts: Enabled
- Dark Mode: Enabled
You can customize these settings through the GUI or edit battery_config.json directly.
β
Real-time battery percentage display
β
Plugged/unplugged status
β
Time remaining calculation
β
Windows toast notifications
β
Text-to-speech alerts
β
Customizable thresholds
β
Activity log
β
Dark/Light mode
β
System tray integration ready
β
JSON-based configuration
Open Settings (βοΈ button) in the application to adjust:
- When to alert at low battery
- When to alert when fully charged
- When to warn at high battery percentage
- Check interval frequency
Toggle in Settings:
- Notifications (Toast popups)
- Voice alerts (Text-to-speech)
- Dark mode theme
pip install --upgrade psutilpip install pyttsx3pip install win10toast- Ensure
battery_indicator.icois in the same folder as the script - Or comment out the icon line in the code
- Check Windows sound settings
- Ensure volume is not muted
- Run Command Prompt as Administrator and retry
- Check Windows Notification Center settings
- Ensure "Do Not Disturb" mode is off
- Restart the application
| Component | Requirement |
|---|---|
| OS | Windows 10/11 |
| Python | 3.8+ |
| RAM | 100 MB minimum |
| Disk Space | 50 MB |
| Architecture | 32-bit or 64-bit |
The battery_config.json file looks like:
{
"low_battery_threshold": 30,
"full_battery_threshold": 100,
"warning_battery_threshold": 90,
"notification_enabled": true,
"speech_enabled": true,
"dark_mode": true,
"check_interval": 10,
"auto_start": false
}To make the app start automatically:
- Press
Win + R - Type:
shell:startup - Create a shortcut to
run_battery_monitor.batin this folder
To create a standalone EXE file (no Python needed):
pip install pyinstaller
pyinstaller --onefile --windowed --icon=battery_indicator.ico battery_monitor.pyThe executable will be in the dist folder.
If you encounter issues:
- Check Python is installed:
python --version - Verify all dependencies:
pip list - Run from Command Prompt to see error messages
- Check Windows Event Viewer for system errors
This software is provided as-is for personal use.
Future enhancements planned:
- System tray minimization
- Email notifications
- Battery health report
- Historical data graphs
- Custom alert sounds
- Smart charging mode
- Multi-language support
Version: 1.0
Last Updated: 2026-01-28
Author: Prabhat R Mohanta