Page 7 of 12 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 120

Thread: How to Install dump1090-mutability_1.15~dev on RPi

  1. #61
    Super Moderator
    Join Date
    May 2011
    Location
    T-NZCH1, PP:PH New Zealand
    Posts
    5,051
    Quote Originally Posted by kr1s3112 View Post
    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

    Attachment 10532

    Attachment 10531
    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

  2. #62
    Captain
    Join Date
    Apr 2018
    Posts
    875
    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

  3. #63
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,863
    Quote Originally Posted by Aero Club Latina View Post
    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 at 05:06.

  4. #64
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,863
    I have:
    Messages > -3 dBFS = 3.9% of messages

    dump1090-localhost-local_trailing_rate-24h.png

  5. #65
    Purser
    Join Date
    Jan 2015
    Location
    T-EGKK39
    Posts
    112
    Comprehensive graph! Is there a thread somewhere on how you configured it?

  6. #66
    Captain
    Join Date
    Apr 2018
    Posts
    875
    Quote 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.

    https://github.com/wiedehopf/graphs1090#graphs1090

  7. #67
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,863
    Quote 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 at 16:39.

  8. #68
    Purser
    Join Date
    Jan 2015
    Location
    T-EGKK39
    Posts
    112
    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 at 15:56.

  9. #69
    Captain
    Join Date
    Apr 2018
    Posts
    875
    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.
    https://github.com/wiedehopf/graphs1090

    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.

  10. #70
    Purser
    Join Date
    Jan 2015
    Location
    T-EGKK39
    Posts
    112
    Quote 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.

    Quote 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.

    Quote 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!

    Quote 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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •