Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/home/pi/bin/speedtest-cli --server 14623 --json | jq --arg date $(date "+%s") '[{name: "speed_test.download", 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" https://api.mackerelio.com/api/v0/services/Home/tsdb -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.