Tested on an Edgerouter Lite, EdgeOS 1.9.0
Enable the Wheezy repo
configure
set system package repository wheezy components 'main contrib non-free'
set system package repository wheezy distribution wheezy
set system package repository wheezy url http://http.us.debian.org/debian
commit
save
exit
Update from your newly-enabled repo
sudo apt-get update
Install pip
sudo apt-get install python-pip
Install speedtest-cli with pip
sudo pip install speedtest-cli
Write the csv headers to a new log file
speedtest-cli --csv-header > /home/ubnt/speedtest-log.csv
Edit cron
crontab -e
Append this to run a speedtest every 15 minutes
*/15 * * * * /usr/local/bin/speedtest-cli --csv >> /home/ubnt/speedtest-log.csv
(Cron opens with vi by default. i
for insert mode, Esc
to go back to command mode, :wq
to write and quit.