Skip to content

Instantly share code, notes, and snippets.

@teopost
Created February 24, 2016 08:01
Show Gist options
  • Save teopost/9bfcaff94315342d263e to your computer and use it in GitHub Desktop.
Save teopost/9bfcaff94315342d263e to your computer and use it in GitHub Desktop.
speedtest-dweet.sh
#/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