https://github.com/sowa705/batteryinfo
Simple C# System battery information library
https://github.com/sowa705/batteryinfo
battery csharp laptop-hardware windows wml
Last synced: 3 months ago
JSON representation
Simple C# System battery information library
- Host: GitHub
- URL: https://github.com/sowa705/batteryinfo
- Owner: sowa705
- License: mit
- Created: 2019-05-19T00:08:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-19T18:28:31.000Z (about 7 years ago)
- Last Synced: 2025-07-05T22:40:57.386Z (about 1 year ago)
- Topics: battery, csharp, laptop-hardware, windows, wml
- Language: C#
- Size: 10.7 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BatteryInfo
Simple C# System battery information library
# Usage
Create new instance of BatteryInfo.Battery class and call Update().
~~~~
BatteryInfo.Battery battery = new BatteryInfo.Battery();
battery.Update();
Console.WriteLine("Charge: \t" + battery.ChargePercent + " %");
~~~~
# Limitations
BatteryInfo uses WML queries to get required data. WML may be unavailable on other operating systems than Windows.