Announcement

Collapse
No announcement yet.

How to Install dump1090-mutability on RPi

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

  • #61
    Originally posted by kr1s3112
    Hi everbody,

    Thanx for the easy to use manual how to set up my Raspi with dev 1.15. I'm sharing data with FR24 for more a year but I made a clean reinstall now. On my Raspberry there is also Pi-hole (network wide ad blocking) installed.
    If I now want to see all tracked aircrafts on IP Raspberry)/dump1090/gmap.html I only get to see an info screen of Pi-hole, saying "Pi-hole: Your black hole for Internet advertisements//Did you mean to go to the admin panel?"
    As I am a completely noob to all that network and port stuff - does anybody has a clue how to fix this? Using also Pi-Aware -> same here.

    Thanks, kr1s

    [ATTACH=CONFIG]10532[/ATTACH]

    [ATTACH=CONFIG]10531[/ATTACH]
    There will be a conflict with Pi-Hole own server and lighttpd - Dump1090 1-15 also uses this but both will not expect each other and probably over-write

    In the config window you have there, change the 8080 to 8081.
    Your URL will change to <ip>:8081/dump1090/gmap.html

    Or you may need to reconfigure lighttpd again

    sudo lighty-enable-mod dump1090
    Posts not to be taken as official support representation - Just a helpful uploader who tinkers

    Comment


    • #62
      To fix pi-hole issues do this:

      Code:
      sudo nano /etc/lighttpd/external.conf
      copy/paste this:
      Code:
      server.modules += (
        "mod_alias"
      )
      Press CTRL-o and ENTER to save
      Press CTRL-x to exit

      Do a reboot:
      sudo reboot

      This should fix

      Comment


      • #63
        Originally posted by Aero Club Latina
        gpg: keyserver receive failed: Server indicated a failure
        Workaround for gpg key problem:

        Code:
        cd /home/pi/
        
        wget -O fr24feed_1.0.23-8_armhf.deb  http://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.23-8_armhf.deb  
        
        sudo dpkg -i fr24feed_1.0.23-8_armhf.deb 
        
        sudo systemctl restart fr24feed
        Last edited by abcd567; 2019-05-03, 05:06.

        Comment


        • #64
          I have:
          Messages > -3 dBFS = 3.9% of messages

          dump1090-localhost-local_trailing_rate-24h.png

          Comment


          • #65
            Comprehensive graph! Is there a thread somewhere on how you configured it?

            Comment


            • #66
              Originally posted by elljay View Post
              Comprehensive graph! Is there a thread somewhere on how you configured it?
              It's a slight modification of the adsb receiver project graphs which were initially created by mutability.

              I created an independent installer because i don't like the adsb receiver project portal and made some improvements.

              Comment


              • #67
                Originally posted by elljay View Post
                Comprehensive graph! Is there a thread somewhere on how you configured it?
                I installed it by wiedehopf's method (which he gave in above post.)


                Before wiedehopf created his method, I used to install graphs by installing "web portal" of JProchazka's "adsb receiver project".

                However as wiedehopf's "graphs only" are simpler than J Prochazka's full "web portal", I have now started using wiedehopf's method.

                The installation of wiedehopf graphs is done simply by issueing following command:
                (Scroll right to see full command. The command is very long)
                Code:
                sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"
                After installation, wait for 15 minutes for enough data to be collected by the process (rrdtools+collectd) to create the graphs.

                See the graphs in browser at:
                IP-of-Pi/graphs1090/
                Last edited by abcd567; 2019-05-03, 16:39.

                Comment


                • #68
                  Have tweaked the gain a couple of times and now running just under 5% above -3dBFS

                  dump1090-localhost-local_trailing_rate-7d.png

                  I noticed the scripts were updating the graphs constantly in the background which was bugging me , so I made some changes so it only updates the graphs when I request them in the browser. Private messages aren't enabled so I guess post the changes here is best in case you want to put them in the distribution?

                  Delete the crontab file that generates the graphs:
                  sudo rm /etc/cron.d/cron-graphs1090

                  Add the script handler to lighttpd:
                  sudo vi /etc/lighttpd/lighttpd.conf

                  Add the following four lines to the end:

                  Code:
                  server.modules += ( "mod_cgi" )
                  $HTTP["url"] =~ "/cgi-bin/" {
                          cgi.assign = ( ".sh" => "" )
                  }
                  Create a cgi-bin directory:
                  sudo mkdir /var/www/html/cgi-bin

                  Create the cgi script to update the graphs:
                  sudo vi /var/www/html/cgi-bin/update_graphs1090.sh

                  Add these two lines:
                  #!/bin/bash
                  /usr/share/graphs1090/graphs1090.sh $QUERY_STRING >/dev/null 2>&1


                  Restart the lighttpd daemon:
                  sudo /etc/init.d/lighttpd restart

                  Edit the permissions so lightttpd can update the graphs:
                  sudo chgrp www-data /run/graphs1090/*png
                  sudo chmod g+w /run/graphs1090/*png


                  I made a few changes to /usr/share/graphs1090/graphs1090.sh to speed up the graph generation:
                  rem out the renice on line 5
                  Add " --lazy" to "options=..." on line 50
                  Set pre="" on line 54 (easier than removing it from everywhere else )

                  Edit /usr/share/graphs1090/html/graphs.js file:
                  Insert this on line 32 after the "$timeFrame = newTimeFrame;" line:
                  Code:
                      // Update the graphs if needed
                      var ret = new XMLHttpRequest();
                      ret.open('GET', '/cgi-bin/update_graphs1090.sh?' + $timeFrame, false);
                      ret.send();
                  Last edited by elljay; 2019-05-07, 15:56.

                  Comment


                  • #69
                    That would increase load times significantly.

                    Also note that removing the cron file the boot.sh is no longer executed which is responsible for creating the /run direcotry
                    (/usr/share/graphs1090/boot.sh)

                    In case your RPi is exposed to the internet, someone could DoS it as well by executing the graph generation repeatedly.
                    Probably eating up the bandwidth is DoS enough so that's not really an argument maybe.

                    It's a very nice approach only generating the graphs on demand but it has too many drawbacks for me.

                    Feel free to fork it on github, add changes and everyone who likes it can use it.


                    Maybe i could implement a middle ground generating everything on demand except for the 24h graphs which would be created every 5 mins.
                    But yeah i don't see the need, it's not that much CPU load on your typical RPi installation.

                    Comment


                    • #70
                      Originally posted by wiedehopf View Post
                      That would increase load times significantly.
                      Seems to be about 2-3 secs to load the page so not too bad.

                      Originally posted by wiedehopf View Post
                      Also note that removing the cron file the boot.sh is no longer executed which is responsible for creating the /run direcotry
                      (/usr/share/graphs1090/boot.sh)
                      Ah ok, thanks. Have put that back in cron and changed boot.sh to create the dir and change the group and give write permissions to www-data.

                      Originally posted by wiedehopf View Post
                      In case your RPi is exposed to the internet, someone could DoS it as well by executing the graph generation repeatedly.
                      Probably eating up the bandwidth is DoS enough so that's not really an argument maybe.
                      Yup, I think if it was on the internet it could be DoSed either way!

                      Originally posted by wiedehopf View Post
                      Maybe i could implement a middle ground generating everything on demand except for the 24h graphs which would be created every 5 mins.
                      But yeah i don't see the need, it's not that much CPU load on your typical RPi installation.
                      It's not a huge load no - about 1 to 2% CPU 24/7 judging by the nice portion on the graphs. The user time is about 8% by comparison. The page refresh default is every 5 mins so that sounds like a good refresh cycle multiple.

                      Either way it was fun working out how to call a cgi script from a .js!

                      Comment


                      • #71
                        Originally posted by abcd567 View Post
                        I installed it by wiedehopf's method (which he gave in above post.)


                        Before wiedehopf created his method, I used to install graphs by installing "web portal" of JProchazka's "adsb receiver project".

                        However as wiedehopf's "graphs only" are simpler than J Prochazka's full "web portal", I have now started using wiedehopf's method.

                        The installation of wiedehopf graphs is done simply by issueing following command:
                        (Scroll right to see full command. The command is very long)
                        Code:
                        sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"
                        After installation, wait for 15 minutes for enough data to be collected by the process (rrdtools+collectd) to create the graphs.

                        See the graphs in browser at:
                        IP-of-Pi/graphs1090/
                        Hi.

                        I like to install wiedehopf's method
                        how can uninstall Prochazka's full "web portal"
                        is there a way to install after that the "System Information" ?

                        sysinfo.jpg

                        Comment


                        • #72
                          JUNE 22, 2019:
                          ADDED PRE-BUILT PACKAGE INSTALL TO FIRST POST




                          METHOD-1:
                          Install pre-built package of dump1090-mutability_1.15~dev on RPi/Raspbian


                          Code:
                          sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/dump1090/master/install_dump1090_mut_1.15.sh)"

                          METHOD-2:
                          Built & install dump1090-mutability_1.15~dev from source code

                          STEP (1): UPDATE THE OPERATING SYSTEM & INSTALL PRE REQUISIT PACKAGES (needed to build, and needed to fulfill dependencies)
                          ......................
                          ......................

                          Comment


                          • #73
                            abcd - think I should de-sticky this one now that it is mostly included in the https://forum.flightradar24.com/thre...24-Data-Feeder ?
                            Posts not to be taken as official support representation - Just a helpful uploader who tinkers

                            Comment


                            • #74
                              There seems to be a package now for Buster, so no need to compile it.

                              You can install it like this:

                              sudo apt install dump1090-mutability


                              Otherwise you can always use dump1090-fa: https://github.com/wiedehopf/adsb-wi...for-dump1090fa

                              Comment


                              • #75
                                Originally posted by ramimz
                                Hi.
                                i'm getting an error after step 3 and 4

                                Code:
                                make[2]: *** [Makefile:54: dump1090] Error 1
                                make[2]: Leaving directory '/home/pi/build-dump-mut/dump1090'
                                dh_auto_build: make -j1 "EXTRACFLAGS=-DHTMLPATH=\\\"/usr/share/dump1090-mutability/html\\\" -DMODES_DUMP1090_VARIANT=\\\"dump1090-mutability\\\"" returned exit code 2
                                make[1]: *** [debian/rules:21: override_dh_auto_build] Error 2
                                make[1]: Leaving directory '/home/pi/build-dump-mut/dump1090'
                                make: *** [debian/rules:30: build] Error 2
                                dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
                                
                                pi@raspberrypi:~/build-dump-mut/dump1090 $ cd ~/build-dump-mut
                                pi@raspberrypi:~/build-dump-mut $ sudo dpkg -i dump1090-mutability_1.15~dev_*.deb
                                dpkg: error: cannot access archive 'dump1090-mutability_1.15~dev_*.deb': No such file or directory
                                pi@raspberrypi:~/build-dump-mut $
                                i'm with the new release - Linux 10 (buster) 7/10/19

                                Code:
                                pi@raspberrypi:~/build-dump-mut $ cat /etc/os-release
                                PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
                                NAME="Raspbian GNU/Linux"
                                VERSION_ID="10"
                                VERSION="10 (buster)"
                                VERSION_CODENAME=buster
                                ID=raspbian
                                ID_LIKE=debian
                                HOME_URL="http://www.raspbian.org/"
                                SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                                BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
                                pi@raspberrypi:~/build-dump-mut $
                                You can't build Dump1090 on buster. But need the full package.

                                or wiedehopfs fa-dump1090 installer

                                /edit - snap!
                                Posts not to be taken as official support representation - Just a helpful uploader who tinkers

                                Comment

                                Working...
                                X