See here.
Although this script is written on Python, I suggest you to run it on a Raspberry Pi as the setup scripts are optimized for Raspberry Pi OS (Debian).
I actually appreciate Fing's automated speedtest feature, but the software itself is only available on Windows and Mac computers. This is a Linux-based equivalent of the daily speedtest feature on Fing, powered by Speedtest.net from Ookla.
- Install
git
and clone this repository on your home directory (example:/home/(USERNAME)
).
sudo apt-get install git
cd ~
git clone https://github.com/weareblahs/unspeedtest
- Install Ookla's Speedtest CLI by running these commands:
sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest
- After running these commands, run
speedtest
and accept EULA. It is recommended to let the first speedtest end to see if it's working from your side.
To modify when will the automated speedtest starts, edit cron
from the unspeedtest
directory.
- By default,
0 0 * * *
means that unspeedtest will run automated speedtests on 12am everyday if the device is turned on. To generate cron expressions, usehttps://crontab.guru/
orhttps://crontab.cronhub.io/
and replace0 0 0 0 0
with what you've got from the generators.
- Make
setup.sh
executable and start the setup. Do note that the setup script won't work if you're not running withsudo
permissions.
chmod +x setup.sh
sudo ./setup.sh
- Visit
http://raspberrypi.local/unspeedtest
(or replaceraspberrypi.local
with the IP address you got fromhostname -I
) to see if it's working. If it's working, you'll see this page: - Go to terminal and start your first manual unspeedtest session.
cd ~/unspeedtest
./unspeedtest.sh
See here.