In second part we're using the same hardware setup as in Stratux case but going with latest Raspberry Pi distribution package: Raspberry Pi OS (32-bit) Lite. It has necessary components for adsb_hub and can be downloaded from official website. Once again Etcher is great to write an image and after that ssh, wpa_supplicant.conf files can be created in root folder of SD card to enable ssh access and connect to your home Wi-Fi router respectively.
After Pi started you should be able to connect to it using ssh. In order to install rtl_tcp and adsb_hub use following commands:
At this point you can start adsb_hub:
Next step is to setup Pi's own Wi-Fi network so iOS device can connect to it when Wi-Fi router is not around. Please follow instructions listed here. You don't need routing and IP masquerading but the rest of the stuff is spot on. Just don't forget to change ssid and wpa_passphrase in /etc/hostapd/hostapd.conf and skip the step sudo service dhcpcd restart because it can make Pi inaccessible. After reboot try to join newly created Wi-Fi network from iOS device using IP 192.168.4.1 . In the future it's easy to switch Pi back to Wi-Fi router by commenting out wlan0 configuration in /etc/dhcpcd.conf plus reboot.
In order to start on boot adsb_hub need to be added to /etc/rc.local file. Run sudo nano /etc/rc.local and insert before exit 0 in the end:
# Auto run adsb_hub
sudo /home/pi/realadsb/start.sh > /dev/null
Sending output to /dev/null is a good way to save some energy and increase lifespan of SD card. As a result with 5200mAh battery you can expect 3-4 hours of radio spotting. Due to low voltage a red LED on Pi will not be always light up. However it's still enough to run adsb_hub on headless Pi and USB stick with its own light source such as RadarBox ADS-B FlightStick helps you to see if it's powered or not.