Skip to content

scottvlaminck/raspberrypi-speedtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspberrypi-speedtest

Inspired by Make magazine http://makezine.com/projects/send-ticket-isp-when-your-internet-drops/

Setup

Prep your Raspberry Pi for doing the speedtest, per the article

  • sudo apt-get install python-pip
  • sudo pip install speedtest-cli

Test

  • speedtest-cli
  • speedtest-cli --simple

Install the extras

  • sudo apt-get update
  • sudo apt-get install git
  • git clone https://github.com/HenrikBengtsson/speedtest-cli-extras.git

Test

  • /home/pi/speedtest-cli-extras/bin/speedtest-csv

Prep your Raspberry Pi for saving the speedtest results (via this project)

Install google api client for python

  • git clone https://github.com/google/gdata-python-client.git
  • cd gdata-python-client; sudo python ./setup.py install

Clone this project

  • git clone https://github.com/scottvlaminck/raspberrypi-speedtest
  • cd raspberrypi-speedtest

Config this project

ConnectionType startdate stopdate provider ip speedtestserver distance pingtime downloadspeed uploadspeed resultimg

Test this thing

  • run.sh
    • NOTE: This run.sh script is helpful, but very naive. It assumes that this project lives side-by-side with the speedtest-cli-extras/ directory. If that's not true, you should skip using it.
  • verify the sheet has a row of data

Run the script at the top of each hour

Add it to cron

  • crontab -e
  • In the resulting editor, add the following line:

0 * * * * /home/pi/raspberrypi-speedtest/run.sh

Graph the data

  • Update the spreadsheet to graph the data

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published