For those who are already feeding other sites

Discussion in 'Tutorials' started by MDA, Feb 28, 2018.

  1. MDA

    MDA Administrator Staff Member

    Run those commands:
    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
    If not successfull run:
    Code:
    sudo apt-get install --fix-missing
    and repeat 1st step.
    Update!!!
    On new FA images rc.local is not installed.
    Follow steps described here: https://www.adsbexchange.com/forum/threads/flightaware-3-6-3.624199/#post-628636
     
    Last edited: Oct 9, 2018
  2. Fung Sai Hou

    Fung Sai Hou New Member

    Hi MDA,
    I used the method stated above:-

    Everything installed successfully with custom port except after each reboot, it will not autorun the adsbexchange and no data will be sent to ADSBEx.

    I am using PiAware 3.6.2, latest version. Anyway to fix this? Thank you in advance.

    Regards,
    SaiHou
     
  3. MDA

    MDA Administrator Staff Member

    Please check /etc/init.d entries, it has to be file like mlat-client. If not try to reinstall mlat-client.
    Code:
    cd adsb-exchange
    sudo ./setup.sh
    Problem can be caused by Piaware image (they don't love us).
    You can try add this to crontab instead of init.d or...
    Worst case you can burn fresh Raspbian image, install adsb-receiver project and select all options you need.

    Marcin
     
  4. Fung Sai Hou

    Fung Sai Hou New Member

    Hi Marcin,

    Thanks for the reply. I will check as per your suggestion. Or worst case will install the ADSB-Exchange to avoid such bugs or problem.

    Best regards,
    Sai Hou
     
  5. Fung Sai Hou

    Fung Sai Hou New Member

    Hello Marcin,

    At last I decided to flash ADSBx-Piaware 3.5.3. and now problem fixed. Thanks.

    SaiHou
     
  6. MDA

    MDA Administrator Staff Member

    Good to hear.
    Thanks for feeding.
    Marcin
     
  7. Olivier

    Olivier New Member

    Hello,

    I'm running PiAware 3.6.3 feeding FA currently. I would like to feed ADSBx too.
    Can you confirm that the setup.sh instructions will not break FA feeding?

    Thank you,
    Olivier
     
  8. Fung Sai Hou

    Fung Sai Hou New Member

    I tried on PiAware 3.6.3 and its working now. But somehow I also can't confirm yours. Anyway, no harm to try.

    Regards,
    Sai Hou
     
  9. MDA

    MDA Administrator Staff Member

    ADSBx MLAT-client will not break it.
    But you can expect troubles with ADSBx stuff (problems with startup).
     
  10. Olivier

    Olivier New Member

    Ok, thank you.
    I’ll give it a try this weekend.
     
  11. Olivier

    Olivier New Member

    I did the setup this evening.
    Everything went fine except this strange error message at the end :

    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    IndexError: list index out of range


    But it still works. I have mlat and netcat scripts running in the background
    I was able to see my through a custom feed port. Happy days !

    I've seen 2 typos in the altitude input screen. The title is wrong, it says Longitude and receiver altitude is misspelled. See the line from setup.sh:
    RECEIVERALTITUDE=$(whiptail --backtitle "$BACKTITLETEXT" --title "Receiver Longitude" --nocancel --inputbox "\nEnter your recivers atitude."

    I will try to reboot tomorrow but I guess the scripts will not start as there is no rc.local on my Pi where the setup script tries to register the two commands for automatic startup.
    I will probably need to put those into /etc/init.d to instead
     
    Fung Sai Hou likes this.
  12. MDA

    MDA Administrator Staff Member

  13. Olivier

    Olivier New Member

  14. Olivier

    Olivier New Member

    I rebooted my Pi on Sunday and ADSBx feeder and MLAT client were started automaticaly so it is all fine :)

    I'm feeding on port 51345 and waiting on that port to be assigned

    Next step is to see what happens when the next PiAware image comes out and I do an auto update...
     
  15. MDA

    MDA Administrator Staff Member

    Don't expect any troubles. FA update is updating FA stuff only. If other feeders are configured and running... they should survive.
     
  16. James

    James Guest

    That error is due to Google refusing to give altitude for free anymore. FA ADSBx combo image 3.5.3 MLAT will never start.




    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    IndexError: list index out of range
    usage: mlat-client [-h]
    [--input-type {radarcape_12mhz,dump1090,auto,radarcape_gps,avrmlat,sbs,beast,radarcape}]
    --input-connect INPUT_CONNECT [--results RESULTS] --lat LAT
    --lon LON --alt ALT [--privacy] --user USER
    [--server SERVER] [--no-udp]
     
  17. Olivier

    Olivier New Member

    I did set the altitude myself with the input box during the setup and I checked on the generated command line that the altitude is correct.
    I saw the request to google in the code but what would it be used for if the user is asked to enter the altitude himself?
     
  18. James

    James Guest

    I don't know what exactly you did.

    The script method setup using github and ./setup is only for a base FA image.

    This Google error only affects the prebuilt 3.5.3 FA ADSBx that was on ADSBx forum.

    If you used script method AND used the prebuilt ADSBx image ... ummm ... the script probably over wrote the files in question ...

    I'm guessing you ran the setup on the pre-built image that had ADSBx scripts installed. IT wrote over them and had them start.

    You image is probably all goofy.

    If you can easily upgrade and want to upgrade to 3.6.3 ...

    https://www.adsbexchange.com/forum/...with-fa-piaware-3-6-3-keyboard-screen.624272/
     
  19. Olivier

    Olivier New Member

  20. James

    James Guest

    Oh then you are good to go. I didn't test it on the base FA 3.6.3, I did

    sudo apt update
    sudo apt upgrade

    then installed using above and everything worked.

    ssh in and use htop

    sudo apt install htop

    if needed

    hit F5

    use arrow keys to find mlat-client and see what the --user parameter is set to .. .. that will be the name in the MLAT matrix and map dot


    You might want to

    sudo apt update
    sudo apt upgrade