Step by step how to integrate airspy into existing piaware

I do not use the /etc/rc.local method to get airspy_adsb to autostart, it did not work on my raspbian stretch (flightaware 3.6.3 sd card install). Instead I created a file /etc/systemd/system/airspy_adsb.service with this content:

[Unit]
Description=Fetching data from Airspy SDR
Documentation=https://discussions.flightaware.com/t/howto-airspy-mini-piaware-dump1090-fa-configuration/44343

[Service]
WorkingDirectory=/home/pi/
EnvironmentFile=/etc/default/airspy_adsb
ExecStart=/home/pi/airspy_adsb $OPTIONS
Nice=-10
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=airspy_adsb
User=root
Group=root
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target

Then I activated it with sudo systemctl daemon-reload and sudo systemctl enable airspy_adsb. Et voilà: Upon next reboot it started automatically. You can check what it did by using journalctl -u airspy_adsb. Depending on where you put your airspy_adsb you may have to adjust the path to it.

In /boot/piaware-config.txt I put the following receiver configuration:

receiver-type other
receiver-host localhost
receiver-port 29999

In /etc/default/airspy_adsb I put

OPTIONS="-c localhost:30104:BEAST -l 29999:BEAST -b -g 21 -p -m 20"

Maybe that’s useful for some of you.

3 Likes