1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[WORKING] Feeding FA and ADSBx with FA Piaware 3.6.3 (keyboard & screen)

Discussion in 'Feeding' started by James, Oct 10, 2018.

  1. James

    James Administrator Staff Member

    This assumes you have a mouse and keyboard or can putty (ssh) into the Pi once image is burned and everything is plugged in.

    TO USE SSH OR PUTTY REMOTELY

    Secure shell is not enabled on raspbian by default, to enable place a blank file called ssh.txt or ssh on sd card in same location as piaware-config.txt, on windows it just shows up as the sd card.

    It's best to use piaware-config.txt to configure your WiFi.

    This tutorial does not use a config file for ASDBx but instead uses the bash script setup installer. You will specify latitude, longitude, altitude, and the port number for ASDBx.

    Later you can change these by rerunning the setup.sh script.


    Download 3.6.3 from FlightAware website.

    http://piaware.flightcdn.com/piaware-sd-card-3.6.3.img.zip

    1. Write it to SD using etcher.io or your preferred img writer.
    2. Edit the piaware-config.txt like instructed by FlightAware setup.
    3. Put SD card in, plug in USB sdr and antenna.
    4. If using screen and keyboard - plug those in.
    5. Power the Pi feeder.
    FlightAware default login is:

    pi
    flightaware

    Then login using one of the below:

    if using mouse and keyboard
    ALT+F2 gets you to console login

    Run the following commands

    Code:
    sudo apt update
    sudo apt upgrade
    
    then install git and run the setup script

    Code:
    sudo apt-get install git
    git clone https://github.com/adsbxchange/adsb-exchange.git
    cd adsb-exchange
    chmod +x setup.sh
    sudo ./setup.sh
    
    The setup will prompt you for latitude, longitude, altitude, a unique name for feeder, and an optional custom port. Most feeders will use anonymous 30005 port.

    After setup completes, reboot the Pi.

    Code:
    sudo reboot
    
    The following scripts should have been started on boot from rc.local.

    adsbexchange-netcat_maint.sh
    adsbexchange-mlat_maint.sh

    You can check with htop.

    Code:
    sudo apt install htop
    
    htop
    hit F5

    Use arrow keys to scroll and move around.

    Success!

    Beware Flight Aware has overridden Raspbian software repositories in 3.6.3, so they now control what software you can install and what is available version wise.
     
    Olivier and Rick like this.
  2. James

    James Administrator Staff Member

    NOT NEEDED - HERE FOR REFERENCE ONLY

    For historical reasons and not needed with FA 3.6.3


    You can also specify a WiFi config by placing wpa_supplicant.conf in the same directory as piaware-config.txt.

    This is a minimal configuration to get you working. If you need other options or specifics for your WiFi. See Raspbian forums.

    HELP: https://www.raspberrypi.org/forums/viewtopic.php?t=191252

    wpa_supplicant.conf

    This file must contain the following for 2.4 Ghz and 5 Ghz WiFi to work on the Pi 3B+.

    Code:
    country=GB
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    
    network={
        ssid="your_real_wifi_ssid"
        scan_ssid=1
        psk="your_real_password"
    }
    
    
     
  3. MDA

    MDA Administrator Staff Member

    On latest images it should look rather like this
    Code:
    country=(here put your 2 capital letters country code, example: country=US)
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    
    network={
        ssid="your_real_wifi_SSID"
        scan_ssid=1
        psk="yuor_real_password"
        key_mgmt=WPA-PSK
    }
     
  4. James

    James Administrator Staff Member

    Assuming people know country code. Minimal one will turn on 2.4 Ghz only on the B+

    It will detect key_mgmt automatically .. scan_ssid only needed if WiFi SSID is hidden
     
    Rick likes this.
  5. carbiner

    carbiner New Member

    OK I went to install the git and it asked for a password and username. Come to find out you need a githubaccount (you need to put this in the instructions for newbies here)
    So now I got a github account and entered username and password it says repository not found. This is really difficult since I simply can't install an image now. Is there an easier way to do this?
     
  6. MDA

    MDA Administrator Staff Member

    You misunderstood what is needed. Nobody need github account to install mlat-client. If you want to improve it create account, fork install and add your changes.
     
  7. carbiner

    carbiner New Member

    Ok but what is the usename and password it is asking for then?
    What is a fork install?
    I have a PI3+ and no way of feeding.
    I just need exact script to use that works.
     
  8. MDA

    MDA Administrator Staff Member

    Pi 3+ plus feed. Please explain what is already installed. Raspbian with desktop or Raspbian lite?
    Next step: do you have any kind of dump-1090 installed? If yes which one?
    Did you try to install ADSBx mlat-client?
     
  9. carbiner

    carbiner New Member

    Followed all instructions above with 3.6.3 image and get stuck here.
    git clone https://github.com/adsbxchange/adsb-exchange.git
     
  10. MDA

    MDA Administrator Staff Member

    All tutorials/manuals are valid for Raspberry Pi only.
    So I assume you can't clone this repository?
    Did you try to clone it before?
    If already cloned remove it and clone again. To remove open terminal and
    Code:
    sudo rm -rf adsb-exchange
     
  11. carbiner

    carbiner New Member

    No did not clone before. So are you saying it will not work on PI3+?
     
  12. MDA

    MDA Administrator Staff Member

    Is git installed on your device?
    If not
    Code:
    sudo apt-get install git
     
  13. MDA

    MDA Administrator Staff Member

    Everything can be installed on 3+
     
  14. carbiner

    carbiner New Member

    Going to start over with new image. I will let you know. Thanks for trying to help.
     
  15. MDA

    MDA Administrator Staff Member

    Install latest raspbian, with or without desktop, than install any kind of dump1090 if you use USB stick. Don't plug stick before all software is installed.
     
  16. carbiner

    carbiner New Member

    Re-imaged and it is working now.
     
  17. MDA

    MDA Administrator Staff Member

    What or which image is Re-imaged? You expect answers to not asked questions.
    Nobody except of you knows what kind of software you use.
     
  18. carbiner

    carbiner New Member

    Reimaged 3.6.3 I think what happened is that I was typing in the script by hand and put
    git clone https://github.com/adsbexchange/adsb-exchange.git but the actual command drops the e off of the address and is adsbxchange
     
  19. MDA

    MDA Administrator Staff Member

  20. carbiner

    carbiner New Member

    I was using keyboardand monitor into the PI so couldn't copy and paste. It is working now thanks for the help with my stupid mistake.