Track regular Speedtest results (Download, Upload, Latency) and view on a line graph.
Note: You have to have speedtest
CLI installed (see https://www.speedtest.net/apps/cli)
Run bundle install
to install everything from Gemfile
Run rake db:create_with_schema
Set up RVM for crontab:
rvm cron setup
Edit crontab:
crontab -e
Add this line to run every 10 minutes
*/10 * * * * $(which ruby) /your_path/speedtest_log/speedtest_log.rb
Run rackup web/config.ru
and visit http://localhost:3000
to see a
graph.
There will be no data at first, you can wait until cron job runs or do a manual run
To manually log a Speedtest result:
./speedtest_log.rb
Show last 10 results:
./speedtest_log.rb show