Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
13
.travis.yml
13
.travis.yml
|
@ -1,13 +0,0 @@
|
||||||
language: shell
|
|
||||||
dist: stretch
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- sudo apt update
|
|
||||||
- sudo apt upgrade
|
|
||||||
- sudo apt install git
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
provider: script
|
|
||||||
script: sudo bash ./install.sh
|
|
||||||
on:
|
|
||||||
branch: master
|
|
|
@ -6,7 +6,7 @@ This script was designed to work with [ADS-B Exchange's Raspberry Pi image: ADSB
|
||||||
|
|
||||||
#### HOW DOES IT WORK?
|
#### HOW DOES IT WORK?
|
||||||
|
|
||||||
The script runs as a service that cycles every 10 min, once the initial GPS fix is made. It uses [awk](http://manpages.ubuntu.com/manpages/bionic/man1/awk.1plan9.html) to retrieve the latitude, longitude and elevation from [gpspipe](http://manpages.ubuntu.com/manpages/trusty/man1/gpspipe.1.html). It then rounds the elevation to the nearest whole decimal. Next, it uses the values of `gpsLon` and `gpsLat` to calculate your current position with the previous position to see if it needs to update your location. If it needs to update, it will create a new config file for ADSBx and restart the services. If no update is needed, it will sleep for 10 minutes and check again. If for some reason, you cannot get a GPS fix, it will use your last know coordinates until a GPS fix can be established. The script is to designed to update only after a minimum of 4 satellites multilaterates your position (i.e. the pi receives elevation data).
|
The script runs as a service that cycles every 10 min, once the initial GPS fix is made. It uses [awk](http://manpages.ubuntu.com/manpages/bionic/man1/awk.1plan9.html) to retrieve the latitude, longitude and elevation from [gpspipe](http://manpages.ubuntu.com/manpages/trusty/man1/gpspipe.1.html). It then rounds the elevation to the nearest whole decimal. Next, it uses the values of `gpsLon` and `gpsLat` to calculate your current position with the previous position to see if it needs to update your location. If it needs to update, it will create a new config file for ADSBx and restart the services. If no update is needed, it will sleep for 10 minutes and check again.
|
||||||
|
|
||||||
#### PRE-REQUISITES
|
#### PRE-REQUISITES
|
||||||
|
|
||||||
|
@ -53,6 +53,8 @@ At the top of the script, you'll want to edit the 2 variables to specify when th
|
||||||
gpsLon="0.004" #approx. 1,215 ft
|
gpsLon="0.004" #approx. 1,215 ft
|
||||||
#Diagonally, this is approx. 1,637 ft
|
#Diagonally, this is approx. 1,637 ft
|
||||||
|
|
||||||
|
I will be making updates to this script, so if you find this useful, please check back often for updates.
|
||||||
|
|
||||||
#### INSTALLATION
|
#### INSTALLATION
|
||||||
|
|
||||||
$ sudo ./install.sh
|
$ sudo ./install.sh
|
||||||
|
|
|
@ -1,43 +1,12 @@
|
||||||
# !!!!! HEADS-UP WINDOWS USERS !!!!!
|
LATITUDE=1.12345
|
||||||
#
|
|
||||||
# Do not use Wordpad for editing this file, it will mangle it and your
|
|
||||||
# configuration won't work. Use a proper text editor instead.
|
|
||||||
# Recommended: Notepad, Notepad++, VSCode, Atom, SublimeText.
|
|
||||||
#
|
|
||||||
# !!!!! HEADS-UP MACOSX USERS !!!!!
|
|
||||||
#
|
|
||||||
# If you use Textedit to edit this file make sure to use "plain text format"
|
|
||||||
# and "disable smart quotes" in "Textedit > Preferences", otherwise Textedit
|
|
||||||
# will use none-compatible characters and your network configuration won't
|
|
||||||
# work!
|
|
||||||
|
|
||||||
# location
|
LONGITUDE=-1.2345
|
||||||
# note the (-) sign
|
|
||||||
# for your hemisphere
|
|
||||||
# If latitude is positive, the position is on the northern hemisphere.
|
|
||||||
# If latitude is negative, it is on the southern hemisphere.
|
|
||||||
# If west of prime meridian, then longitude is negative.
|
|
||||||
# If east of prime meridian, then longitude is positive.
|
|
||||||
LATITUDE=3.366016
|
|
||||||
LONGITUDE=-11.694583
|
|
||||||
|
|
||||||
# altitude above MSL (mean sea level)
|
ALTITUDE=150ft
|
||||||
# meters 1050m (no space between number and ft)
|
|
||||||
# feet 10050ft (no space between number and ft)
|
|
||||||
ALTITUDE=60440ft
|
|
||||||
|
|
||||||
# mlat feeder name
|
USER="buster_adsbx_change_me"
|
||||||
USER="W1LMS-ADSB01"
|
|
||||||
|
|
||||||
# dump1090
|
|
||||||
DUMP1090=yes
|
DUMP1090=yes
|
||||||
GAIN=40.2
|
GAIN=49.2
|
||||||
AUTOGAIN=yes
|
|
||||||
|
|
||||||
# dump978
|
|
||||||
DUMP978=no
|
DUMP978=no
|
||||||
|
|
||||||
# remote support via zerotier
|
|
||||||
ZEROTIER=no
|
|
||||||
# web GUI
|
|
||||||
PROMG=yes
|
|
|
@ -14,8 +14,6 @@ if [ -z $DEVICES ] ; then # A GPS device must be configured for this script/serv
|
||||||
fi
|
fi
|
||||||
if [ -f /boot/adsb-config.txt ] ; then # This script checks to make sure the ADSBx config file is present,
|
if [ -f /boot/adsb-config.txt ] ; then # This script checks to make sure the ADSBx config file is present,
|
||||||
# since it has only been tested with the ADSBx Buster image
|
# since it has only been tested with the ADSBx Buster image
|
||||||
apt update
|
|
||||||
|
|
||||||
if [ "$(command -v awk | wc -l)" -eq 0 ] ; then # Installing required packages if missing
|
if [ "$(command -v awk | wc -l)" -eq 0 ] ; then # Installing required packages if missing
|
||||||
apt install gawk -y
|
apt install gawk -y
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue