https://github.com/guildofcalamity/consolebattery
Example of gaining access to the Windows.Devices.Power.Battery library via a console application.
https://github.com/guildofcalamity/consolebattery
console dotnet-core utility uwp
Last synced: 9 months ago
JSON representation
Example of gaining access to the Windows.Devices.Power.Battery library via a console application.
- Host: GitHub
- URL: https://github.com/guildofcalamity/consolebattery
- Owner: GuildOfCalamity
- License: mit
- Created: 2025-04-09T20:33:25.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-09T20:35:35.000Z (9 months ago)
- Last Synced: 2025-04-09T21:36:02.279Z (9 months ago)
- Topics: console, dotnet-core, utility, uwp
- Language: C#
- Homepage:
- Size: 224 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: Support/ConfigHelper.cs
Awesome Lists containing this project
README
## ๐ป Console Battery Monitor - UWP

## ๐ v1.0.0.0 - April 2025
**Dependencies**
| Assembly | Version |
| ---- | ---- |
| .NET Core | 8.0.14 |
| Microsoft.NETCore.UniversalWindowsPlatform | 6.2.14 |
## ๐ฐ Description
- Example of gaining access to the `Windows.Devices.Power.Battery` library via a console application.
- This application runs a battery monitor using the `AggregateBattery`, which represents all battery controllers connected to the device..
## ๐๏ธ Usage
- `C:\> BatteryMonitor`
- `PS> .\BatteryMonitor`
## ๐ท Screenshots
> Charging

> Discharging

## ๐งพ License/Warranty
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish and distribute copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
* The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the author or copyright holder be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
* Copyright ยฉ 2025. All rights reserved.
## ๐ Proofing
* This application was compiled and tested using *VisualStudio* 2022 on *Windows 10/11* versions **22H2**, **21H2**, **21H1**, and **23H2**.