I use piaware to feed its json-data into a database to be able to run some calculations.
Friends of mine, some ten kilometers away, will get their own piaware installations and their own FlightAware account.
How can I use their installations to “enrich” my data? Since it’s mainly about military flights it’s only Mode-S and needs the mlat calculation. It’s important that I do not only see their data on the map but in the json data, too.
Is it that simple:
their-piaware port 30005 → my-piaware port 30004
Or do they have to start a 2nd fa-mlat-client that feeds my port 30104?
30104 of your dump1090-fa is just a universal input port.
You can check this post how to use socat:
(High rise antenna? - #46 by wiedehopf)
(In that example the input port was changed to 29999, the data is being forwarded from the computer pi to localhost)
You can connect to the port 30005 to get non-MLAT results from dump1090 and 30105 to get MLAT results from piaware.
I suppose instead of using socat you could also configure piaware to feed MLAT data somewhere else:
dump1090-fa will not forward the MLAT positions to your piaware or other feeder no matter which piaware the mlat results come from.
if you were to forward non MLAT data your MLAT would cease to work because dump1090 passes it on and the clocks / positions don’t fit and MLAT stops working.
If you want to forward non-MLAT data as well you will need to run another dump1090-fa instance in net-only mode that does not feed piaware and is just for local purposes.
Also dump1090-fa does not establish connections as it acts as server so you need something like socat to connect the two ports.
Or you can run a second dump1090-fa on the same pi that’s no problem.
Just set all the ports in the config file to 0 except 30104 to 29999 for example.
Then you feed all the data there.
Also use --net-only in the parameters.
Then you will need a second config file of course and copy the service file
Thanks a lot. At the moment I try to build piaware on a x86 VM (Debian 9).
EDIT:
Works like a charm.
Now I think I will only start dump1090-fa and configure as you suggested.
Networking is not a problem for me since I am experienced with virtual networks, OpenVPN-tunnel in OpenVPN-tunnel and several routing tables per machine.
On your Debian 9 x86 on VM, did you install dump1090-fa with or without bladeRF?
Couple of months ago, I tried to install it on VM with Debian 9.5 amd64, and could not build it due to bladeRF package for my architecture/distro not available at that time.
Finally Oliver Jowett @obj guided me that if I am not using bladeRF hardware, I can built it by setting flag BLADERF=no
Debian9 has the needed packages:
||/ Name Version Architektur Beschreibung
++±==============================-====================-====================-==================================================================
ii libbladerf-dev:amd64 0.2016.06-1+b2 amd64 nuand bladeRF software-defined radio device (header files)
ii libbladerf1:amd64 0.2016.06-1+b2 amd64 nuand bladeRF software-defined radio device