Page 2 of 19 FirstFirst 123412 ... LastLast
Results 11 to 20 of 185

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

  1. #11
    Passenger
    Join Date
    Mar 2016
    Posts
    15

  2. #12
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,581
    Quote Originally Posted by nick223 View Post
    I getting a blank map. But the clocks are there on the right side
    This may be due to a change in Google Map's policy.
    Oliver B. Jowet (obj), the software writer of the dump-1090-mutability, has accordingly made changes in the code recently. Please see this post by obj:

    http://discussions.flightaware.com/p...9.html#p195559
    Last edited by abcd567; 2016-07-16 at 20:52.

  3. #13
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,581
    Quote Originally Posted by nick223 View Post
    I getting a blank map. But the clocks are there on the right side
    There is another possibility that when you removed dump1090-mutability by command "sudo dpkg -r dump1090-mutability", the folder "html" and corrupted old file "script.js" inside folder "html" did not get removed. Reinstall found it and did not install a fresh copy.

    Please repeat the removal & reinstall process I have mentioned in my previous post, but after removal step "sudo dpkg -r dump1090-mutability", check if folder "html" has been removed, by giving this command:
    Code:
    dir  /usr/share/dump1090-mutability
    It should list all files & folders in directory "dump1090-mutability".
    If the list contains folder "html", delete it manually by command below, before starting the reinstall process
    Code:
    sudo rm -rf  /usr/share/dump1090-mutability/html
    Then re-install by carrying out steps 6 to 11 in my first post.
    Last edited by abcd567; 2016-07-16 at 21:24.

  4. #14
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,581
    @ nick223

    Does the Google Map with planes show now?

    If not:
    Code:
    #First remove old installation by following command
    
    sudo dpkg -r dump1090-mutability
    
    
    #Go to root directory.
    
    cd ~
    
    
    # Delete following folders manually
    
    sudo rm -rf  /usr/share/dump1090-mutability
    sudo rm -rf  install-dump
    sudo rm -rf /etc/default/dump1090-mutability
    
    
    #Repeat whole process from Step 1 to 11 in my first post
    Last edited by abcd567; 2016-07-17 at 10:54.

  5. #15
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,581
    @ nick223
    I decided to replicate your situation, so from one of my RPi, I deleted script.js file.
    Then I uninstalled dump1090-mutability by command "sudo dpkg -r dump1090-mutability".
    Then I manually removed files/folders left-over from uninstall by command "sudo rm -rf" as shown in my last post above.
    I then re-installed dump1090-mutability following steps 1 to 11 in my first post.
    I then opened web browser and tried to load gmap.html, it said "404 Not Found".
    I checked the folder /usr/share/dump1090-mutability/html, and the files script.js, gmap.html, and config.js were not there. It seems dump1090-mutability's first install has saved its information somewhere, which prevents re-installation of these files.

    After spending several hours in debugging, I got fedup, and chose an easy way out: I formatted my microSD card, and made fresh install of Raspbian Jessie, dump1090-mutability, and all data feeders - no headaches.

    Lesson Learned: Always make a backup copy of a file before doing any editing/modifications.
    After completing fresh install, the first thing I did was to make a backup copy of entire folder "html"
    Code:
    cd  /usr/share/dump1090-mutability
    sudo cp -r html  html-backup 
    
    #Check the contents of newly created backup directory
    
    dir html-backup
    
    #you will see following files listed
    config.js    flags.js      jquery      planeObject.js  upintheair.json
    coolclock    flags-tiny    layers.js   script.js
    db           formatter.js  markers.js  spinny.gif
    dbloader.js  gmap.html     ol3         style.css
    Last edited by abcd567; 2016-07-17 at 12:09.

  6. #16
    First officer
    Join Date
    Mar 2015
    Location
    T-KSJC28
    Posts
    340
    At the risk of double posting can we shift this conversation to this thread? Moved from this thread FAStick
    TIA

    Update: After following the suggested commands to remove dump1090 and dump1090-mutability and restarting the RPi, both FR24feed and PIAware start as if nothing happened. It seems that dump1090 is not really being uninstalled or replaced by the mutability version in your suggested steps.

    Also when I executed the commands:
    sudo dpkg -r dump1090
    sudo dpkg --purge dump1090

    They both returned: "dpkg: warning: ignoring request to remove dump1090 which isn't installed".

    Even the first time I tried that command I got that message returned. I think the original dump1090 is still installed and unsuccessful with removing it so far.

    TIA
    Last edited by Sam26K; 2016-07-22 at 12:11.

  7. #17
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,581
    @Sam26K
    The very large number of librtlsdr files in your Pi is astonishing. I never got so many files. I think these may have been installed either from direct install of librtlsdr and dump1090 (Malcom Robson), or from step 1 of Piaware add-on on this page. As I already had dump1090-mutability installed, I never installed dump1090 (malcom robson), neither executed step 1 of Piaware page, and started directly from step 2.
    Code:
    #STEP 1 of PIAWARE ADD-ON
    wget http://flightaware.com/adsb/piaware/files/dump1090_1.2-3_armhf.deb
    sudo dpkg -i dump1090_1.2-3_armhf.deb
    How did you install your ORIGINAL dump1090? From Piaware's above commands, or independently, or both.

    I want to replicate your installation on my microSD Card and try it myself.
    Can you please list all your installation steps BEFORE you installed dump1090-mutability? Thanks.

  8. #18
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,581
    Quote Originally Posted by Sam26K View Post
    Here is the list of librtlsdr* files I still have after following your removal instructions:

    pi@raspberrypi:~ $ sudo find / -name librtlsdr*
    /var/lib/dpkg/info/librtlsdr-dev.md5sums
    /var/lib/dpkg/info/librtlsdr0:armhf.preinst
    /var/lib/dpkg/info/librtlsdr0:armhf.shlibs
    /var/lib/dpkg/info/librtlsdr0:armhf.conffiles
    /var/lib/dpkg/info/librtlsdr0:armhf.postrm
    /var/lib/dpkg/info/librtlsdr0:armhf.md5sums
    /var/lib/dpkg/info/librtlsdr-dev.list
    /var/lib/dpkg/info/librtlsdr0:armhf.list
    /var/lib/dpkg/info/librtlsdr0:armhf.postinst
    /var/cache/apt/archives/librtlsdr-dev_0.5.3-3_armhf.deb
    /var/cache/apt/archives/librtlsdr0_0.5.3-3_armhf.deb
    /home/pi/rtl-sdr/src/librtlsdr.c
    /home/pi/rtl-sdr/build/src/librtlsdr.so
    /home/pi/rtl-sdr/build/src/CMakeFiles/rtlsdr_static.dir/librtlsdr.c.o
    /home/pi/rtl-sdr/build/src/CMakeFiles/rtlsdr_shared.dir/librtlsdr.c.o
    /home/pi/rtl-sdr/build/src/librtlsdr.a
    /home/pi/rtl-sdr/build/src/librtlsdr.so.0.5git
    /home/pi/rtl-sdr/build/src/librtlsdr.so.0
    /home/pi/rtl-sdr/build/librtlsdr.pc
    /home/pi/rtl-sdr/librtlsdr.pc.in
    /usr/local/lib/librtlsdr.so
    /usr/local/lib/librtlsdr.a
    /usr/local/lib/librtlsdr.so.0.5git
    /usr/local/lib/librtlsdr.so.0
    /usr/local/lib/pkgconfig/librtlsdr.pc
    /usr/lib/arm-linux-gnueabihf/librtlsdr.so
    /usr/lib/arm-linux-gnueabihf/librtlsdr.a
    /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0.5.3
    /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0
    /usr/lib/arm-linux-gnueabihf/pkgconfig/librtlsdr.pc
    /usr/share/doc/librtlsdr0
    /usr/share/doc/librtlsdr-dev

    Thanks Again.

    Such a huge amount of librtlsdr files on your microSD card may be because you built these while installing dump1090 (Malcom Robson).
    Did you use following commands to install rtlsdr and dump1090 ?

    (1) Installation of driver for RTL-SDR DVB-T Dongle
    Code:
    git clone git://git.osmocom.org/rtl-sdr.git
    cd rtl-sdr
    mkdir build
    cd build
    cmake ../ -DINSTALL_UDEV_RULES=ON
    make
    sudo make install
    sudo ldconfig
    
    cd ~
    sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
    sudo reboot
    (2) Installation of Dump1090 (Malcom Robson)
    Code:
    cd ~
    git clone git://github.com/MalcolmRobb/dump1090.git
    cd dump1090
    make
    ./dump1090 --interactive --net --net-http-port 8080
    Last edited by abcd567; 2016-07-23 at 17:22.

  9. #19
    Passenger
    Join Date
    Jun 2016
    Posts
    7
    Excellent tutorial - i think the terrain limit rings and funky coloured planes are justification alone to install this.

    Backup / Image your current SD Card first using something like Apple Pi-Baker.

    Many Thanks

  10. #20
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,581
    @Sam26K
    Seems finally you got rid of all previous dump1090 installs & librtlsdr files.

    The map should now show on http://<Local IP address of RPi>/dump1090/gmap.html
    The page http://<Local IP address of RPi>:8080 should show Problem loading Page. Unable to connect.

    The web page problem appears to be due to lighttpd either not installed, or not configured properly. To test this, type in your browser ONLY Local IP of your Pi, WITOUT any Port number i.e. just like http://<IP address of RPi>

    If lighttpd is properly installed, you will see following place holder page:

    Lighttpd placeholder page.jpg

    If you dont see above page, and see error page, then there is something wrong with lighttpd. First try
    Code:
    sudo lighty-enable-mod dump1090
    sudo /etc/init.d/lighttpd force-reload
    Also check file:
    /etc/lighttpd/lighttpd.conf
    This will show that lighttpd sets web server to /var/www/html, and NOT to /var/www/public_html, as dump1090-mutability uses html folder, while other versions of dump1090, which use MalcomRobson fork, use public_html.

    The dump1090-mutability has its gmap page located in following folder:

    /usr/share/dump1090-mutability/html.

    If this does not solve the problem, try remove and the re install lighttpd by commands
    Code:
    #Remove & purge
    sudo apt-get remove lighttpd
    sudo apt-get purge lighttpd
    
    #Reinstall
    sudo apt-get install lighttpd
    
    #Configure to enable dump1090 module in lighttpd & restart lighttpd
    sudo lighty-enable-mod dump1090
    sudo /etc/init.d/lighttpd force-reload
    
    #Reboot RPi (optional)
    sudo reboot

    Now Reload/Refresh the map page http://<Local IP address of RPi>/dump1090/gmap.html


    .
    Last edited by abcd567; 2016-07-25 at 18:42.

Posting Permissions

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