Announcement

Collapse
No announcement yet.

Two feeds in the same Raspberry

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Two feeds in the same Raspberry

    Hi all,

    I'd like to know if it is possible to have two different FR24 accounts feeding the same Rpi3, each account having one different receiver.
    So is like: Receiver A + Antenna A -> FR24 account 1
    Receiver B + Antenna B -> FR24 account 2

    (running both in the same Raspberry)


    Many thanks!

  • #2
    YES, It is possible. I have done it.

    https://github.com/abcd567a/two-rece...ster/README.md

    The script creates two instances of dump1090 and 2 instances of Piaware data feeder.
    On this setup, if you install fr24feed by bash script, it will use first set of (antenna+dvbt+dump1090).

    The second set of (antenna+dvbt+dump1090) is used by piaware only.
    I have separately created one more script which added 2nd fr24feed which uses second set of (antenna+dvbt+dump1090).

    I did not upload the 2nd fr24feed script anywhere. it is only on my desktop.
    EDIT: Recalled I have posted the method to add 2nd fr24feed here:

    https://forum.flightradar24.com/thre...l=1#post118888

    In above post, both feeder config are done manually (as it is on Intel PC).
    In RPi, feeder #1 is installed by bash script, and all its configuration & service files are created by the bash script.
    Therefore no need to create any configuration & service files for feeder #1.

    Just create the necessary configuration & service files for feeder #2 only.

    two receivers.png
    Last edited by abcd567; 2019-10-21, 00:24.

    Comment


    • #3
      You can't run FR24 MLAT twice on the same device.
      The 8754 webpage will only work once.

      So it's possible, but annoying.

      Comment


      • #4
        MLAT runs on both feeders. The machine (RPi) is one, but Receivers and feeders are TWO completely independent and isolated with each other.

        Antenna-1 >> dvbt-1 >> dump1090-1 >> port 30005 >> feeder-1

        Antenna-2 >> dvbt-2 >> dump1090-2 >> port 31005 >> feeder-2


        You can check my Flightaware Stations 5252 and 6396 which are run on single RPi. Mlat always shows OK.

        Statistics for sites feeding ADS-B flight tracking data to FlightAware. Sites, users, countries, regions, and teams are ranked by the number of aircraft reported.


        Statistics for sites feeding ADS-B flight tracking data to FlightAware. Sites, users, countries, regions, and teams are ranked by the number of aircraft reported.




        Here are my FR24 feeder logs:

        RECEIVER #1 - CYYZ9
        Code:
        2019-10-21 02:35:50 | info | Network thread connecting to 185.218.24.22:8099 for feed CYYZ9
        2019-10-21 02:35:50 | [feed][n]connecting
        2019-10-21 02:35:50 | info | [stats]Stats thread started
        2019-10-21 02:35:50 | [feed][n]connected via UDP (fd 27)
        2019-10-21 02:35:50 | [feed][i]Feed connected
        2019-10-21 02:35:50 | [feed][n]working
        2019-10-21 02:35:50 | [reader][i]Timestamp source changed from SYSTEM-UNCERTAIN to SYSTEM-VALIDATED
        2019-10-21 02:35:51 | [mlat][i]MLAT configuration received, service ENABLED
        2019-10-21 02:35:51 | [mlat][i]Starting MLAT with preconfigured position: 43.58,-79.62,450.0
        2019-10-21 02:35:51 | [mlat][i]MLAT bandwidth reduction active, level 1
        2019-10-21 02:35:51 | [mlat][i]Configuring UDP connection udp://usa-2.fr24.com:19788
        2019-10-21 02:35:51 | [mlat][i]Registering MLAT station
        2019-10-21 02:35:51 | [mlat][i]Registering MLAT station: SUCCESS
        2019-10-21 02:35:52 | [feed][i]sent 2,0 AC
        2019-10-21 02:35:53 | [mlat][i]Received ADS-B time references AC:
        2019-10-21 02:35:53 | [mlat][i] C073E7
        2019-10-21 02:35:56 | [mlat][i]Pinging the server
        2019-10-21 02:35:56 | [mlat][i]Stats 364934/364934
        2019-10-21 02:35:57 | [feed][i]sent 2,0 AC
        2019-10-21 02:36:03 | [feed][i]sent 3,0 AC
        2019-10-21 02:36:08 | [feed][i]sent 3,0 AC

        RECEIVER#2 -CYYZ21
        Code:
        2019-10-21 02:35:50 | info | Network thread connecting to 185.218.24.22:8099 for feed CYYZ21
        2019-10-21 02:35:50 | [feed][n]connected via UDP (fd 26)
        2019-10-21 02:35:50 | [feed][i]Feed connected
        2019-10-21 02:35:50 | [feed][n]working
        2019-10-21 02:35:50 | [reader][i]Timestamp source changed from SYSTEM-UNCERTAIN to SYSTEM-VALIDATED
        2019-10-21 02:35:51 | [mlat][i]MLAT configuration received, service ENABLED
        2019-10-21 02:35:51 | [mlat][i]Starting MLAT with preconfigured position: 43.58,-79.62,450.0
        2019-10-21 02:35:51 | [mlat][i]MLAT bandwidth reduction active, level 1
        2019-10-21 02:35:51 | [mlat][i]Configuring UDP connection udp://usa-2.fr24.com:19788
        2019-10-21 02:35:51 | [mlat][i]Registering MLAT station
        2019-10-21 02:35:51 | [mlat][i]Registering MLAT station: SUCCESS
        2019-10-21 02:35:51 | [feed][i]sent 2,0 AC
        2019-10-21 02:35:53 | [mlat][i]Received ADS-B time references AC:
        2019-10-21 02:35:53 | [mlat][i] C073E7
        2019-10-21 02:35:56 | [mlat][i]Pinging the server
        2019-10-21 02:35:56 | [mlat][i]Stats 364934/0
        2019-10-21 02:35:57 | [feed][i]sent 2,0 AC
        2019-10-21 02:36:02 | [feed][i]sent 2,0 AC
        2019-10-21 02:36:07 | [feed][i]sent 2,0 AC

        Comment


        • #5
          Many thanks for pointing me in the right direction, much appreciated!
          I'll try that and will report if all is going well!

          Best regards

          Originally posted by abcd567 View Post
          YES, It is possible. I have done it.

          https://github.com/abcd567a/two-rece...ster/README.md

          The script creates two instances of dump1090 and 2 instances of Piaware data feeder.
          On this setup, if you install fr24feed by bash script, it will use first set of (antenna+dvbt+dump1090).

          The second set of (antenna+dvbt+dump1090) is used by piaware only.
          I have separately created one more script which added 2nd fr24feed which uses second set of (antenna+dvbt+dump1090).

          I did not upload the 2nd fr24feed script anywhere. it is only on my desktop.
          EDIT: Recalled I have posted the method to add 2nd fr24feed here:

          https://forum.flightradar24.com/thre...l=1#post118888

          In above post, both feeder config are done manually (as it is on Intel PC).
          In RPi, feeder #1 is installed by bash script, and all its configuration & service files are created by the bash script.
          Therefore no need to create any configuration & service files for feeder #1.

          Just create the necessary configuration & service files for feeder #2 only.

          [ATTACH=CONFIG]11201[/ATTACH]

          Comment


          • #6
            Why would you have two instances of FR24 on the same RPi? is it for testing different antennas? Do you have the receivers on USB extensions?

            Comment


            • #7
              I have done all the steps. I can only view one fr24feed page (ip:8754) but I get no map available neither for dump1090-fa nor dump1090fa-2...

              "Problem fetching data from dump1090.
              AJAX call failed (error). Maybe dump1090 is no longer running?
              The displayed map data will be out of date."


              Any help please?

              Thank you

              Comment


              • #8
                And this shows the dangers of going off-script to a normal single setup...
                Posts not to be taken as official support representation - Just a helpful uploader who tinkers

                Comment


                • #9
                  (1) Unplug, then after 30 seconds replug both dvbt dongles, then reboot RPi. Check map again

                  (2) The ip-of-pi:8754 page is available for ONE instance of fr24feed. Unfortunately this cannot be changed as it is hard coded in the fr24feed binary. At reboot, the instance which starts first grabs :8754, and other is left without this page.

                  Comment


                  • #10
                    To configure two fr24feeds, dont use settings page at :8754. Instead edit following files:

                    Code:
                    ## For feeder #1
                    sudo nano /etc/fr24feed.ini  
                    
                    ## For feeder #2
                    sudo nano /etc/fr24feed[COLOR="#FF0000"]-2[/COLOR].ini

                    Comment


                    • #11
                      Still no luck with the map... In FR24 websiste says both online. Below I attach the configuration files both for fr24 and dump1090-fa
                      In orange are the differences between dump1090-fa2/dum1090-fa and fr24feed-2.ini/fr24feed.ini

                      data.jpg





                      Originally posted by abcd567 View Post
                      To configure two fr24feeds, dont use settings page at :8754. Instead edit following files:

                      Code:
                      ## For feeder #1
                      sudo nano /etc/fr24feed.ini  
                      
                      ## For feeder #2
                      sudo nano /etc/fr24feed[COLOR="#FF0000"]-2[/COLOR].ini

                      Comment


                      • #12
                        Originally posted by HF_ATL View Post
                        Still no luck with the map... In FR24 websiste says both online. Below I attach the configuration files both for fr24 and dump1090-fa
                        In orange are the differences between dump1090-fa2/dum1090-fa and fr24feed-2.ini/fr24feed.ini

                        [ATTACH=CONFIG]11206[/ATTACH]

                        (1) Your screenshot shows perfect configuration of dump1090-fa and fr24feed.

                        The receiver #1 has DEFAULT port numbers. The receiver #2 had different port numbers.
                        This I have done intentionally to keep the data of two dumps1090 segregated.
                        The fr24-1 gets data on port 30005 which is supplied by first instance of dump1090-fa
                        The fr24-2 gets data on port 31005 which is supplied by second instance of dump1090-fa

                        RECEIVER device-index net-bo-port net-ri-port net-ro-port net-sbs-port net-bi-port net-bo-port FR24
                        # 1 00000101 30005 0 30002 30003 30004,30104 30005 fr24-1 fed from port 30005
                        # 2 00000102 31005 0 31002 31003 31004,31104 31005 fr24-2 fed from port 31005

                        (2) Now why map is not showing is to be resolved.
                        Is the map of both instances of dump1090-fa missing or showing error message, or only one is showing error, other is ok?

                        (3) What about Flightaware's data feeder "piaware"? The script installs two piaware feeders also. Are these working OK?
                        Last edited by abcd567; 2019-10-22, 17:55.

                        Comment


                        • #13
                          HF_ATL:

                          Did you try to clear cache of your browser (Ctrl+Shift+Delete), and then Reload browser (Ctrl+F5)?

                          Please also post screenshots of the two maps.

                          Comment


                          • #14
                            Originally posted by abcd567 View Post
                            HF_ATL:

                            Did you try to clear cache of your browser (Ctrl+Shift+Delete), and then Reload browser (Ctrl+F5)?

                            Please also post screenshots of the two maps.
                            Many thanks for your support!

                            I made sure I cleaned the cache of the browser.
                            Now the point of the situation is the following:

                            - cat /var/log/fr24-1/fr24feed.log -> works
                            - cat /var/log/fr24-2/fr24feed.log -> works
                            - http://ip:8754 -> works
                            - http://ip:8754/tracked.html -> works

                            Now when I try to access ip/dump1090-fa or ip/dump1090-fa2 it gives me "This site can't be reached" (yesterday it was showing the map but with no planes)
                            I have only one piaware account, I did not configured the other one. My main objective is to have two fr24 feeders but of course I can register for the other email a flightaware account...

                            Comment


                            • #15
                              That's some sort of lighttpd issue i'd say.

                              Show the output of this:

                              sudo systemctl restart lighttpd
                              sudo journalctl -u lighttpd --no-pager

                              Comment

                              Working...
                              X