Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adryzz/batteryno
A C# power library for linux
https://github.com/adryzz/batteryno
battery battery-monitor dotnet power
Last synced: 7 days ago
JSON representation
A C# power library for linux
- Host: GitHub
- URL: https://github.com/adryzz/batteryno
- Owner: adryzz
- License: bsd-3-clause
- Created: 2021-12-18T18:39:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-18T22:26:30.000Z (almost 3 years ago)
- Last Synced: 2024-10-01T11:10:19.033Z (about 1 month ago)
- Topics: battery, battery-monitor, dotnet, power
- Language: C#
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Batteryno
![Nuget](https://img.shields.io/nuget/v/Batteryno)An easy to use C# power library for linux.
# Getting battery percentage
```csharp
using Batteryno;Battery myBattery = Power.GetBatteries().FirstOrDefault();
Console.WriteLine($"Battery percentage: {myBattery.Capacity}%");
```You can also find an example [here](Batteryno.Example/Program.cs).
## Why did you name it Batteryno?
![](https://i.imgur.com/8qpYNN6.png)