๐ก๏ธ AranetBar โ
A single-file Swift macOS menu bar monitor for the Aranet4 indoor air quality sensor โ live COโ, temperature, humidity, atmospheric pressure, battery, and on-device history charts over Bluetooth Low Energy.
Companion Repository: AranetBar lives alongside our Aranet4 Bluetooth protocol tools in The-Focus-AI/aranet4-bluetooth.
Download & Quick Start โ
Prebuilt Universal .app โ
- Download the latest
AranetBar-<version>.zipfrom AranetBar Releases. - Move
AranetBar.appto/Applicationsand clear Gatekeeper quarantine once:
bash
xattr -dr com.apple.quarantine /Applications/AranetBar.app
open /Applications/AranetBar.appRun or Build from Source โ
bash
git clone https://github.com/The-Focus-AI/aranet4-bluetooth.git
cd aranet4-bluetooth/swift
# Run directly as a Swift script
./aranetbar.swift --once
# Or build the standalone universal AranetBar.app bundle (ai.thefocus.aranetbar)
./build.sh
open AranetBar.appFeatures โ
- ๐ข Passive BLE advertisements โ Reads live COโ, temperature, relative humidity, pressure, and battery without draining sensor battery via active GATT polling
- ๐ On-board history sync & charts โ Downloads stored sensor history on demand, caches locally under
~/Library/Application Support/AranetBar/history/, and renders honest gap-aware charts - ๐งญ Multi-sensor selection โ Automatically tracks the nearest Aranet4 or pins to a chosen sensor
- ๐ช Notch & reopen aware โ Automatically opens the History window if macOS hides the menu bar item behind the MacBook camera housing, or when
AranetBar.appis reopened in Finder - ๐งช Headless CLI flags โ
--once,--dump-menu,--history,--render-history, and--version
Technical Identity โ
| Property | Value |
|---|---|
| Bundle Identifier | ai.thefocus.aranetbar |
| Source File | swift/aranetbar.swift |
| Minimum macOS | macOS 13.0+ (Universal arm64 + x86_64) |
| Permissions | Bluetooth (NSBluetoothAlwaysUsageDescription) โ Smart Home Integration enabled in the Aranet Home app |