Skip to content

andrewkharook/netstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Netstatus

Netstatus is a simple internet connection monitor that sits in the status bar of your mac and shows wheather your connection is stable.

Dependencies

Netstatus relies on the AnyBar to display the connection status. The easiest way to install AnyBar is using Homebrew:

brew cask install anybar

But you can also download the AnyBar binary directly from the Releases page.

How to run

  1. Download latest Netstatus binary from the Releases page and put it in your PATH, e.g. /usr/local/bin/

  2. Add either a cron job to run the Netstatus repeatedly, or a launchd config, e.g.:

<!-- ~/Library/LaunchAgents/com.github.andrewkharook.netstatus.plist -->

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.github.andrewkharook.netstatus</string>
  <key>Program</key>
  <string>/usr/local/bin/netstatus</string>
  <key>RunAtLoad</key>
  <true/>
  <key>StartInterval</key>
  <integer>60</integer>
</dict>
</plist>
  1. Start Anybar and enjoy.

Parameters

You can use the following command line parameters to tune Netstatus to your needs:

  • -host <string> - A host to ping (default is 1.1.1.1)
  • -port <int> - The port of your AnyBar instance (default is 1738)