Coder Social home page Coder Social logo

netmon's Introduction

netmon

Netmon is a simple daemon that tests your download and upload speesd (using Speedtest.net and tweets a complaint on your behalf when the speed is below your expectations. For help, run ./netmon.py --help.

Usage

Run the command line passing the -d and -u parameters for your subscription download and upload speeds respectively, -c for your Twitter app credentials file, -d for the delay between checks (default to 120) and -m for your message format. The message format receives 2 parameters, download and upload (check code for details).

The script will only tweet if speed is below the expected for 5 consecutive tests, i.e. it will only tweet after 10 minutes of slow internet if you use the defaults.

It will also not tweet twice in a single shitty connection window, meaning it will ignore that your connection is bad until it is above the minimum value again. It will also not tweet more than once an hour.

Don't forget to add your credentials to auth.json.sample and provide to the script

Example

$ python netmon.py -d 35M -u 3.5M -c auth.json -m "Hey @ShittyISP_Support I'm paying for 10 Mbps/1 Mbps and I'm only getting %s/%s today!"

You set your expected speed to 35 Mbps (download) and 3.5 Mbps (upload) and it will tweet as soon as any speed drops below 1/3 of the expected.

License

This work is completely based on /u/AlekseyP and his @A_Comcast_User account and is licensed under the MIT License

netmon's People

Contributors

ranisalt avatar

Watchers

 avatar  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.