An ansible project to turn a raspberry pi into a mobile network speedtesting robot
-
This is based on using an Android phone using USB tethering to provide connectivity. You need to provide the interface name that will be used for the speedtest
speedtest_interface_device
(this defaults tousb0
) and optionallyspeedtest_gw_address
(if this is not provied then the default gateway for `speedtest_interface_device will be used) -
You will need to add the ip address (or hostname) of your raspberry pi to your hosts file so that
raspberrypi-speedtest-analyser
will resolve to the ip address of the raspberry pi you are targeting. Alternatively you can modify the inventory file. -
Run the
configure.yml
playbook to configure the raspberry piansible-playbook -i inventory/ configure.yml
(the command must be run in theansible
directory of this project) -
Navigate to http://raspberrypi-speedtest-analyser in your browser to view the results. (default grafana credentials are admin:admin)
python3
sudo apt install python3
sshpass
sudo apt install sshpass
ansible
sudo pip3 install ansible