This allows you to test your internet service and get an regular email with the bandwidth test.
Requirements
- Speedtest CLI
Install
Python -c:\python
Speedtest_CLI – c:\scripts
SendEmail – c:\scripts\sendEmail
Crontab -(Default)
Setup
- Create folder c:\scripts
- Run and connect to Atlanta Comcast
- Hosted by Comcast (Atlanta, GA) : Server # 1767
- c:\python34\python c:\scripts\speedtest_cli.py –server 1767
- See Results below for example
- Batch File ( c:\scripts\speedtest.bat )
- Add to Crontab
Every hour – 0 * * * * c:\scripts\speedtest.bat
c:\scripts\speedtest.bat
date /T > c:\scripts\ga.sp
time /T >> c:\scripts\ga.sp
c:\python\python c:\scripts\speedtest_cli.py –server 1767 >> c:\scripts\ga.sp
c:\scripts\sendemail\sendemail -f %COMPUTERNAME%@%USERDOMAIN% -t stanford@tech.vi -u “SpeedTest %DATE:~4,2%-%DATE:~7,2%-%DATE:~-4%” -o message-file=”C:\scripts\ga.sp” -a “C:\scripts\ga.sp”
Results (e.g) :
Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from Communications Technologies (xx.xx.xx.xx)…
Hosted by Comcast (Atlanta, GA) [2588.72 km]: 126.965 ms
Testing download speed………………………………….
Download: 4.06 Mbits/s
Testing upload speed…………………………………………..
Upload: 4.30 Mbits/s