Code Monkey home page Code Monkey logo

internet_checker's Introduction

internet_checker

Internet checker

Prehistory

This program help to know when internet is available again and notify about it.

I just want to know when the Internet will available again
(c) Author

Ping is too boring.

Enjoy.

How to use

The program provides one function:
check

To use program you need pass a URL and how many retries you want to be done.

Example

check
internet_checker.exe check --url http://www.google.com --retry 100
Checking if Internet connection available by sending 100 requests to www.google.com.
Also check if site is available.

If pass no arguments, will using default.
URL - https://www.google.com; retries - 4:
internet_checker.exe check --url -r

By default, using HTTP, if passing --icmp will switch to ICMP.
internet_checker.exe check --url http://www.google.com --retry 100 --icmp

If you use an --wifi argument you need to pass the name of your Wi-Fi interface name. If the connection will be broken this arg switch on reconnection function, sometime it can be helpful. internet_checker.exe check --url http://www.google.com --wifi YOUR_WIFI_INTERFACE_NAME

If you want to turn off sound notification you can use next option --no-sound. internet_checker.exe check --url http://www.google.com --no-sound

You also can wrap up invocation with .sh or .bat. Think about it.

Warning !
If set --retry to 0 will trigger infinity loop without end conditions.

internet_checker's People

Contributors

coolcodercarl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.