Page 1 of 6 123 ... LastLast
Results 1 to 10 of 55

Thread: Raspberry Pi:How To Install Raspian OS + Dump1090 + FR24 Data Feeder

  1. #1
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,809

    Raspberry Pi:How To Install Raspian OS + Dump1090 + FR24 Data Feeder

    What you need is 3 components as follows:
    1- An operating system like Raspbian.
    2- A decoder software like Dump1090
    3- A Data Feeding software.

    UPDATED on August 27, 2016

    OPTION A:
    (1) Download Debian based operating system image on your computer, and write the downloaded image to your microSD card. Download and installation instructions are here: https://www.raspberrypi.org/downloads/

    (2) To install dump1090 and FR24 data feeder, SSH into your Raspberry Pi and execute this command:
    Code:
    sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
    You will be asked to enter your email address, antenna position and other details.

    If later you want to view or change settings, type following address in your browser, and settings page will appear:
    http://<IP address of your RPI on your LAN>:8754/settings.html

    Please see this page for latest information: https://www.flightradar24.com/raspberry-pi

    OPTION B:
    Download and burn on your microSD card the Pi24 image from this page (see "Installation instructions" on this page):
    https://www.flightradar24.com/build-your-own


    OPTION C:
    (1) Download PiAware image from FlightAware on your computer, and write the downloaded image to your microSD card.
    Download and installation instructions are here: http://flightaware.com/adsb/piaware/build
    This image contains operating system Raspbian, dump1090 and Flightaware data feeder.

    (2) SSH into your Raspberry Pi and execute this command to install FR24 data feeder:
    Code:
    sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
    You will be asked to enter your email address, antenna position and other details.

    If later you want to view or change settings, type following address in your browser, and settings page will appear:
    http://<IP address of your RPI on your LAN>:8754/settings.html

    Please see this page for latest information: https://www.flightradar24.com/raspberry-pi


    ================================================== =========================
    ================================================== =========================
    OPTION C (MANUAL METHOD. Better use Option A or B which are semi-automated and easier):
    You can install each component separately in three (3) steps shown below.

    STEP 1- Install Raspbian Wheezy on microSD Card
    Download Raspbian on your Desktop/Laptop from Raspberry Pi's Official Website http://www.raspberrypi.org/downloads/. Scroll down the page to find Raspbian.

    After download follow instructions on this page http://www.raspberrypi.org/documenta...ages/README.md.

    You will need a TV/monitor, mouse & keyboard for first install. Select GUI option (Graphical User Interface like windows) when configuration starts at the end of install.

    Alternatively, instead of downloading Raspbian from above noted page, you may download NOOBS from the same page, and choose option Raspbian during installation of NOOBS. Instruction for Installation of NOOBS are here http://www.raspberrypi.org/help/noobs-setup/



    STEP 2- Install rtl-sdr Drivers and Decoder Dump1090
    This requires using console of Raspbian Wheezy. You can visit these two sites for instructions:
    https://ferrancasanovas.wordpress.co...-installation/

    http://www.satsignal.eu/raspberry-pi/dump1090.html

    I will list the console commands here which I got from these sites:

    2a- Install updates, upgrades and tools
    Code:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install git-core
    sudo apt-get install git 
    sudo apt-get install cmake
    sudo apt-get install libusb-1.0-0-dev
    sudo apt-get install build-essential
    2b- Install RTL-SDR Drivers
    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
    2c- Install dump1090 (Please see post # 3 below before proceeding)
    Code:
    cd  ~ 
    git  clone  git://github.com/MalcolmRobb/dump1090.git
    cd  dump1090
    make
    ./dump1090 --interactive --net --net-http-port 8080
    You may get following error message;
    Code:
    Kernel driver is active, or device is claimed by second instance
    In the first case, please either detach or blacklist the kernel
    (dvb_usb_rtl28xxu), or enable automatic detaching at compile tim
    
    usb_claim_interface error -6
    Error opening the RTLSDR device: Device or resource busy
    To solve this problem you have to create a blacklist file as follows:
    Code:
    cd  /etc/modprobe.d
    sudo nano /etc/modprobe.d/rtl-sdr-blacklist.conf
    This will create & open the blacklist file rtl-sdr-blacklist.conf
    type following lines in this file & save the file.
    Code:
    blacklist dvb_usb_rtl28xxu
    blacklist e4000
    blacklist rtl2832
    To enable display of planes on Google Map in a Browser, give following command in console:
    Code:
    cd dump1090
    ./dump1090 --interactive --net --net-http-port 8080


    STEP 3- Installation of FR24 Data feeder :
    (Source: http://forum.flightradar24.com/threa...-BETA-testing-)

    Type following command in your console:
    Code:
    sudo wget http://feed.flightradar24.com/raspberry-pi/fr24feed_1.0.12-3_armhf.deb
    This will download .deb installation file in Downloads folder of your RPi.
    install the data feeding software using following console command:

    Code:
    sudo dpkg -i fr24feed_1.0.12-3_armhf.deb
    If this is the first time you’re going to share data with FR24, use the command below:
    Code:
    sudo fr24feed --signup
    If you have already obtained a a data sharing key from FR24, or are already sharing data with FR24 from another computer and want to now feed from RPi instead, use the same sharing key you already have, and start the configuration process by executing:
    Code:
    sudo fr24feed --reconfigure --fr24key=YOUR SHARING KEY
    Complete the configuration wizard. When asked for additioal arguments for dump1090, enter following:
    Code:
    --net --net-http-port 8080
    Now start sharing your data by typing:
    Code:
    sudo service fr24feed restart
    Now run the command:
    Code:
    service fr24feed status
    You will see following "Fail, Receiver down" (last line)
    Code:
    pi@piaware ~ $ service fr24feed status
    [ ok ] FR24 Feeder/Decoder Process: running.
    [ ok ] FR24 Stats Timestamp: 2015-01-21 17:46:02.
    [ ok ] FR24 Link: connected [UDP].
    [ ok ] FR24 Radar: T-CYYZ9.
    [ ok ] FR24 Tracked AC:.
    [FAIL] Receiver: down ... failed!
    Then follow steps shown in the screenshots below:

    FR24 setup on PiAware-1.PNG . FR24 setup on PiAware-2.PNG . FR24 setup on PiAware-3.PNG

    Now again run the command "service fr24feed status",
    Now the message:
    [FAIL] Receiver: down ... failed!
    will be replaced by:
    [ ok ] Receiver: connected (xxx MSGS/0 SYNC).


    During the next system restart FR24 decoder/feeder will start automatically.

    Download Guide (pdf) from here: http://feed.flightradar24.com/fr24feed-manual.pdf

    GOOD LUCK!!!!
    Last edited by abcd567; 2016-08-28 at 03:20.

  2. #2
    Passenger
    Join Date
    Dec 2012
    Posts
    7
    My setup looks like the screenshots and works well.

    I run PP, SBS Plotter and the Google map

    Setup1.jpgRPi_Service.jpg

  3. #3
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    1,809
    DUMP1090-MUTABILITY (for advance users)

    Instead of dump1090, you can install dump1090-mutability which has more functionality.

    To avoid conflict, it is advisable NOT to install both versions of dump. Install either dump1090 OR dump1090-mutability.



    1. Set up the repository and signing key:
    Code:
    wget https://github.com/mutability/mutability-repo/releases/download/v0.1.0/mutability-repo_0.1.0_armhf.deb
    sudo dpkg -i mutability-repo_0.1.0_armhf.deb

    2. Install and upgrade packages via apt-get:
    Code:
    sudo apt-get update && sudo apt-get install dump1090-mutability

    3. Perform Detailed configuration:
    Code:
    sudo dpkg-reconfigure dump1090-mutability
    During configuration when asked:
    (a) "Interface address to bind to (blank for all interfaces) " , remove 127.0.0.1 and leave entry blank. This is a workaround to overcome a bug piaware.

    (b) "Extra arguments to pass to dump1090", enter " --net --net-http-port 8080 ". This will enable display of dump1090's google map on web browser.

    4. If you want to use the external webserver integration:
    Code:
    sudo apt-get install lighttpd && sudo lighty-enable-mod dump1090

    5. Upgrade:
    Code:
    sudo apt-get upgrade

    6. Start, Stop, Status
    Code:
    sudo /etc/init.d/dump1090-mutability stop  # to stop
    sudo /etc/init.d/dump1090-mutability start  # to start again
    sudo /etc/init.d/dump1090-mutability status  # to check if it is running.
    #If running, status check should give: [ ok ]dump1090-mutability is running.
    #If not running, status check should give: [FAIL] dump1090-mutability is not running ... failed!

    7. Changing Settings
    You can anytime modify the settings by two methods:

    (a) Easy: By running "dpkg-reconfigure dump1090-mutability" as root
    Code:
    sudo dpkg-reconfigure dump1090-mutability

    (b) Advance: Editing by console command
    Code:
    cd ~
    cd  /etc/default/
    sudo dump1090-mutability --argument value    #see list of arguments & values below
    sudo reboot   #for changes to take effect, reboot after you finish making changes
    arguments & value in above command are:
    Code:
    -----------------------------------------------------------------------------
    | dump1090 ModeS Receiver  dump1090-mutability v1.13 |
    -----------------------------------------------------------------------------
    --device-index <index>  Select RTL device (default: 0)
    --gain <db>  Set gain (default: max gain. Use -10 for auto-gain)
    --enable-agc  Enable the Automatic Gain Control (default: off)
    --freq <hz>  Set frequency (default: 1090 Mhz)
    --ifile <filename>  Read data from file (use '-' for stdin)
    --interactive  Interactive mode refreshing data on screen
    --interactive-rows <num> Max number of rows in interactive mode (default: 15)
    --interactive-ttl <sec>  Remove from list if idle for <sec> (default: 60)
    --interactive-rtl1090  Display flight table in RTL1090 format
    --raw  Show only messages hex values
    --net  Enable networking
    --modeac  Enable decoding of SSR Modes 3/A & 3/C
    --net-only  Enable just networking, no RTL device or file used
    --net-bind-address <ip>  IP address to bind to (default: Any; Use 127.0.0.1 for private)
    --net-http-port <port>  HTTP server port (default: 8080)
    --net-ri-port <port>  TCP raw input listen port  (default: 30001)
    --net-ro-port <port>  TCP raw output listen port (default: 30002)
    --net-sbs-port <port>  TCP BaseStation output listen port (default: 30003)
    --net-bi-port <port>  TCP Beast input listen port  (default: 30004)
    --net-bo-port <port>  TCP Beast output listen port (default: 30005)
    --net-fatsv-port <port>  FlightAware TSV output port (default: 10001)
    --net-ro-size <size>  TCP output minimum size (default: 0)
    --net-ro-interval <rate> TCP output memory flush rate in seconds (default: 0)
    --net-heartbeat <rate>  TCP heartbeat rate in seconds (default: 60 sec; 0 to disable)
    --net-buffer <n>  TCP buffer size 64Kb * (2^n) (default: n=0, 64Kb)
    --net-verbatim  Do not apply CRC corrections to messages we forward; send unchanged
    --lat <latitude>  Reference/receiver latitude for surface posn (opt)
    --lon <longitude>  Reference/receiver longitude for surface posn (opt)
    --max-range <distance>  Absolute maximum range for position decoding (in nm, default: 300)
    --fix  Enable single-bits error correction using CRC
    --no-fix  Disable single-bits error correction using CRC
    --no-crc-check  Disable messages with broken CRC (discouraged)
    --phase-enhance  Enable phase enhancement
    --aggressive  More CPU for more messages (two bits fixes, ...)
    --mlat  display raw messages in Beast ascii mode
    --stats  With --ifile print stats at exit. No other output
    --stats-every <seconds>  Show and reset stats every <seconds> seconds
    --onlyaddr  Show only ICAO addresses (testing purposes)
    --metric  Use metric units (meters, km/h, ...)
    --snip <level>  Strip IQ file removing samples < level
    --debug <flags>  Debug mode (verbose), see README for details
    --quiet  Disable output to stdout. Use for daemon applications
    --ppm <error>  Set receiver error in parts per million (default 0)
    --no-decode  Don't decode the message contents beyond the minimum necessary
    --write-json <dir>  Periodically write json output to <dir> (for serving by a separate webserver)
    --write-json-every <t>  Write json output every t seconds (default 1)
    --json-location-accuracy <n>  Accuracy of receiver location in json metadata: 0=no location, 1=approximate, 2=exact
    --help  Show this help
    
    Debug mode flags: d = Log frames decoded with errors
      D = Log frames decoded with zero errors
      c = Log frames with bad CRC
      C = Log frames with good CRC
      p = Log frames with bad preamble
      n = Log network debugging info
      j = Log frames to frames.js, loadable by debug.html

    When trying to manually editing settings, you may get following error message;
    Code:
    Kernel driver is active, or device is claimed by second instance
    In the first case, please either detach or blacklist the kernel
    (dvb_usb_rtl28xxu), or enable automatic detaching at compile time
    
    usb_claim_interface error -6
    Error opening the RTLSDR device: Device or resource busy

    To solve this problem, stop the dump1090-mutability by following command , and run the manual configuration process:
    Code:
    sudo /etc/init.d/dump1090-mutability stop

  4. #4
    Passenger
    Join Date
    Feb 2013
    Posts
    9
    abcd567, I just want to thank you so much for the info to set up FR24 Feed with piaware. I've been going crazy trying to find a way to get that to work.
    Your info made it so easy. I followed your instructions and it worked with no problems at all. Thanks again.

  5. #5
    Passenger
    Join Date
    Feb 2013
    Posts
    9
    Ok, I'm now uploading data to FR24 thru my RasPi and I see stats for aircraft and positions but "Current upload rate" shows "0 KB/s".
    Is this normal?

  6. #6
    Passenger papasven's Avatar
    Join Date
    Jan 2014
    Location
    near Berlin
    Posts
    13
    Quote Originally Posted by djmarko413 View Post
    Ok, I'm now uploading data to FR24 thru my RasPi and I see stats for aircraft and positions but "Current upload rate" shows "0 KB/s".
    Is this normal?
    A while ago I saw values there i believe, otherwise all ok.

    Unbenannt.png

  7. #7
    Passenger
    Join Date
    Feb 2013
    Posts
    9
    Quote Originally Posted by papasven View Post
    A while ago I saw values there i believe, otherwise all ok.

    Unbenannt.png
    Ok, thanks for that info.

  8. #8
    Flight attendant
    Join Date
    Mar 2015
    Location
    Nancy, France
    Posts
    62
    Quote Originally Posted by abcd567 View Post
    What you need is 3 components as follows:
    1- An operating system like Raspbian.
    2- A decoder software like Dump1090
    3- A Data Feeding software.
    Thank you very much for such a detailed and well explained procedure, I was able to set-up everything very quickly!

  9. #9
    Purser
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    127
    Quote Originally Posted by abcd567 View Post
    What you need is 3 components as follows:
    1- An operating system like Raspbian.
    2- A decoder software like Dump1090
    3- A Data Feeding software.

    OPTION A:
    You can install each component separately in three (3) steps shown below.

    OPTION B:
    An easier option is to install PiAware image from FlightAware. PiAware is a complete package containing all above three components in one image file, but its Data Feeder is for Flight Aware only. To feed FR24, you will have to install FR24 data feeder (step 3 below) after installing PiAware image.

    I have prepared two 8 GB microSD cards, one with option A, and other with option B, and both work ok.


    STEP 1- Install Raspbian Wheezy on microSD Card
    Download Raspbian (Debian Wheezy) on your Desktop/Laptop from Raspberry Pi's Official Website http://www.raspberrypi.org/downloads/. Scroll down the page to find Raspbian Wheezy.

    After download follow instructions on this page http://www.raspberrypi.org/documenta...ages/README.md.

    You will need a TV/monitor, mouse & keyboard for first install. Select GUI option (Graphical User Interface like windows) when configuration starts at the end of install.

    Alternatively, instead of downloading Raspbian Wheezy from above noted page, you may download NOOBS from the same page, and choose option Raspbian during installation of NOOBS. Instruction for Installation of NOOBS are here http://www.raspberrypi.org/help/noobs-setup/



    STEP 2- Install rtl-sdr Drivers and Decoder Dump1090
    This requires using console of Raspbian Wheezy. You can visit these two sites for instructions:
    https://ferrancasanovas.wordpress.co...-installation/

    http://www.satsignal.eu/raspberry-pi/dump1090.html

    I will list the console commands here which I got from these sites:

    2a- Install updates, upgrades and tools
    Code:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install git-core
    sudo apt-get install git 
    sudo apt-get install cmake
    sudo apt-get install libusb-1.0-0-dev
    sudo apt-get install build-essential
    2b- Install RTL-SDR Drivers
    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
    2c- Install dump1090 (Please see post # 3 below before proceeding)
    Code:
    cd ~
    sudo  cp  ./rtl-sdr/rtl-sdr.rules  /etc/udev/rules.d/
    sudo  reboot
    cd  ~ 
    git  clone  git://github.com/MalcolmRobb/dump1090.git
    cd  dump1090
    make
    ./dump1090 --interactive --net --net-http-port 8080
    You may get following error message;
    Code:
    Kernel driver is active, or device is claimed by second instance
    In the first case, please either detach or blacklist the kernel
    (dvb_usb_rtl28xxu), or enable automatic detaching at compile tim
    
    usb_claim_interface error -6
    Error opening the RTLSDR device: Device or resource busy
    To solve this problem you have to create a blacklist file as follows:
    Code:
    cd  /etc/modprobe.d
    sudo nano /etc/modprobe.d/rtl-sdr-blacklist.conf
    This will create & open the blacklist file rtl-sdr-blacklist.conf
    type following lines in this file & save the file.
    Code:
    blacklist dvb_usb_rtl28xxu
    blacklist e4000
    blacklist rtl2832
    To enable display of planes on Google Map in a Browser, give following command in console:
    Code:
    cd dump1090
    ./dump1090 --interactive --net --net-http-port 8080


    STEP 3- Installation of FR24 Data feeder :
    (Source: http://forum.flightradar24.com/threa...-BETA-testing-)

    Type following command in your console:
    Code:
    sudo wget http://feed.flightradar24.com/raspberry-pi/fr24feed_1.0.12-3_armhf.deb
    This will download .deb installation file in Downloads folder of your RPi.
    install the data feeding software using following console command:

    Code:
    sudo dpkg -i fr24feed_1.0.12-3_armhf.deb
    If this is the first time you’re going to share data with FR24, use the command below:
    Code:
    sudo fr24feed --signup
    If you have already obtained a a data sharing key from FR24, or are already sharing data with FR24 from another computer and want to now feed from RPi instead, use the same sharing key you already have, and start the configuration process by executing:
    Code:
    sudo fr24feed --reconfigure --fr24key=YOUR SHARING KEY
    Complete the configuration wizard. When asked for additioal arguments for dump1090, enter following:
    Code:
    --net --net-http-port 8080
    Now start sharing your data by typing:
    Code:
    sudo service fr24feed restart
    Now run the command:
    Code:
    service fr24feed status
    You will see following "Fail, Receiver down" (last line)
    Code:
    pi@piaware ~ $ service fr24feed status
    [ ok ] FR24 Feeder/Decoder Process: running.
    [ ok ] FR24 Stats Timestamp: 2015-01-21 17:46:02.
    [ ok ] FR24 Link: connected [UDP].
    [ ok ] FR24 Radar: T-CYYZ9.
    [ ok ] FR24 Tracked AC:.
    [FAIL] Receiver: down ... failed!
    Then follow steps shown in the screenshots below:

    FR24 setup on PiAware-1.PNG . FR24 setup on PiAware-2.PNG . FR24 setup on PiAware-3.PNG

    Now again run the command "service fr24feed status",
    Now the message:
    [FAIL] Receiver: down ... failed!
    will be replaced by:
    [ ok ] Receiver: connected (xxx MSGS/0 SYNC).


    During the next system restart FR24 decoder/feeder will start automatically.

    Download Guide (pdf) from here: http://feed.flightradar24.com/fr24feed-manual.pdf

    GOOD LUCK!!!!
    Man you save my life, afthe 1 day tryng make my PI works, i found this topic, really 192.168.0.x:5784/settings.html this make a difference....... this topic must be merged on flightradar24 install notes for RPI, maybe new users need them.
    Really thanks for that.

    Cheers
    Last edited by mrcarlos; 2015-04-19 at 20:09.

  10. #10
    Passenger
    Join Date
    Apr 2015
    Posts
    9
    Thanks for your guide, unfortunately I've hit a problem.
    I keep hitting the problem described in the end of step 2.
    I made the blacklist but still it keeps giving the error, is this normal or should I proceed?


    After redoing steps 2 and 3 I got it working
    Last edited by thebenchmark; 2015-04-26 at 00:33.

Posting Permissions

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