Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Tilde/Bash_Tilde_Access.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ In this example, jq is extracting all JSON fields that have info on available st

`curl --silent "${ip}/${v}/dataSummary/dart" | jq -r '.domain[] | .stations[] | .station'`

To extract a list of all available combinations of names and methods for a given domain, in a list separated by a tab:

`curl --silent "${ip}/${v}/dataSummary/envirosensor" | jq -r '"\(.domain[].names[].name)\t\(.domain[].names[].methods[].method)"' | sort -u`

To visualise all metadata available via Tilde for a specific site, you can use the available API endpoint and then reformat the output with jq. This example is for NZE but to substitute for different sites or domains, change the domain name and the "station=NZE" section.

`curl "${ip}/${v}/dataSummary/dart?station=NZE" | jq -r .`
Expand Down