Thereās no hardcoded limit, but I havenāt tested with large numbers of receivers so thereās surely bottlenecks to discover. (notably, the tracking code will probably start going slow with large numbers of aircraft)
I want to take output from Dump1090 and feed it into my own PostgreSQL database.
Whatās the best way to get readable data out? Port 30003, āKinetic SBSā format? That seems to be the most readable, although it does not include MLAT data.
Does the āRAWā port 30002 send the MLAT data as well? Obviously, it would be more work to parse, but maybe thatās the ācleanerā way?
By default mlat data is not forwarded on any port.
If you turn on --forward-mlat on dump1090 then mlat positions will be forwarded out 30002, 30003, 30005. If you do this please be careful that the mlat data doesnāt go to places that arenāt expecting it. An alternative is to tell the mlat client to also send data somewhere else via piaware-config -mlatResultsFormat, and then connect to that second feed as well as dump1090.
If you donāt want to do your own mode S message decoder / position decoder etc (it is not entirely trivial - you need a pair of messages to get an unambiguous position, so you need to track state per aircraft) then the port 30003 (ābasestationā) format is your best bet.
The socat method of aggregating is working very nicely for me (far better than netcat). Just passed 3 sets of data to a central server in prep for me adding a feeder at another location, mlat also. Not feeding to FA, just using it as a display of all feeders.
Message rate is the correct total and thereās no duplicate planes.
Just thought Iād add a little bash script that ensures that the socat command restarts if thereās an issue or drop in connection for some reason
#!/bin/bash
while true
do
socat -u TCP:feederIP:30005 TCP:aggregatorIP:30004
sleep 5
done
The sleep isnāt essential but in case the feeder is down for whatever reason it stops the script going into a resource hogging loop, only retrying every 5 seconds.
I then rebooted the aggregator RPi (to stop the aggregating process started by above command) and then gave following command, checked gmap of aggregator RPi, it seemed to work.
sudo apt-get install socat ##only one time command, as Raspbian Wheezy does not have socat installed by default
sudo socat -u TCP:<ip address of receiver pi>:30005 TCP:<ip address of aggrigator pi>:30004 & disown
I have added ā&ā and ādisownā at the end of commands to keep aggregating alive even if that console is used for some other command, or console window is closed.
Now I have a problem: When any of the two RPi is rebooted, the aggregation breaks. Is there a way to restart the process automatically at reboot?
.
hi dino, virtualradarserver is phantastic and runs stable on my macmini mediacenter server 24/7. with mono and x-server the server control panel is disgusting to use but beside that anything is stable and energy-efficient. possibilities are way better than with dump1090 webinterface.
As obj mentioned, the script I posted above will do the job. I could be wrong but using nc you have to do something on both the feeder and aggregator? But with socat you donāt, thatās how I found things, which means socat is an easier method and you only need a script on the aggregator.
You can create a file like:
sudo nano /usr/local/bin/dump1090-aggregator
use the script above accordingly
sudo chmod +x /usr/local/bin/dump1090-aggregator
If you donāt want to play with init.d or rc.local you can also add a line to your root crontab
Hi dino & tom
I have been aggregating feeds from my 2 sets of (RPi+DVB-T+Antenna) on my Windows Desktop using VRS and used this aggregate to feed RadarBox24. The feed is intermittent as I do not run my Desktop 24/7. Still I use Windows Desktop + VRS to feed RadarBox24 because:
(1) They do not have a Linux based data feeder client
(2) They have given me only one registration (EXTSHA000184)
The first screenshot below shows one of the planes on map for which data is fed by my station EXTSHA000184.
Other images show the various settings of VRS to aggregate & feed.
but i would still want to encourage you using a mac mini. these units a really great because they are enduring, quiet and have really low energy costs. and if windows is your favorite you can run this os instead of osx. mine is a 4 core i7 but just because itās my mediacenter where mp4 files for use iphone/ipad are generated and four different channels from my sat dish can be recorded (or streamed to computers or i-devices) simultaneous. if using as a server for ads-b data and virtualradarserver a used (150$) one from ebay is easily adequate.
So would these methods work to aggregate the feed from two co-located RPIās to supply one feed to flightaware? Could the aggregation occur on one of the two RPIās?