Skip to content

๐ŸŒก๏ธ 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 โ€‹

  1. Download the latest AranetBar-<version>.zip from AranetBar Releases.
  2. Move AranetBar.app to /Applications and clear Gatekeeper quarantine once:
bash
xattr -dr com.apple.quarantine /Applications/AranetBar.app
open /Applications/AranetBar.app

Run 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.app

Features โ€‹

  • ๐ŸŸข 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.app is reopened in Finder
  • ๐Ÿงช Headless CLI flags โ€” --once, --dump-menu, --history, --render-history, and --version

Technical Identity โ€‹

PropertyValue
Bundle Identifierai.thefocus.aranetbar
Source Fileswift/aranetbar.swift
Minimum macOSmacOS 13.0+ (Universal arm64 + x86_64)
PermissionsBluetooth (NSBluetoothAlwaysUsageDescription) โ€” Smart Home Integration enabled in the Aranet Home app

Further Reading โ€‹

Released under the MIT License.