GithubHelp home page GithubHelp logo

ahmetb / comcasted Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 6.0 14 KB

Are you being “Comcast-ed”? Test your speed every 5min and see if you're getting what you're paying.

License: Apache License 2.0

Shell 42.10% Python 57.90%

comcasted's Introduction

comcasted

Sometimes Comcast is too fast, you feel a need to measure your speed and save to a CSV so you can prove you are getting the speed you are paying for.

This script is designed for OS X and periodically runs a speed test when you are are connected to a wireless network (or a specific wireless network). It is also not Comcast-specific but I decided to name it so because they're such a great ISP and they're a big supporter of Net Neutrality movement.

Installation

Clone this repository locally and go into the source directory

git clone [email protected]:ahmetalpbalkan/comcasted.git
cd comcasted

Install the periodical job using osx.sh script. Once installed, the speed test script will be executed every 5 minutes and place a file called comcasted.csv on your desktop to report the test results.

Usage: ./osx.sh <command> [<ssid>]

Arguments:
<command>	'install' or 'uninstall' to set up the program to run in the background
<ssid>		(optional) run speed test only when connected to this wireless network

Examples:
  $ ./osx.sh install ahmet-home-wifi
  $ ./osx.sh install # (runs on all connected wireless networks, use at caution)
  $ ./osx.sh uninstall

Visualizing

You can use the nice ./visualize.py script to upload the CSV file to charted.io and get a visualization like this:

(If you already installed using osx.sh script, it will find where the data is located automatically)

./visualize.py 4

Tweaking

If you want to run the speed test once, you can use the comcasted.sh.

If you like to configure the periodic speed test interval or where te results are saved, you need to modify the .plist file and re-install the launch agent using osx.sh command.

If you configure your computer to not to go sleep when plugged and leave the lid open, it can run over the nights while you're sleeping as well.

Author

Ahmet Alp Balkan (@ahmetalpbalkan)

comcasted's People

Contributors

ahmetb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

comcasted's Issues

make visualize.py zero-fill the missing data points.

if the data is missing (i.e. computer was sleeping or was not at home), visualize.py should fill the gaps in the uploaded CSV with data points where $date,download=0,upload=0 (e.g. every 5 mins, or whatever the rate sample exists in rest of the data set)

Pop-up notifications?

Can show notifications like:

$ osascript -e "display notification \"D: 23.1 Mbps - U: 17.2 Mbps\" with title \"Speed test\""

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.