asonnino / internet-speed

Automatically measure and plot average speed of your internet connection.

Repository from Github https://github.comasonnino/internet-speedRepository from Github https://github.comasonnino/internet-speed

internet-speed

license

Automatically measure and plot average speed of your internet connection.

Install & Run

First, install speedtest-cli as described here, and give appropriate permissions to the script speedtest.sh:

$ chmod +x speedtest.sh

Set a cron job to regularly trigger the script. For instance, if your script is located in /root and you want to trigger it hourly, you can add the following line to your crontab:

@hourly bash /root/speedtest.sh

Data will be collected in a file called speedtest.json in the same directory as the script.

Plot the average speed

You can run the Matlab script script.mlx to plot the average internet speed versus the hours of the day. You can edit the script to set the theoretical download & upload speed as below:

% download theoretical speed
th_download = 20;
% upload theoretical speed
th_upload = 1;

License

The GPLv3 license

About

Automatically measure and plot average speed of your internet connection.

License:GNU General Public License v3.0


Languages

Language:MATLAB 77.0%Language:Python 22.3%Language:Shell 0.7%