Feeding to other than 30005

Discussion in 'Feeding' started by Bryan V Brownlie, Jan 4, 2018.

  1. MDA

    MDA Administrator Staff Member

    Do you know something better than VRS (free)?
    Maybe we need other language versions?
    I can make Polish translation, for sure German, Dutch, French, Spanish can be prepared too (our community). I can even ask my friends for Chinese.
     
  2. James

    James Guest

    I concur. Dan and I were talking last week about rewriting much of the text.
     
  3. MDA

    MDA Administrator Staff Member

    Inform me on priv how I can help.
     
  4. Bryan V Brownlie

    Bryan V Brownlie New Member

    Hi! I started this thread but I still can't see how to change from 30005 to my selected port. Can anyone tell me? James - I could not understand your original response. I really need simple step by step instructions on how to do it.
    Many thanks
     
  5. MDA

    MDA Administrator Staff Member

    You have to edit /home/pi/adsb-exchange/adsbexchange-netcat_maint.sh

    Code:
    #!/bin/sh
    while true
      do
        sleep 30
    #    /bin/nc 127dot0dot0dot1 30005 | /bin/nc feed.adsbexchange.com 30005
        /bin/nc 127dot0dot0dot1 30005 | /bin/nc feed.adsbexchange.com 51xxx
      done
    Replace dot with . , change port number to one which is not used.
     
  6. andrewn

    andrewn New Member

    Are you feeding ADSB from VRS?
     
  7. MDA

    MDA Administrator Staff Member

    Yes, but yesterday I've changed this script on one of my RaPi.
    Now results are available on zCons-51077 (direct from dump1090mutability)
    MLAT clients are installed directly on Pi's
     
    Last edited: Jan 5, 2018
  8. James

    James Guest

    Depending on what image you used and how it's set up.

    You have to edit /home/pi/adsb-exchange/adsbexchange-netcat_maint.sh or change it in the custom config located in /boot
     
  9. MDA

    MDA Administrator Staff Member

    zCons-51077 is free again. I don't want to occupy too many resources.
    My aggregated feed from VRS is available under MDA-PL-53006.
     
  10. Jhonny Monclair

    Jhonny Monclair Active Member

    I take the chance to suggest a simple modify to the "adsbexchange-netcat_maint.sh" script:

    Code:
    /bin/nc 127dot0dot0dot1 30005 | /bin/nc -w 300 <adsbexchange-feed-address> 30005
    The "-w" option sets a timeout value (300sec=5min, it can be adjusted depending on preference) to the second instance of netcat in the pipe.
    It allows an auto shut-off of the process if it stays idle for the fixed time, for example when connection is lost or other services are intentionally
    stopped for maintenance.
    Without that option, the "while-do" cycle never runs.
     
  11. James

    James Guest

    Will add it to the next release! I believe Dan swapped out netcat in the piaware image for socat
     
    Jhonny Monclair likes this.
  12. Bryan V Brownlie

    Bryan V Brownlie New Member

    Sorry, guys! How do I get to edit /home etc. By simply entering this string on a command line I get nowhere. Hold my hand please!
    Rgds, Bryan
     
  13. MDA

    MDA Administrator Staff Member

    SSH into your Pi
    copy line below and paste into terminal:
    sudo nano /home/pi/adsb-exchange/adsbexchange-netcat_maint.sh
    Modify, then CTRL+o, enter, CTRL+x, sudo reboot.
     
  14. MDA

    MDA Administrator Staff Member

    Do you use ADSB Receiver image? Or ADSB receiver install?
    If yes then edit:
    sudo nano ./adsb-receiver/build/adsbexchange/adsbexchange-netcat_maint.sh
     
    Last edited: Jan 7, 2018
  15. Bryan V Brownlie

    Bryan V Brownlie New Member

    Thanks, MDA. so far so good! I now need to know how to modify/edit because after entering the above stream I have a blank screen
     
  16. MDA

    MDA Administrator Staff Member

    Strange, one of those 2 should work.
    Try to reinstall ADSBX MLAT client.
     
  17. MDA

    MDA Administrator Staff Member

    If you use username other then pi path should be /home/yourusername/...
     
  18. MDA

    MDA Administrator Staff Member

    If you have Teamviewer installed I can try to help you remotely. Send me on priv login data.
    Marcin
     
  19. Mike

    Mike New Member

    Good morning gents,

    Re-directed my RPi feed to Port 51111 last night and nothing showing on map. Feed running fine for months. What am I doing wrong? Can't post a screen cap (new member to the forum)
     
    Last edited: Jan 9, 2018
  20. MDA

    MDA Administrator Staff Member

    Probably nothing wrong, try another port. I've tried 51077 with success, port should be free again.