FuzzyIdeas / IsThereNet

See when your internet disconnects.. and reconnects
https://lowtechguys.com/istherenet/
GNU General Public License v3.0
80 stars 5 forks source link
internet macos

IsThereNet

Your internet connection status

at a glance

Installation

What does this do?

IsThereNet watches for internet connection status changes and draws a colored line at the top of the screen to indicate the status.

Colors:

The top status line does not appear in screenshots and does not interfere with clicking on the menu bar.

connected disconnected

How does it achieve that?

IsThereNet uses the native NWPathMonitor API to efficiently check if a connection can be established to Cloudflare's DNS IP 1.1.1.1.

That IP was chosen for multiple reasons:

Uh.. how do I quit this app?

The app has no Dock icon and no menubar icon so to quit it you'd need to do one of the following:

Alternatives

If you want to monitor more complex network conditions, you can use a few different alternatives:

Logging

IsThereNet logs internet connection status changes to:

Config

To keep the no-UI approach, the app can be configured through editing a JSON file. The file is located at:

~/.config/istherenet/config.json

The config file looks like this:

{
  "sounds" : {
    "disconnected" : "Mezzo",
    "slow" : "Submerge",
    "volume" : 0.4,
    "connected" : "Funky"
  },
  "pingIntervalSeconds" : 5,
  "pingIP" : "1.1.1.1",
  "pingSlowThresholdMilliseconds" : 300,
  "fadeSeconds" : {
    "connected" : 5,
    "disconnected" : 0,
    "slow" : 10
  },
  "colors" : {
    "slow" : "systemYellow",
    "connected" : "systemGreen",
    "disconnected" : "systemRed"
  },
  "pingTimeoutSeconds" : 1,
  "screen": "all",
  "shellCommandOnStatusChange" : "echo 'Status changed to: '$STATUS' with ping time:' $PING_TIME"
}