Skip to content

rdevz-ph/MyBatteryHealth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Battery Health

My Battery Health is a modern, lightweight Windows desktop application designed to parse, analyze, and visualize the HTML battery reports generated by the Windows powercfg /batteryreport tool.

Built with WPF and targeting .NET 8.0, it features a clean dark theme, dynamic diagnostic ratings, and responsive capacity trend charts.

Screenshots

App Screenshot

Features

  • Asynchronous Local Scan: Run powercfg diagnostic scans directly from the application in a background thread without UI freezes.
  • HTML Drag-and-Drop: Drag and drop any existing battery-report.html file from File Explorer to analyze it immediately.
  • Circular Health Gauge: Clear circular graphic displaying current battery health percentage.
  • Capacity History Chart: A custom vector-drawn line chart displaying Design Capacity vs. Full Charge Capacity over time.
  • Detailed Specifications: View full battery hardware stats (manufacturer, serial, chemistry) and OS build info.
  • Battery Life Estimates: View estimated active and standby durations based on observed drains.

System Requirements

  • Windows 10 or Windows 11
  • .NET 8.0 Runtime or newer

Getting Started

Building and Running

  1. Clone the repository to your local machine.
  2. Navigate to the project directory:
    cd MyBatteryHealth
  3. Run the application using the dotnet CLI:
    dotnet run

Publishing as a Single-File Executable

The project is configured to publish as a framework-dependent, single-file executable. This bundles the application code and resources directly into a single executable, meaning it can run on any Windows machine with the .NET 8.0 Runtime installed without requiring any external DLL files, installers, or extra assets.

This results in a highly lightweight executable file of only ~210 KB.

To publish from the root directory, run:

dotnet publish MyBatteryHealth -c Release

The output executable will be generated at: MyBatteryHealth/bin/Release/net8.0-windows/win-x64/publish/MyBatteryHealth.exe

License

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

About

My Battery Health is a modern, lightweight Windows desktop application designed to parse, analyze, and visualize the HTML battery reports generated by the Windows powercfg /batteryreport tool.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages