Merge pull request #9 from tmantti/adsb-fi-scripts

Improve readme and install lighttpd with the local interface
This commit is contained in:
tmantti 2023-02-13 04:20:42 +02:00 • committed by GitHub
commit 0f4a31390a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -26,7 +26,10 @@ tcp 0 182 localhost:43530 65.109.2.208:31090 ESTABLISHED
tcp 0 410 localhost:47332 65.109.2.208:30004 ESTABLISHED
```
## 4: Optional: Install local interface for your data http://192.168.X.XX/adsbfi
## 4: Optional: Install [local interface](https://github.com/wiedehopf/tar1090) for your data
The interface will be available at http://192.168.X.XX/adsbfi
Replace the IP address with the address of your Raspberry Pi.
Install / Update:
```
@ -70,6 +73,8 @@ sudo bash /tmp/feed.sh
### Disable / Enable adsb.fi MLAT-results in your main decoder interface (readsb / dump1090-fa)
This is enabled by default. You probably don't need to change that.
- Disable:
```

View file

@ -3,6 +3,10 @@
set -e
trap 'echo "------------"; echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
if ! command -v lighttpd &>/dev/null; then
apt-get update || true; apt-get install -y --no-install-recommends --no-install-suggests lighttpd || true
fi
function getGIT() {
# getGIT $REPO $BRANCH $TARGET-DIR
if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]]; then