Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Run a script when your phone loses Internet connectivity
tree: 60e6ad53ad

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE
README.md
is-online.cabal
is-online.hs

README.md

This small web service listens on port 15000 for HTTP GET requests on the /ping path. It's intended to be used with httpmon for Android which should ping that URL every 5 minutes. If the service isn't pinged on schedule, it runs an external script with the argument "offline". Once regular pings return, it runs the script with the argument "online".

I originally wrote it to automatically change how Google Voice text messages are delivered based on whether or not my phone has a network connection. (In many rural areas, phone service is available but data is not).

Something went wrong with that request. Please try again.