https://github.com/5j54d93/mac-battery-inspector
A macOS app develop with SwiftUI in MVVM that could inspect mac's battery info.
https://github.com/5j54d93/mac-battery-inspector
applesmartbattery battery darkmode iokit iopscopypowersourcesinfo mac macos menubarextra mvvm swift swiftui
Last synced: over 1 year ago
JSON representation
A macOS app develop with SwiftUI in MVVM that could inspect mac's battery info.
- Host: GitHub
- URL: https://github.com/5j54d93/mac-battery-inspector
- Owner: 5j54d93
- License: mit
- Created: 2023-06-10T07:22:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-24T13:05:19.000Z (about 3 years ago)
- Last Synced: 2024-05-20T22:42:58.241Z (about 2 years ago)
- Topics: applesmartbattery, battery, darkmode, iokit, iopscopypowersourcesinfo, mac, macos, menubarextra, mvvm, swift, swiftui
- Language: Swift
- Homepage:
- Size: 43.8 MB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Mac Battery Inspector
[](https://github.com/5j54d93/Mac-Battery-Inspector/blob/main/LICENSE)





A macOS app develop with SwiftUI in MVVM that could inspect many mac's battery info.

## Overview
1. [**HighLight**](https://github.com/5j54d93/Mac-Battery-Inspector#highlight)
2. [**Screen Saver**](https://github.com/5j54d93/Mac-Battery-Inspector#screen-saver)
3. [**Row Data**](https://github.com/5j54d93/Mac-Battery-Inspector#row-data)
4. [**MenuBarExtra**](https://github.com/5j54d93/Mac-Battery-Inspector#menubarextra)
5. [**Dark Mode**](https://github.com/5j54d93/Mac-Battery-Inspector#dark-mode)
6. [**License**](https://github.com/5j54d93/Mac-Battery-Inspector#licensemit)
## HighLight
Main View highlights some important information of mac's battery. Including:
- **Temperature**:in Celsius
- **Time Remaining**:time to fully charge or time to run out
- **Adapter Detail**:some important information of power adapter
- **Battery**:Remain percentage
- **Cycle Count**:max cycle count for a battery life is 1000
- **Battery Health**
When mac is start/stop charging, HighLight view will show/hide adapter detail with animation.

## Screen Saver
A view includes 100 blocks to represent current capacity.

## Row Data
This view shows all data from `IOPSCopyPowerSourcesInfo` and `AppleSmartBattery` without doing any transformation.

And this page also support searching. Search result will highlight what user search in geeen.

## MenuBarExtra
MenuBarExtra will always appear on top right of mac's menu bar unless "Mac Battery Inspector" is been quited.

## Dark Mode
"Mac Battery Inspector" also support dark mode!User could select mode on top right of tool bar for "Mac Battery Inspector" to follow system's preference or user's preference.

## License:MIT
This package is [MIT licensed](https://github.com/5j54d93/Mac-Battery-Inspector/blob/main/LICENSE).