{"id":13753464,"url":"https://lihaoyun6.github.io/airbattery/","last_synced_at":"2025-05-09T21:34:56.392Z","repository":{"id":222003955,"uuid":"755969344","full_name":"lihaoyun6/AirBattery","owner":"lihaoyun6","description":"Get the battery usage of all your devices on your Mac and put them on the Dock / Menu Bar / Widget! \u0026\u0026 在Mac上获取你所有设备的电量信息并显示在Dock / 状态栏 / 小组件上!","archived":false,"fork":false,"pushed_at":"2025-03-18T02:49:23.000Z","size":11171,"stargazers_count":1662,"open_issues_count":64,"forks_count":49,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-13T19:49:53.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lihaoyun6.github.io/airbattery/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lihaoyun6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-11T16:05:32.000Z","updated_at":"2025-04-13T00:35:36.000Z","dependencies_parsed_at":"2024-06-14T18:38:45.961Z","dependency_job_id":"c5523c81-619e-477f-bbda-4ea2aea4923f","html_url":"https://github.com/lihaoyun6/AirBattery","commit_stats":null,"previous_names":["lihaoyun6/dockbattery","lihaoyun6/airbattery"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihaoyun6%2FAirBattery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihaoyun6%2FAirBattery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihaoyun6%2FAirBattery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihaoyun6%2FAirBattery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lihaoyun6","download_url":"https://codeload.github.com/lihaoyun6/AirBattery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253328874,"owners_count":21891542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T09:01:22.767Z","updated_at":"2025-05-09T21:34:55.204Z","avatar_url":"https://github.com/lihaoyun6.png","language":"Swift","funding_links":[],"categories":["System Status","其它实用工具"],"sub_categories":["Local System Status","系统相关工具"],"readme":"# \n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./AirBattery/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png\" width=\"200\" height=\"200\" /\u003e\n\u003ch1 align=\"center\"\u003eAirBattery\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eGet battery usage of all devices on Mac and show them on the Dock / StatusBar / Widgets!\u003cbr\u003e\u003ca href=\"./README_zh.md\"\u003e[中文版本]\u003c/a\u003e\u003cbr\u003e\u003ca href=\"https://lihaoyun6.github.io/airbattery/\"\u003e[Landing Page]\u003c/a\u003e\u003c/h3\u003e \n\u003c/p\u003e\n\n## Screenshots\n\u003cp align=\"center\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./img/preview_dark.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./img/preview.png\"\u003e\n  \u003cimg alt=\"QuickRecorder Screenshots\" src=\"./img/preview.png\" width=\"840\"/\u003e\n\u003c/picture\u003e\n\u003c/p\u003e\n\n## Installation and Usage\n### System Requirements:\n- macOS 11.0 and Later  \n\n### Installation:\nDownload the latest installation file [here](../../releases/latest) or install via Homebrew:  \n\n```bash\nbrew install lihaoyun6/tap/airbattery\n```\n\n### Usage: \n- After AirBattery is started, it will be displayed on both the Dock and the status bar by default, or only one of them (can be configured)  \n\n- AirBattery will automatically search for all devices supported by the **\"Nearbility Engine\"** without manual configuration.  \n- Click the Dock icon / status bar icon, or add a widget to view the battery usage of your devices.  \n- You can also use the **\"Nearcast\"** feature to check the battery usage of other Macs and their peripherals in the LAN at any time.  \n- You can also change the status bar icon to a real-time battery icon in preferences, just like the one that comes with the system.  \n- If necessary, you can hide certain devices in the Dock menu or status bar menu, and unhide them at any time.  \n\n## Q\u0026A\n**1. Why is my iPhone / iPad / Apple Watch not showing up?**\n\u003e Please make sure the iPhone / iPad has trusted this Mac ***(and connected the Mac with a data cable at least once while AirBattery is running to pair)***. Then just make sure it is on the same LAN as the Mac.  \n\n**2. Does my Apple Watch need to be pre-connected?**\n\u003e No, when AirBattery detects a paired iPhone via WiFi or USB, it will automatically read the battery data of the Apple Watch paired with it **(iPhone discovered via Bluetooth does not support reading the watch battery!)** \n\n**3. Why do some device name have a ⚠️ symbol?**\n\u003e If this symbol appears, it means that the device has not updated its battery information for more than ten minutes, and may be offline or turned off.  \n\n**4. My iPhone is not connected to WiFi, can I get the battery info?**\n\u003e Please install AirBattery v1.1.2 or higher, enable the **`iPhone / iPad(Cellular) over BT`** in the preferences, and keep the device's Bluetooth turned on ***(Only supports iPhone or cellular iPad!)***  \n\n**5. Why does AirBattery need Bluetooth permission?**\n\u003e AirBattery needs Bluetooth to capture packets from peripheral devices in order to parse their battery information.  \n\n## Donate\n\u003cimg src=\"./img/donate.png\" width=\"350\"/\u003e\n\n## Thanks\n[libimobiledevice](https://github.com/libimobiledevice/libimobiledevice) @libimobiledevice  \n\u003e AirBattery uses executable files and runtime libraries compiled from libimobiledevice based on version `73b6fd1`. Feel free to compile and replace them if in doubt.\n\n[comptest](https://gist.github.com/nikias/ebc6e975dc908f3741af0f789c5b1088) @nikias  \n\u003e AirBattery uses executable files compiled based on this source code. Feel free to compile and replace them if in doubt.  \n\n[MultipeerKit](https://github.com/insidegui/MultipeerKit) @insidegui  \n\u003e AirBattery uses MultipeerKit for symmetric multi-end communication within the LAN  \n\n[ChatGPT](https://chat.openai.com) @OpenAI  \n\u003e Some of the code in this project is generated or refactored by ChatGPT.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/lihaoyun6.github.io%2Fairbattery%2F","html_url":"https://awesome.ecosyste.ms/projects/lihaoyun6.github.io%2Fairbattery%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/lihaoyun6.github.io%2Fairbattery%2F/lists"}