The Battery Percentage for Windows project is a Python script designed to generate a battery report and extract battery health information for Windows operating systems. It utilizes the powercfg
command-line utility to generate a battery report and the BeautifulSoup library for parsing HTML reports.
-
Clone the repository:
git clone https://github.com/rusty3699/battery-percentage.git cd battery-percentage
-
Install dependencies:
pip install beautifulsoup4
-
Run the script:
python battery_health_checker_gui.py
-
Click the "Generate Battery Report" button to generate the battery report.
-
Once the report is generated, the script will display the path to the report and the battery health percentage.
- Generate Battery Report: Automatically generates a battery report using the
powercfg
utility. - Extract Battery Health: Extracts battery health information from the generated HTML report, including design capacity, full charge capacity, and battery health percentage.
- User Interface: Provides a simple graphical user interface (GUI) using Tkinter for easy interaction.
- Python 3.x
- BeautifulSoup library (
beautifulsoup4
)
To build an executable file for the Battery Health Checker GUI script, you can use PyInstaller:
pyinstaller --onefile --noconsole battery_health_checker_gui.py
Replace `battery_health_checker_gui.py` with the actual name of your Python script file.
Made with ❤️ Anish