Skip to content

Battery Percentage for Windows: Python script for generating battery reports and extracting battery health information on Windows.

Notifications You must be signed in to change notification settings

rusty3699/battery-percentage

Repository files navigation

Battery Percentage for Windows

Overview

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.

Installation

  1. Clone the repository:

    git clone https://github.com/rusty3699/battery-percentage.git
    cd battery-percentage
  2. Install dependencies:

    pip install beautifulsoup4

Usage

  1. Run the script:

    python battery_health_checker_gui.py
  2. Click the "Generate Battery Report" button to generate the battery report.

  3. Once the report is generated, the script will display the path to the report and the battery health percentage.

Features

  • 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.

Requirements

  • Python 3.x
  • BeautifulSoup library (beautifulsoup4)

Building Executable

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

About

Battery Percentage for Windows: Python script for generating battery reports and extracting battery health information on Windows.

Resources

Stars

Watchers

Forks