VirusPilot / ogn-pi34

scripts to built an OGN station on a Pi Zero 2W, Pi3, Pi4 or Pi5 based on OGN version 0.3.2 and RasPiOS Lite (32bit or 64bit)
17 stars 2 forks source link

scripts to built a receiver station to feed the Open Glider Network

supported platforms by these scripts:

packages for manual update of legacy platforms

prepare script for Pi3, Pi4, Pi5 or Pi Zero 2W:

preparation of credentials

During the setup process you will be automatically asked to edit Template.conf and potentially dump1090-fa for which you should have the following credentials at hand:

SDR selection and ppm correction:

RF:
{
  Device   = 0;            # device selection based on SDR index number, please doublecheck post-install using "rtl_test"
  #DeviceSerial = "868";   # alternative device selection based on SDR serial number (SN), please doublecheck post-install using "rtl_test"
  FreqCorr = 0;            # [ppm] SDR correction factor, newer sticks have a TCXO so no correction required
  SampleRate = 2.0;        # [MHz] 1.0 or 2.0MHz, 2MHz is required to captue PilotAware
  BiasTee  = 0;            # just a safeguard
};

In case your OGN station is in an area with no GSM stations then the automatic gsm_scan should be deactivated by changing to GSM.CenterFreq=0 (as an alternative you can ommit the entire GSM section for SDRs with TCXO):

GSM:                  # for frequency calibration based on GSM signals
{                     # you can ommit the whole GSM section for sticks with TCXO
  CenterFreq  =    0; # [MHz] you may enter the GSM frequency that you found with gsm_scan but ONLY if you have GSM stations nearby
  Gain        = 25.0; # [dB]  RF input gain (beware that GSM signals are very strong)
};

GPS coordinates and altitude for your OGN station:

Position:
{ 
  Latitude   =   +48.0000; # [deg] please put in the appropriate latitude for your OGN station antenna
  Longitude  =   +10.0000; # [deg] please put in the appropriate longitude for your OGN station antenna
  Altitude   =        500; # [m]   altitude AMSL, please put in the appropriate altitude for your OGN station antenna
};

Required configuration for feeding Open Glider Network with ADS-B traffic:

ADSB:                      # feeding Open Glider Network with ADS-B traffic
{
  AVR = "localhost:30002"; # disable this line if you DO NOT WANT to feed Open Glider Network with ADS-B traffic
  MaxAlt = 18000;          # [ft] default maximum altitude, feel free to increase but this will potentially increase your internet traffic
};

Replace with your actual APRS callsign, please refer to http://wiki.glidernet.org/receiver-naming-convention:

APRS:
{
  #Call = "NewOGNrx";          # enable this line and replace <NewOGNrx> with your actual APRS callsign, e.g. your local airport ICAO code (max. 9 characters)
                               # please refer to http://wiki.glidernet.org/receiver-naming-convention
};

In case you plan to combine the OGN station with a dump1090-fa feeder (like in the alternative install script below), the following section is required:

HTTP:           # this section is required to be able to monitor the different status pages of your receiver
{               # e.g. http://raspberrypi:8080 for monitoring ADS-B traffic
  Port = 8082;  # e.g. http://raspberrypi:8082 for monitoring the RTLSDR OGN RF processor status page
};              # e.g. http://raspberrypi:8083 for monitoring the RTLSDR OGN demodulator and decoder status page

automatic setup (standard script)

automatic setup (alternative script that installs dump1090-fa in addition)

steps to manually upgrade legacy platforms

ogn-rf and ogn-decode need to be replaced, here are the required steps:

post install modifications

remove Raspberry Pi USB power supply limitation