Friday, May 25, 2018

How to use your Raspberry Pi to monitor broadband speed

How to use your Raspberry Pi to monitor broadband speed

Step 1: Check for updates

As usual, let’s start with checking for the latest updates. Run the following commands in Terminal:
sudo apt-get update
sudo apt-get upgrade

Step 2: Install speedtest-cli

There are various methods to measure the speed of broadband connection. We’re going to use speedtest-cli, which, in the words of its creator, is “a command line interface for testing internet bandwidth using”
speedtest-cli isn’t available right away from the Raspbian archives, but we can install it from the Python Package Index (PyPI). That’s easy to do so by using a tool called pip that comes preinstalled on Raspbian Jessie and Stretch. You can make sure that you have pip by running this command:
sudo apt-get install python-pip
If you a message that reads “python-pip is already the newest version,” that means that we’re good to go.
Next, let’s use pip to install speedtest-cli:
sudo pip install speedtest-cli
With speedtest-cli now installed, you can measure your broadband speed easily with this command:
Though, for our purposes, using speedtest-cli’s simple mode is more convenient:
speedtest-cli --simple
You should see something like this:
Ping: 47.943 ms
Download: 40.93 Mbit/s
Upload: 2.33 Mbit/s
sumber :

50wpm Recording #84