Skip to content

Instantly share code, notes, and snippets.

@jamiew
Last active January 29, 2020 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiew/83f9768418827652d2dc947c3fc764d3 to your computer and use it in GitHub Desktop.
Save jamiew/83f9768418827652d2dc947c3fc764d3 to your computer and use it in GitHub Desktop.
Fetch node score from Helium API
#!/bin/sh
# requires jq, for manipulating JSON:
# brew install jq
#
# find your hotspot's address here:
# https://explorer.helium.foundation/api/hotspots/
address="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl -s "https://explorer.helium.foundation/api/hotspots/$address" | jq '.data .score'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment