An open source python script to display network speed in command line and write it to an external I2C 16x2 display.
The script will check your internet connection every 120 seconds (changeable with options) and print the up- and download speed into the console and display. In addition, it will save the result into a csv file.
The display contains of the current download speed, upload speed and the average from the last ten probes. The timer can be customized with the option python3 run-speedtest-display --sleep [integer]
To install clone this repository and run
sudo ./install.sh
The device will reboot after completed.
The script was developed for a 16x2 I2C display, which can be found for cheap on Amazon.com. For wiring setup, please check the wiki.
To run the script, execute
python3 run-speedtest-display.py
To print all available options, use
python3 run-speedtest-display.py --help
Credits go to https://github.com/the-raspberry-pi-guy/ on teaching how to communicate with i2c