Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.67 KB

README.md

File metadata and controls

45 lines (28 loc) · 1.67 KB

Internet Checker

npm version

Script to run it on background to check and announce when your Internet connection is down and up by emitting a sound.

This is very useful when your connection is not stable and you don't want to waste time checking often if your internet connection is really down.

How to install it

Pre-requisites

  1. You must have npm and node in your computer
  2. You must have speak installed

Steps

From GitHub

  1. Clone this repo git clone https://github.com/bikecoders/internet_checker
  2. Step into the folder you just cloned internet_checker
  3. Install node dependencies with npm install
  4. Run the script with npm start
  5. Done, now the computer will notify you when your internet is down

From NPM

  1. Run npm i internet_checker
  2. Step into node_modules/internet_checker
  3. Run the script with npm start

How it works ?

Once running the script make a ping to google (plubic dns on 8.8.8.8) every 10 seconds, if one of those package is lost the script will send 10 packages in less than 10 seconds to make sure if your internet connection is down.

Sequence Diagram

sequence diagram

Libraries used


Written with StackEdit.