Feeding ADSBX from different PI than Flightaware

Discussion in 'Feeding' started by Patrick Putteman, Mar 1, 2018.

  1. Patrick Putteman

    Patrick Putteman New Member

    Hi everyone. New here. Situated in Belgium, near Brussels National Airport.

    I'm currently feeding to FA with their image installed on a PI. I also feed to Planefinder from that same PI.

    I have a spare PI which I use to feed to FR24. I set up the FR24 client on my spare PI to connect to port 30005 on my main PI.

    Is it possible to do something similar with ADSBX by editing the config/scripts?

    Thx

    P.
     
  2. MDA

    MDA Administrator Staff Member

    Hi
    Do you want to merge data from 2 Raspberries or set main Pi as source on 2nd Pi?
     
  3. Patrick Putteman

    Patrick Putteman New Member

    Main Pi as source for 2nd Pi. ADSBX would be installed on 2nd Pi, just as FR24.
    I run FR24 this way, it just connects to my second Pi's IP on port 30005 to gather data and then feed it.

    P.
     
  4. MDA

    MDA Administrator Staff Member

    Modify this file:
    sudo nano /home/pi/adsb-exchange/adsbexchange-mlat_maint.sh
    Change parameter:
    --input-connect IP_of_your_main_Pi:30005
    Save file and reboot Pi.
     
  5. Patrick Putteman

    Patrick Putteman New Member

    Done.
    Feeding on port 51214
    Nothing yet to see on the custom feed map.

    P.
     
  6. MDA

    MDA Administrator Staff Member

    Can you see your username on MLAT sync-matrix?
     
  7. Patrick Putteman

    Patrick Putteman New Member

    Nothing there (yet)
    Long: 50.993761
    Lat: 4.760563
    username puttemanp

    This is definately in western europe (near brussels), but according to the list its
    Eastern Europe, Middle East (Lon: +4 to +62)

    A bit confused.
    However, I checked both
     
  8. MDA

    MDA Administrator Staff Member

    It cane take some time.
    You can check with netstat if is connected or trying to connect:
    If OK you should see something like that
    tcp 0 223 mda-pi3:57200 feed.adsbexchange:31090 ESTABLISHED
     
  9. Patrick Putteman

    Patrick Putteman New Member

    It definately is

    tcp 0 0 192.168.0.249:52095 feed.adsbexchange:51214 TIME_WAIT
    tcp 0 0 192.168.0.249:52092 feed.adsbexchange:51214 TIME_WAIT
    tcp 0 320 192.168.0.249:ssh 192.168.2.21:58506 ESTABLISHED
    tcp 0 0 localhost:mysql localhost:37927 TIME_WAIT
    tcp 0 0 192.168.0.249:37692 23-111-133-131.st:33755 ESTABLISHED
    tcp 0 0 192.168.0.249:54996 192.168.0.249:http TIME_WAIT
    tcp 0 0 192.168.0.249:41776 feed.adsbexchange:31090 ESTABLISHED
    tcp 0 0 192.168.0.249:58703 192.168.0.33:30005 ESTABLISHED
    tcp 0 0 192.168.0.249:58701 192.168.0.33:30005 ESTABLISHED
    tcp 0 0 192.168.0.249:41766 feed.adsbexchange:31090 FIN_WAIT2
     
  10. MDA

    MDA Administrator Staff Member

    Disconnecting, just wait.
     
  11. MDA

    MDA Administrator Staff Member

    You are now on sync-matrix, custom feed doesn't work.
    Please check netcat/socat script.
     
  12. Patrick Putteman

    Patrick Putteman New Member

    [email protected]:~/adsb-exchange $ cat adsbexchange-mlat_maint.sh
    #!/bin/sh
    while true
    do
    sleep 30
    /usr/bin/mlat-client --input-type dump1090 --input-connect 192.168.0.33:30005 --lat 50.993761 --lon 4.760563 --alt 23 --user puttemanp --server feed.adsbexchange.com:31090 --no-udp --results beast,connect,localhost:30104
    done
     
  13. MDA

    MDA Administrator Staff Member

    Edit netcat script
    sudo nano /home/pi/adsb-exchange/adsbexchange-netcat_maint.sh
    this way

    upload_2018-3-2_16-40-48.png
     
  14. Patrick Putteman

    Patrick Putteman New Member

    Made modifications as suggested.
    Letting it run again now, let's wait what happens...

    P.
     
  15. MDA

    MDA Administrator Staff Member

    Don't forget to reboot Pi.
     
  16. Patrick Putteman

    Patrick Putteman New Member

    Done (twice, by error :) )

    P.
     
  17. MDA

    MDA Administrator Staff Member

    I'm curious why do you want to use 2 Raspberries for feeding. One is enough to feed anything you want.
    Marcin
     
  18. Patrick Putteman

    Patrick Putteman New Member

    'because I can' is probably not the right answer....
    I like to keep things separated. I'm running Flightaware image with FR24 and Planefinder installed.
    I'm just affraid that having too many feeders and too many iterations of dump1090 on a single device will break things.

    If you think I can use the ADSBX image, and add Flightaware, FR24 and Planefinder on it, I'm willing to give it a try (I like the interface and info of ADSBX a lot!)

    P.
     
  19. MDA

    MDA Administrator Staff Member

    You can install all feeders as described in Tutorials (from scratch). All of my feeders were built this way (on raspbian with desktop because I have to use Teamviewer for some of them).
    Or install additional feeders on ADSBX image with very nice Grafana dashboard.
    CPU load not higher as 11-12%.
    If you have spare SD card try it, if successfull then you have one Pi for tests or remote installation.
    M.
     
  20. Patrick Putteman

    Patrick Putteman New Member

    Starting right now!