Steps to integrate adsb_hub with PiAware on Raspberry Pi
- Use SSH terminal to connect: ssh pi@ip_of_raspberry, it will ask for password which is flightaware by default
- Next step is to download adsb_hub package. Command will be wget http://www.realadsb.com/dl/realadsb.zip
- Unzip the package using unzip realadsb.zip In case unzip is not found you can install it with command sudo apt-get install unzip
- 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
- After installing all pre-requisites execute cd realadsb in terminal and run ./startpi.sh
- Now you should be able to connect from RealADSB iOS app using ip_of_raspberry
- You can always check if adsb_hub is running and get process id with command like ps aux | grep adsb_hub
- 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
- It's good idea to reboot the Pi first: sudo reboot
- Login and create new file with command: sudo nano /etc/systemd/system/adsb_hub.service
- 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
- Save the file and reload systemd by running: sudo systemctl daemon-reload
- Then try to start the service: sudo systemctl start adsb_hub
- 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
- Now you can reboot again and check the service from RealADSB app
- 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!