A small system that I use to measure my home internet connection speed.
easy_install speedtest-cli
sqlite3 - if you don't have this just install via your package manager.
Clone this repo
bundle install
You will also need to change the COMMAND
constant to point to the correct location of your speedtest-cli install if it doesn't end up in the same place. If you don't know where it is just run which speedtest-cli
from the commandline and use that path.
in cron
path/to/ruby path/to/speed_test.rb
I've included a script to export a CSV file that can be used in excel or google sheets.
To use this just run ./export.sh
from the project directory.
Some ideas to expand on.
- web app to view results
- possibly upload results to Google Sheets
- move to postgres db from sqlite