.: RealADSB :.


Steps to integrate adsb_hub with PiAware on Raspberry Pi

  1. Use SSH terminal to connect: ssh pi@ip_of_raspberry, it will ask for password which is flightaware by default
  2. Next step is to download adsb_hub package. Command will be wget http://www.realadsb.com/dl/realadsb.zip
  3. Unzip the package using unzip realadsb.zip In case unzip is not found you can install it with command sudo apt-get install unzip
  4. Check version of Java by executing java -version If version is below 17.0 please upgrade sudo apt-get install openjdk-17-jdk If some packages reported missing try sudo apt update and then repeat installation
  5. After installing all pre-requisites execute cd realadsb in terminal and run ./startpi.sh
  6. Now you should be able to connect from RealADSB iOS app using ip_of_raspberry
  7. You can always check if adsb_hub is running and get process id with command like ps aux | grep adsb_hub
  8. All errors will be reported in adsb_log.err file

When everything is working you can autostart adsb_hub after reboot by creating systemd service

  1. It's good idea to reboot the Pi first: sudo reboot
  2. Login and create new file with command: sudo nano /etc/systemd/system/adsb_hub.service
  3. Enter or copy the following text:
    [Unit]
    Description=adsb_hub
    After=network.target
    Wants=network.target
    
    [Service]
    Type=simple
    User=pi
    WorkingDirectory=/home/pi/realadsb
    ExecStart=/usr/bin/java -jar /home/pi/realadsb/adsb_hub.jar /home/pi/realadsb/dump1090mlat.json > /dev/null &
    Restart=always
    RestartSec=10
    Environment=JAVA_HOME=/usr/lib/jvm/java-17-openjdk-armhf
    
    [Install]
    WantedBy=multi-user.target
    
  4. Save the file and reload systemd by running: sudo systemctl daemon-reload
  5. Then try to start the service: sudo systemctl start adsb_hub
  6. Wait for a minute and then connect from RealADSB app using IP of Raspberry Pi, if you see the traffic then autostart can be enabled: sudo systemctl enable adsb_hub
  7. Now you can reboot again and check the service from RealADSB app
  8. It takes 1-2 minutes for PiAware to connect to FlightAware website but you can always use http://ip_of_raspberry in browser to check current status.

Enjoy your radiospotting!