From 1e6f694d808dea0674166827c847dce191f4f840 Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Sun, 16 Jun 2024 07:43:21 -0400 Subject: [PATCH] Add script to register for AussieADSB feed (#103) * add AussieADSB registration script * update readme * make independent of container run * update * update readme * minor update * fix typo * Update aussieadsb.sh * Update aussieadsb.sh * Update aussieadsb.sh * Add netcat-traditional and net-tools to install check * Update README.md * Update aussieadsb.sh * Update aussieadsb.sh --- README.md | 7 ++ aussieadsb.sh | 285 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 292 insertions(+) create mode 100755 aussieadsb.sh diff --git a/README.md b/README.md index 0a61549..e00d45b 100644 --- a/README.md +++ b/README.md @@ -343,9 +343,16 @@ There are several aggregators, both non-profit and commercial, that can directly | ADSB Exchange | C | Large aggregator owned by JetNet | adsb:`feed1.adsbexchange.com` port `30004`
mlat: `feed.adsbexchange.com` port `31090` | | RadarPlane | N | Run by a few aviation enthusiasts in Canada and Portugal | adsb: `feed.radarplane.com` port `30001`
mlat: `feed.radarplane.com` port `31090` | | Fly Italy ADSB | N | Run by a few aviation enthusiasts in Italy | adsb: `dati.flyitalyadsb.com` port `4905`
mlat: `dati.flyitalyadsb.com` port `30100` | +| AussieADSB | C | Small semi-commercial aggregator focused uniquely on Australia/Oceania. See . See below on how to configure a feed to them | adsb: `aussieadsb.com` port (varies)
mlat: `aussieadsb.com` port `30000` | When feeding AdsbExchange, Ultrafeeder will send statistics to adsbexchange.com by default. See the description of the `ADSBX_STATS` parameter on how to disable this. +To feed AussieADSB (Australia/Oceania only!), execute this command on your host and follow the instructions. You can also use this command to de-register your feeder, or to see its status: + +```bash +bash <(wget -qO - https://raw.githubusercontent.com/sdr-enthusiasts/docker-adsb-ultrafeeder/dev/aussieadsb.sh) +``` + ##### Alternate Configuration Method with `READSB_NET_CONNECTOR` Instead of (or in addition to) using `BEASTHOST`, you can also define ADSB data ingests using the `READSB_NET_CONNECTOR` parameter. This is the preferred way if you have multiple sources or destinations for your ADSB data. This variable allows you to configure incoming and outgoing connections. The variable takes a semicolon (`;`) separated list of `host,port,protocol[,uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX]`, see the section [All-in-One Configuration using `ULTRAFEEDER_CONFIG`](#all-in-one-configuration-using-ultrafeeder_config) for explanation of these parameters. diff --git a/aussieadsb.sh b/aussieadsb.sh new file mode 100755 index 0000000..b7d9c60 --- /dev/null +++ b/aussieadsb.sh @@ -0,0 +1,285 @@ +#!/bin/bash + +# shellcheck shell=bash disable=SC2015,SC2162 +# +# Registration and query utility for aussieadsb, +# Meant for those who want to feed AussieADSB with Ultrafeeder +# +# AussieADSB is an Australian aggregator focused on feeders in Australia/Oceania. +# If you are in this region and are interested in feeding to them, please see: +# http://aussieadsb.com/ +# +# You can run this script from any modern Debian Linux machine with this command: +# bash <(wget -qO - https://raw.githubusercontent.com/sdr-enthusiasts/docker-adsb-ultrafeeder/main/aussieadsb.sh) +# +#--------------------------------------------------------------------------------------------- +# Copyright (C) 2024 Ramon F. Kolb (kx1t) and contributors +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. +# If not, see . +#--------------------------------------------------------------------------------------------- +# + +AAClientVersion="1.2.0" +argv="${1,,}" +if [[ "${argv:0:1}" != "-" ]]; then argv="-$argv"; fi + +while [[ "$argv" == "-" ]]; do + echo "AussieADSB registration utility" + echo "Visit https://aussieadsb.com for info" + echo + echo "Select an option:" + echo "(r)egister -- register a new receiver" + echo "(d)e-register -- deregister a receiver" + echo "(u)pdateinfo -- update your registration info" + echo "(s)tatus -- show the feeding status" + read -n 1 argv + echo + argv="${argv,,}" + case "$argv" in + r) argv="-register" ;; + d) argv="-deregister" ;; + u) argv="-updateinfo" ;; + s) argv="-status" ;; + *) echo "invalid selection, try again" ;; + esac +done + +if [[ "$argv" == "-help" ]]; then + echo "Usage: $0