Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for 7.2 #124

Merged
merged 5 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add MLAT_RESULTS_BEASTHOST/MLAT_RESULTS_BEASTPORT
  • Loading branch information
mikenye committed Mar 28, 2022
commit 70cda37bdf4d24139890ef4dab284750d4239d15
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ Use only with `RECEIVER_TYPE=relay`.
| -------------------- | --------------- | ------- | ------- |
| `BEASTHOST` | a hostname or IP | Specify an external BEAST protocol provider (dump1090/readsb/etc). | |
| `BEASTPORT` | a port number | Specify the TCP port number of the external BEAST protocol provider. | `30005` |
| `MLAT_RESULTS_BEASTHOST` | a hostname or IP | Specify an external host where MLAT results should be sent. | |
| `MLAT_RESULTS_BEASTPORT` | a port number | Specify the TCP port number where MLAT results should be sent. | `30104` |

### Receiver Configuration (978MHz)

Expand Down
8 changes: 8 additions & 0 deletions rootfs/etc/cont-init.d/01-piaware
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ else
ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" >/etc/timezone
fi

# Wipe piaware config, will be re-created below
rm /etc/piaware.conf > /dev/null 2>&1

# Set up piaware
piaware-config allow-auto-updates no
piaware-config allow-manual-updates no
Expand Down Expand Up @@ -82,6 +85,11 @@ elif [[ "$UAT_RECEIVER_TYPE" == "rtlsdr" ]]; then

fi

# If MLAT_RESULTS_BEAST_CONNECT is specified
if [[ -n "$MLAT_RESULTS_BEASTHOST" ]]; then
piaware-config mlat-results-format "$(piaware-config -show mlat-results-format) beast,connect,${MLAT_RESULTS_BEASTHOST}:${MLAT_RESULTS_BEASTHOST:-30104}"
fi

# Create log dir for piaware
mkdir -p /var/log/piaware
chown nobody:nogroup /var/log/piaware
Expand Down