Announcement

Collapse
No announcement yet.

2019 - PI24 (Image) QuickStart Guide

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 2019 - PI24 (Image) QuickStart Guide

    STEP-1: Download Necessary Software

    1.1 - Download PI24 image (zip) on your Desktop/Laptop

    1.2 - Download and Install Win32DiskImager (Windows) OR Etcher (Win & Mac). Only one of these two softwares is enough. No need to download and install both.

    STEP-2: Prepare microSD Card

    2.1 - Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).

    2.2 - Unzip downloaded PI24 file to get .img file.

    2.3 - Write the unzipped Pi24 image to microSD Card using Win32DiskImager or Etcher.


    STEP-3 : Enable WiFi
    If you want your Pi to connect to local network/internet using a WIRED connection to router, skip this step.

    To use WiFi to connect Pi to local network/internet, the WiFi configuration should be done after image is written, and while the microSD Card is still in the Laptop/Desktop. For details please see following post:

    How To Enable WiFi

    Use only one connection at a time, either wired or WiFi.
    It is not recommended to use both simultaneously




    STEP-4: First Boot of RPI
    Eject & remove microSD card from card reader, insert into RPi, power up the RPi.


    STEP-5: Access and control of RPi from Desktop/Laptop using SSH
    You can access Pi and issue commands by connecting a Monitor and Keyboard to your RPi.
    However use of SSH enables you to issue commands from your Desktop/Laptop and eliminates the need to connect a Monitor and Keyboard to your RPi.


    For Remote access and SSH, please see following posts:

    - How To Access and Control RPi from Desktop/Laptop using SSH

    - IP Address Finders


    STEP-6: ACTIVATION

    Activation will require you to enter your details (email, sharing key, latitude, longitude, antenna height etc)

    If you already had a sharing key, you can retrive it as follows.
    1. Go to https://www.flightradar24.com and log-in to your FR24 account.

    2. After login, go to this page to find feeder keys:
      https://www.flightradar24.com/account/data-sharing

      FR24 - Find Keys.png


    Go to activate page linked below, and follow instruction to activate your Feeder Station.

    NOTE: Both the RPi and your computer (from which you visit the activate page) should be on same Local Network (router) when activating.

    https://www.flightradar24.com/activate-raspberry-pi

    NOTE:
    The activation page often malfunctions, and does not list your Pi. Instead it sends you to another page which incorrectly instructs to SSH into your Raspberry Pi and execute the standard install command

    Do not execute this command. It often fails without completing activation process due to GPG key problem.

    Instead use the signup command given below. This command completes Signup and Activation process without any problem.

    SSH to RPi (see STEP-5 above) and give following commands:
    Code:
    sudo mount -o remount,rw /
    
    fr24feed --signup
    Step 1.1 - Enter your email address (username@domain.tld)
    $: xxx@yyyyy.com

    Step 1.2 - If you used to feed FR24 with ADS-B data before enter your sharing key.
    If you don't remember your sharing key, pelase use the retrival form:
    http://feed.flightradar24.com/forgotten_key.php

    Otherwise leave this field empty and continue.
    $: xxxxxxxxxxxxxxxx
    Leave key entry blank if you dont have a key

    After completing above details, you will then reach following stage.
    Supply inputs as shown in red:

    Step 4.1 - Receiver selection (in order to run MLAT please use DVB-T stick with dump1090 utility bundled with fr24feed):

    1 - DVBT Stick (USB)
    -----------------------------------------------------
    2 - SBS1/SBS1er (USB/Network)
    3 - SBS3 (USB/Network)
    4 - ModeS Beast (USB/Network)
    5 - AVR Compatible (DVBT over network, etc)
    6 - microADSB (USB/Network)
    7 - SBSx via Basestation (localhost:30006)


    Enter your receiver type (1-7)$: 1
    Checking for dump1090...FOUND

    Step 4.3 - Enter your additional dump1090 arguments or leave empty
    $:

    Step 5.1 - Would you like to enable RAW data feed on port 30002 (yes/no)$: no

    Step 5.2 - Would you like to enable Basestation data feed on port 30003 (yes/no)$: no


    Step 6A - Please select desired logfile mode:
    0 - Disabled
    1 - 48 hour, 24h rotation
    2 - 72 hour, 24h rotation
    Select logfile mode (0-2)$: 1


    Step 6B - Please enter desired logfile path (/var/log/fr24feed):
    $:

    Saving settings to /etc/fr24feed.ini...OK
    Settings saved, please run "sudo systemctl restart fr24feed" to use new configuration.

    pi@raspberrypi:~ $ sudo systemctl restart fr24feed

    STEP-7: Checks

    NOTE:
    At the time of conduction following checks, both the RPi and your Desktop/Laptop should be on same Local Network (router).
    The IP-of-Pi used below will be something like 192.168.0.21 and can be found as shown in step 7.1 below.

    6.1 - Check Status in PuTTY

    Code:
    pi@raspberrypi:~ $ fr24feed-status 
    
    [ ok ] FR24 Feeder/Decoder Process: running.
    [ ok ] FR24 Stats Timestamp: 2019-07-21 23:10:34.
    [ ok ] FR24 Link: connected [UDP].
    [ ok ] FR24 Radar: T-CYYZ88.
    [ ok ] FR24 Tracked AC: 51.
    [ ok ] Receiver: connected (1047 MSGS/0 SYNC).
    [ ok ] FR24 MLAT: ok [UDP].
    [ ok ] FR24 MLAT AC seen: 29.
    6.2 - Check Status in Browser of your Desktop/Laptop

    6.2.1 - To check that feeder is working OK, open your browser and type following address and press Enter Key.

    IP-of-Pi:8754


    6.2.2 - To check that dump1090 is working OK, open your browser and type following address and press Enter Key.

    IP-of-Pi/dump1090/


    STEP-8: SETTINGS & CONFIGURATION
    To check settings (or modify settings if needed), open your browser and type following address and press Enter Key.

    IP-of-Pi:8754/settings.html

    After making changes, press "Save" button, then "Restart" button.
    Both these buttons are at bottom-right corner of settings page.

    See below screenshot of settings page
    Pi24 Settings.png


    STEP-9: Installation of Data Feeders of Other Sites
    Please see Post #6 below
    Last edited by abcd567; 2019-09-29, 23:00.

  • #2
    How To Access and Control RPi from Desktop/Laptop using SSH

    1 - Find the Local IP address of your RPi.
    The IP is similar to 192.168.0.21.

    You can find Local IP of your RPi by any one of the following methods:
    (a) Login to your router's settings page and find the list of connected devices with their IP addresses.

    (b) Use software "Angry IP Scanner" (for Windows & Mac)
    https://angryip.org/download/
    (see post #4 below for screenshots)

    (c) Use software Advanced IP Scanner (Windows)
    http://www.advanced-ip-scanner.com/
    (see post #4 below for screenshots)


    2 - Install SSH Software

    2.1 - Mac:
    No need to install any software. Use Mac's Terminal to SSH to RPi
    Launch the Terminal application. Terminal is found in /Applications/Utilities/ directory but you can also launch it from Spotlight by hitting Command+Spacebar and typing “Terminal” and then return
    In terminal type following and hit return key.
    (Replace 192.168.0.21 by your RPi's actual IP address)
    Code:
    ssh pi@192.168.0.21
    login as : pi
    password : raspberry

    2.2 - Windows:
    Install PuTTY on your Windows computer to SSH to RPi
    Download page: https://www.chiark.greenend.org.uk/~...ty/latest.html



    Screenshots for Post Installation Steps:
    PuTTY-3.png PuTTY-4.png PuTTY-5A.png PuTTY-6A.png


    login as : pi
    password : raspberry



    3 - How To Copy-Paste Text To / From PuTTY

    How to Copy-Paste To or From PuTTY.png
    Last edited by abcd567; 2019-07-22, 15:59.

    Comment


    • #3
      How To Enable WiFi
      This should be done while the microSD Card is still in the Laptop/Desktop's card reader after writing the Pi24 image.

      If you want your Pi to connect to local network/internet using a wired connection to router, skip this step.
      If you want your Pi to connect to local network/internet using WiFi, enable Wifi as given below.
      Use only one connection at a time, either wired or WiFi.
      It is not recommended to use both simultaneously


      1 - After image is written, and while the microSD Card is still in the Laptop/Desktop, open File Explorer (Windows) or Finder (Mac), and open the microSD card.

      NOTE:
      If you have used Etcher, it will automatically eject the microSD card after writing the image.
      Physically remove the microSD card or USB adapter and plug it back into the computer before you carry-out steps below.


      2 - The microSD card will appear with name "boot" as shown in screenshot below.
      PI24 - microSD in Windows - 1.png


      3 - Open the drive named "boot". This will open the /boot folder of PI24. In this folder create a new text file, as shown in screenshot below

      PI24 - microSD in Windows - 3.png



      4 - Open the text file using Notepad (Windows) or TextEdit (Mac)
      In the opened text file, copy-paste following text:

      Code:
      country=CA
      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
      update_config=1
      
      network={
          ssid="YOUR_SSID"
          psk="YOUR_PASSWORD"
      }
      Replace:
      • CA by two letter code for your country e.g. GB for UK, US for USA, DE for Germany, FR for France, SE for Sweden, CH for Switzerland, NL for Netherland, AU for Australia, NZ for New Zealand, etc etc. (click here for complete list)

      • YOUR_SSID by your router’s wifi ssid

      • YOUR_PASSWORD by your router’s wifi password.

      5 - Save file.

      6 - Change the name of file from "New Text Document.txt" to "wpa_supplicant.conf"

      NOTE: If your Desktop/Laptop does not show file extensions, the newly created file "New Text Document" will NOT show .txt extension at the end, as shown in screenshot below.


      PI24 - microSD in Windows - 3.png

      In the case of hidden extension .txt, even after you change file name to "wpa_supplicant.conf" its full name will be "wpa_supplicant.conf.txt" with ".txt" not visible. If the file has a hidden extension .txt, it will not enable wifi.

      Configure Windows File Explorer to show file extensions as shown in the screenshots below:

      PI24 - microSD in Windows - 4.png


      Now change the name of file "New Text Document.txt" to "wpa_supplicant.conf", as shown in screenshot below:

      PI24 - microSD in Windows - 5.png



      Last edited by abcd567; 2019-07-22, 15:43.

      Comment


      • #4
        IP Address Finders

        Advanced IP Scanner (Windows)
        http://www.advanced-ip-scanner.com/

        Advance IP Scanner.png


        Angry IP Scanner (Windows & Mac)
        https://angryip.org/download/

        Angry IP Scanner.png
        Last edited by abcd567; 2019-07-24, 16:03.

        Comment


        • #5
          Work-around for "read only file system" error

          Fixing 'Read only' file system errors
          Pi24 often gives "read only file system" message. If you get this message, give following command to make file system "read and write".

          Code:
          sudo mount -o remount,rw /

          Note - This short version is 1-time and will revert on reboot
          Last edited by abcd567; 2019-07-23, 21:17.

          Comment


          • #6
            Installing Data Feeders of Other Sites


            NOTE: The Pi24 image sometimes mounts as "read-only file system". As a result installation of other feeders fails and gives error messages. In this case first change read-only file system to read & write system by following command, then try again to install other feeders.
            Code:
            sudo mount -o remount,rw /
            Last edited by abcd567; 2019-07-24, 00:37.

            Comment


            • #7
              PLACEHOLDER 1
              Last edited by abcd567; 2019-07-23, 21:12.

              Comment


              • #8
                PLACEHOLDER 2

                Comment


                • #9
                  PLACEHOLDER 3

                  Comment


                  • #10
                    Thank you!!

                    Just wanted to say thank you I have been looking for this information for a long time. I appreciate you putting this all together!!

                    Comment


                    • #11
                      Thanks for the info, abcd567.
                      Pi now up and running successfully.

                      Is there a way to configure Virtual Radar Server on a Windows Laptop to track the aircraft you are feeding to FR24?

                      Cheers,
                      Steve

                      Comment


                      • #12
                        Steve N:

                        Yes, it is possible.
                        I am away from my computer, so whatever given below is by memory.
                        I will check when I am at my Desktop, and edit if needed.

                        In FR24 settings page
                        IP-of-Pi:8754/settings.html
                        In Process Arguments add:
                        --net

                        In VRS Settings
                        Format: Beast
                        Network: IP-of-Pi
                        Port: 30005

                        Comment


                        • #13
                          Thanks a lot for the tutorial.

                          Comment


                          • #14
                            I am just about to hook up my odroid XU4 to flightradar24. Currently operating a FA piaware set up. Should I use the raspberry pi script as per FR24 other installs??

                            Comment

                            Working...
                            X