How fast is your internet? Your ISP says you have gigabit fiber, but do you really get 1Gb down all the time? Most of us know we get less than promised, but by how much? If you want to check this, you'll probably go to a website like speedtest.net and run a speedtest. But this is a snapshot, it only shows your speed in that instant. If you want speed data over time, you can get this in one of two ways:
- Run the speed test:
- Write down the data in a spreadsheet like a loser
Im assuming you have python3 installed and can can run pip3 install X on your own if needed.
-
Clone the repository
-
Install the speedtest CLI tool. Instructions can be found here:
https://www.speedtest.net/apps/cli
- Automatically collect the data with a cronjobs:
Run sudo crontab -e
then add the following to the bottom of the file under # m h dom mon dow command
and save:
00 * * * * cd <path to where you cloned the repo>/speedtest-cronjob && bash main.sh
This is a bash script that will allow you to automated running speedtests as a cronjob every hour for each possible server and save the results to an incorrectly formatted json file. Don't worry, the python code will fix the formatting because it is easier to do that than mess with json data in bash. Don't handle json with bash. Just don't. From experience, I promise you, it's a bad idea.
- Make a pretty graph:
Once your cronjob has been running a while and you've been collecting data every hour, in the command line in the speedtest-cronjob
directory, run:
python3 chart_data.py
and it should make a pretty graph like this:
Gigabit my butt. That's not even close. Time to call my ISP and find out that their terms of service include a clause that states they offers no guarantee of speed nor uptime, then switch to the other ISP in the area, and find out they're even worse.
Cheerio!