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.
- 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.
- Windows 10 or Windows 11
- .NET 8.0 Runtime or newer
- Clone the repository to your local machine.
- Navigate to the project directory:
cd MyBatteryHealth
- Run the application using the dotnet CLI:
dotnet run
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 ReleaseThe output executable will be generated at:
MyBatteryHealth/bin/Release/net8.0-windows/win-x64/publish/MyBatteryHealth.exe
This project is licensed under the MIT License - see the LICENSE file for details.
