Skip to content

Instantly share code, notes, and snippets.

@SkyWriter
Created February 22, 2021 15:10
Show Gist options
  • Save SkyWriter/fd5d014535a9471e51a2b457c2a29f43 to your computer and use it in GitHub Desktop.
Save SkyWriter/fd5d014535a9471e51a2b457c2a29f43 to your computer and use it in GitHub Desktop.

Revisions

  1. SkyWriter created this gist Feb 22, 2021.
    11 changes: 11 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # Steps

    0. Install the dependencies: curl and jq.

    1. Generate locations CSV file:

    $ curl -sS 'https://api.bran...
    2. Upload it to https://www.gpsvisualizer.com/map_input?form=googleearth to generate a KMZ file.

    3. Use Google Earth to browse waypoints.
    3 changes: 3 additions & 0 deletions gen_csv.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/usr/bin/env bash

    curl -sS 'https://api.brandmeister.network/v1.0/repeater/?action=LIST&callback=jQuery21409266752848243749_1614003744281&_=1614003744283' | sed 's#^jQuery[0-9_]*(##g' | sed 's#)$##g' | jq '.[] | select(.pep != null) | select((.pep | tonumber) > 1.0) | select(.status == "3") | {name: .callsign, desc: "\(.repeaterid) \(.callsign) RX\(.rx) TX\(.tx) CC\(.colorcode)", latitude: .lat, longitude: .lng}' | jq -s | jq -r '(map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv' > repeaters.csv