- Go to the Google Docs dashboard and create a new Spreadsheet using the big green "+" button on the right bottom:
- Name the title of the spreadsheet "
Speedtest
", otherwise you can useSPREADSHEET
environment variable while executing the script to use a different name. - Fill in the first four columns
Date
,Download
,Upload
andPing
:
- Run the
speedtest-to-google
script to make sure it's working:
/usr/local/bin/speedtest-to-google
- Yep, it works:
- Setup a cronjob so the speedtest runs automatically:
crontab -e
and insert the following line to make the speedtest run every 10 minutes:
*/10 * * * * PATH=$PATH:/usr/local/bin /usr/local/bin/speedtest-to-google
Save and quit using Ctrl + X.
- Now back in the spreadsheet, select the whole columns A - D by clicking on A, then with Shift + Click on D:
- Click on "Insert" => "Chart" to create a chart.
- In the "Start" tab type in,
Sheet1!A:D
:
- In the "Charts" tab select a appropriate line chart type, "line chart" for example:
- Click on the "Customise" tab for the final adjustments.
- At the very top, check "Compare mode" in the features:
- Scroll down to the "Series" group and select "Ping" in the drop down menu, then set it to "Left axis":
- Finally, click on "Insert" to transfer the chart in your spreadsheet.
- Now click on the little arrow in the top right corner of the chart and select "Publish chart":
- Hit "Publish" to receive an URL which is publicly available.