Created
February 24, 2016 08:01
-
-
Save teopost/9bfcaff94315342d263e to your computer and use it in GitHub Desktop.
speedtest-dweet.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# https://freeboard.io/board/A1wZfc | |
output=$(speedtest-cli --simple) | |
ping_data=$(echo $output | cut -d" " -f2) | |
download_data=$(echo $output | cut -d" " -f5) | |
upload_data=$(echo $output | cut -d" " -f8) | |
# Send data to dweet.io and show results to https://freeboard.io/board/uIM2gc | |
curl -i "https://dweet.io/dweet/for/teopost-speedtest?ping=${ping_data}&download=${download_data}&upload=${upload_data}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment