Awaiting a speed increase on you Internet connection but it's not there yet?
Want to know within an hour when the speed increase happens?
Create a crontab entry
1 | crontab -e |
With this content
1 2 | MAILTO= "" 0 * * * * /Users/username/sites/speedtest/speedtest .sh >> /Users/username/sites/speedtest/output .log 2>&1 |
Install speedtest-cli
1 2 3 | brew install speedtest-cli # for parsing the json output brew install jq |
Create a script that calculates the Mbps value and set a LOWER value to send an email at in this case
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/sh PATH= /usr/local/bin : /usr/local/sbin :~ /bin : /usr/bin : /bin : /usr/sbin : /sbin BITS=`speedtest-cli --no-upload --json | jq '.download' ` MBITS=1000000 CALC=` echo $BITS / $MBITS | bc ` # lowest Mbps value you will accept as the speed increasing LOWER=4 if [ "$CALC" -gt "$LOWER" ] then echo "The internet speed has risen to $CALC Mbps" | mail -s "Internet SpeedTest" james@toggen.com.au echo ` date ` "Yas" else echo ` date ` "MBITS = $CALC" fi |
How are you controlling which speedtest server the test is run against? In my experience, results vary, often significantly, based on the server that is used for the test.
In short i'm not. Australia doesn't have too many options on the east coast so it will be Sydney or Melbourne. And given the choke point is my internet connection I wasn't overly worried