Git Product home page Git Product logo

check-my-speed's Introduction

#Overview

Here we have two programs:

  • A back-end command line collector to retrieve your connection status;
  • A web server to display the data collected.

The data is stored in a SQLite database, but since everything is automated, you don't have to worry about that.

Unfortunately, the program uses a program available only to Linux: speed-test.

Usage

CLI

The command line program should run periodically in order to collect data over time. I recommend creating an entry in cron run it every 15 or 30 minutes.

The only configuration required is the server code to where you want to connect to run the tests. That can be retrieved using the following commands:

$ speedtest-cli --list | grep Brussels
5151) Combell (Brussels, Belgium) [3.61 km]

In this example, the code is 5151. So, run the collector:

$ check-my-speed-cli -server 5151

Web Server

To see the data collected, start the web server with the following command:

$ speedtest-web

The charts are available at http://localhost:8088/speed by default. If you wish to use a custom domain or port, use the parameter url:

$ speedtest-web -url domain_or_ip:port_number

Reports

Since this is the very first version, the reports are very ugly, but functional. There are 4 gauge images, showing, from left to right, the lowest value collected, the highest one, the average value and the last value collected. The gauges assume a default nominal connection of 50 Mbit/s, where the red section and the green section meet.

There is also a line graph with the blue line representing the download speed over time and the red line, the upload speed. Ideally, both should have constant value matching your nominal connection, but that's hardly the case.

I'm using the Google Charts Javascript Lib to render the graphs and I plan to improve the look'n'feel of this report (perhapes, even create some others?), but I'm not really a designer, so any suggestion are welcome.

check-my-speed's People

Contributors

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