A minimalist script for macOS menu bar app that shows a green circle when a target address is reachable, and a red circle when it's not.
🟢 ← host is reachable
🔴 ← host is unreachable
- macOS
- Python 3.7+
- pip
# Clone the repository
git clone https://github.com/username/ping-monitor.git
cd ping-monitor
# Install dependencies
pip install -r requirements.txtpython app.pyThe icon will appear in the menu bar. To quit, click the icon and select Quit.
Edit the following variables in app.py:
TARGET = "8.8.8.8" # address or domain to ping
INTERVAL = 5 # check interval in secondsTo run the app without a terminal:
pip install py2app
python setup.py py2appThe built application will appear in the dist/ folder and can be moved to /Applications.
| Package | Purpose |
|---|---|
| rumps | macOS menu bar apps in Python |
| py2app | Build standalone .app bundles (optional) |