Skip to content

Installing Speedtest Mod

itsmesid edited this page Oct 2, 2020 · 37 revisions

Install Speedtest CLI !!!!!!!!! Important !!!!!!!!!

Install Speedtest CLI

Start with installing required packages on your Raspberry Pi / Linux

sudo apt install python-pip # not required for official CLI

sudo pip install speedtest-cli # not required for official CLI

sudo apt install sqlite3

sudo apt install jq -y

Configure correct timezone for graph *Need for graph to work correctly

sudo dpkg-reconfigure tzdata  

Select your timezone

Find php version

php -v

if it is 5.x

sudo apt install php5-sqlite

if it is 7.x

sudo apt install php7.x-sqlite  // change `x` to your version # if failed try php7.x-sqlite3

Restart Pi###

sudo reboot

You can try run it using

speedtest-cli -h

If Everything is ok, proceed to next step

Backup original admin folder

sudo su
cd /var/www/html
mv admin org_admin
git clone https://github.com/arevindh/AdminLTE admin

Get latest webscripts file

cd /opt/pihole/
mv webpage.sh webpage.sh.org
wget https://github.com/arevindh/pi-hole/raw/master/advanced/Scripts/webpage.sh

Go to the settings page

Set speedtest schedule and Display range Tick Flush speedtest history (for the first time only) Set speedtest mode to Official CLI

Select server choice (optional)

Get your server id from here https://c.speedtest.net/speedtest-servers-static.php #56

Test Pihole speedtest from commandline

sudo "/var/www/html/admin/scripts/pi-hole/speedtest/speedtest-official.sh" 

Done

Instructions

Clone this wiki locally