Let’s create a new Python file: sudo nano speedtest.py Therefore, we’ll need to parse the data and make it conform. However, that output doesn’t conform to the CSV syntax. Though, for our purposes, using speedtest-cli’s simple mode is more convenient: speedtest-cli -simple With speedtest-cli now installed, you can measure your broadband speed easily with this command: speedtest-cli Next, let’s use pip to install speedtest-cli: sudo pip install speedtest-cli If you a message that reads “python-pip is already the newest version,” that means that we’re good to go. You can make sure that you have pip by running this command: sudo apt-get install python-pip That’s easy to do so by using a tool called pip that comes preinstalled on Raspbian Jessie and Stretch. Speedtest-cli isn’t available right away from the Raspbian archives, but we can install it from the Python Package Index (PyPI). We’re going to use speedtest-cli, which, in the words of its creator, is “a command line interface for testing internet bandwidth using .” There are various methods to measure the speed of broadband connection. Sudo apt-get upgrade Step 2: Install speedtest-cli Run the following commands in Terminal: sudo apt-get update How to use your Raspberry Pi to monitor broadband speed Step 1: Check for updatesĪs usual, let’s start with checking for the latest updates. This how-to will assume you already have Raspbian installed on your Pi. Sound like a handy thing? Then let’s get started. CSV is a very simple file format that can be opened in Microsoft Excel or imported to Google Sheets. The monitor will create a CSV (comma-separated values) file to your Google Drive and update that file once an hour. But once we’ve laid the groundwork, we can automate our broadband monitor so that it keeps right on monitoring for as long as we want. This project involves a fair bit of setup, including downloading and installing some packages, writing a Python script, and more. Did you enjoy my blog post? If you did and you want to show your appreciation, maybe click the coffee mug below and sponsor me a cup of coffee.In this article, we’ll show you how to use the Raspberry Pi to monitor broadband speed. But then again, they give a pretty good idea if the connection speeds you expect (and are paying for) are in the right ballpark. Testing upload speed.īTW, I'm perfectly aware that these kinds of speed tests are not exact and come with all kinds of problems. For that reason I found speedtest-cli which does that trick. The only remaining use case for my now are terminal-only speed-tests, which I occasionally have to perform when SSH'ed into on of my Raspberry Pis. But basic speed tests themselves are now fully covered across all devices by Google. That way you can compare if your connection speed has changed for better or worse over time. The only remaining benefit of apps like Windows Store Network Speed Test and Ookla are the results of historic runs now. However, it was not that long ago, when I was searching for the web-based version of the Ookla speed test, that I discovered that Google now have a "built-in" browser-based speed test of their own (just google for "speedtest"). aww memories) days, I was mainly relying on the Network Speed Test Windows Store app for performing these kinds of quick tests and I still install it habitually on all the Windows PCs of friends and family, I have to maintain regularly.Īfter having moved my devices first to Android and Linux, later to iOS and OSX, my preferred speed test solution became Ookla Speedtest, which had an app for most devices and also a browser-based version of their speed test. Running speed tests and measuring your internet connection speed is fun right? Nothing more satisfying than seeing the actual numbers for that pricey package you're paying your ISP each month.īack in my good old Windows ( and Windows Phone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |