Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
/home/pi/bin/speedtest-cli --server 14623 --json | jq --arg date $(date "+%s") '[{name: "", value: (.download / 1000000), time: $date|tonumber}, {name: "speed_test.upload", value: (.upload / 1000000), time: $date|tonumber}]' | curl -X POST -H "X-Api-Key: #{API_KEY}" -H "Content-Type: application/json" -d @-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.