In the end, I think I’ve managed to get all 4 running in around 5 minutes. And moreover, because all the configuration is done in the Dockerfiles behind the scenes, even non geeks can get their Raspberry Pi’s up and running without pain.
Someone asked me if it’s possible to do the same thing on Windows (or even OS X or Linux).
I’ve managed to get it running on OS X using Docker, which basically automatically solves the install for Windows and Linux as well.
Install Docker for your specific OS - docs.docker.com/ - the click “Get Started”
(Windows or OS X) run “Docker Quickstart Terminal” application then issue:
and make edits to make it your own changing:
a) Latitude and Longitude (e.g. Sydney, Australia -33.7968 150.7823 - see where-am-i.net)
b) PPM (optional - leave as 1 - more on this later)
c) Username and Password (for Flightaware)
d) MAC Address of container (this can be anything your would like, or an old MAC address or even generated hellion.org.uk/cgi-bin/randmac.pl) - unique required per piaware client
Run the container the first time using, then press + C to stop:
$ docker-compose up
.... some docker pulls and installs
Attaching to dockerx86rtlsdrdump1090piaware_dump1090-piaware_1
dump1090-piaware_1 | Adding user myusername and password mypassword to Flightaware configuration
dump1090-piaware_1 | Wed Dec 30 03:27:26 2015 UTC dump1090-mutability v1.14-137-g59726c6 starting up.
dump1090-piaware_1 | Using sample converter: UC8, integer/table path
dump1090-piaware_1 | Found 1 device(s):
dump1090-piaware_1 | 2.1-5
dump1090-piaware_1 | 0: Realtek, RTL2841UHIDIR, SN: 00000001 (currently selected)
dump1090-piaware_1 | Found Rafael Micro R820T tuner
dump1090-piaware_1 | Using automatic gain control.
dump1090-piaware_1 | Gain reported by device: 0.00 dB
Gracefully stopping... (press Ctrl+C again to force)
Stopping dockerx86rtlsdrdump1090piaware_dump1090-piaware_1 ...
Killing dockerx86rtlsdrdump1090piaware_dump1090-piaware_1 ... done
I’ll run it shortly in a side by side comparison to see what the impact is. I’ve only been running it for a short while today to test, and to be honest the only reason I got Docker running for OS X/Windows (which would require the passthrough) is because (a) it’s reasonably easy to convert from RPI and (b) because someone asked me to.
Thank you for putting this together! I just got a NooElec SDR USB dongle from Amazon and was able to get this docker image up and running in no time on my Mac.
I tried going down the route of getting dump1090 and the other utilities configured on my Mac natively to start sending to Flightaware that way but it was proving to be a difficult process as it’s clearly designed for Linux.
I imagine this was done as a one off but would you consider keeping this image up to date? I plan to continue to use it on my Mac and I could see others doing the same.
I basically started off with the sample file that was posted earlier in this thread. So the syntax error kicks in with any of the parameters after the environment statement e.g. USERNAME, PASSWORD, LAT, LONG. This is on OS X for me.
Ah, YAML is whitespace sensitive and it appears that you have put all of the lines at the same level of indentation. Try copying the YAML file from the first post in the thread into an editor and just edit the XX fields without changing any of the whitespace.