<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>flightaware &#8211; Robert&#039;s private homepage</title>
	<atom:link href="http://rehner.org/archives/tag/flightaware/feed" rel="self" type="application/rss+xml" />
	<link>http://rehner.org</link>
	<description></description>
	<lastBuildDate>Mon, 10 Oct 2016 21:30:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Raspberry Pi B as an ADS-B receiver + FlightAware with MLAT + Flightradar24 + Plane Finder</title>
		<link>http://rehner.org/archives/165</link>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Thu, 22 Sep 2016 10:03:57 +0000</pubDate>
				<category><![CDATA[ADS-B]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[flightaware]]></category>
		<category><![CDATA[flightradar24]]></category>
		<category><![CDATA[minibian]]></category>
		<category><![CDATA[planefinder]]></category>
		<guid isPermaLink="false">http://rehner.org/?p=165</guid>

					<description><![CDATA[This is a quick tutorial how to set up your PI as a SDR which collects ADS-B messages from planes and shares them with FlightAware, Flightradar24 and planefinder. Installing minibian on the PI I am using minibian for the Raspberry &#8230; <a href="http://rehner.org/archives/165">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>This is a quick tutorial how to set up your PI as a SDR which collects ADS-B messages from planes and shares them with FlightAware, Flightradar24 and planefinder.</p>
<p><span id="more-165"></span></p>
<h1>Installing minibian on the PI</h1>
<p>I am using <a href="https://minibianpi.wordpress.com/">minibian </a>for the Raspberry Pi. This is basically a stripped down Raspbian with only a minimal set of packages installed. But of course you can also use other <a href="https://www.raspbian.org/">Raspbian </a>distributions.</p>
<p>Go ahead and <a href="https://minibianpi.wordpress.com/download/">download minibian</a> and install it to the SD card. For Windows users I recommend using <a href="https://rufus.akeo.ie">Rufus</a>. Linux users can use the <a href="http://elinux.org/RPi_Easy_SD_Card_Setup#Using_the_Linux_command_line">dd installation method</a>.<br />
For this tutorial I used version <code>2016-03-12-jessie-minibian</code></p>
<h2>Enlarge partition after the installation</h2>
<p>Follow the minibian <a href="https://minibianpi.wordpress.com/how-to/resize-sd/">tutorial on how to enlarge the partition</a> to use the whole SD card.</p>
<h2>Update your installation</h2>
<p>It is a good idea to update everything after the installation. Log in as root (since there are no other users yet) and do:</p>
<pre class="brush: plain; title: ; notranslate">
apt-get update
apt-get dist-upgrade
</pre>
<h2>Create a user</h2>
<p>Now you should create a user for you to work with instead of always being root. You probably also want to install <code>sudo</code>.</p>
<h2>Connect your RTL2832U + R820T2 DVB-T stick</h2>
<p>Do not forget to connect your DVB stick and check if it was recognized by the pi. You shoud see something like this in dmesg</p>
<pre class="brush: plain; title: ; notranslate">
rr@minibian:~$ dmesg
...
&#x5B; 4.262962] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=2838
&#x5B; 4.271883] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
&#x5B; 4.281146] usb 1-1.2: Product: RTL2838UHIDIR
&#x5B; 4.287334] usb 1-1.2: Manufacturer: Realtek
&#x5B; 4.293407] usb 1-1.2: SerialNumber: 00000001
...
</pre>
<h1>Installing FlightAware&#8217;s PiAware</h1>
<p>You can just follow the short tutorial from FlightAware on <a href="http://de.flightaware.com/adsb/piaware/install">how to install PiAware</a>. It basically boils down to:</p>
<pre class="brush: bash; title: ; notranslate">
wget http://de.flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.0.5_all.deb
sudo dpkg -i piaware-repository_3.0.5_all.deb

sudo apt-get update
sudo apt-get install piaware dump1090-fa

sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes

sudo reboot
 </pre>
<p>Obviously you do not need the sudo if you are logged in as root.</p>
<p>After the installation you should be able to access your device via: <a href="http://minibian:8080">http://minibian:8080</a> (replace minibian with the ip of your Pi). This will send you to <a href="http://minibian/dump1090-fa/">http://minibian/dump1090-fa/</a>.</p>
<p>If you are not able to reach your Pi this way, have a look if lighttpd is running and also if an Apache is running. The running Apache might hinder lighttpd from using port 80. In this case you can either stop Apache or reconfigure both services in a way that they can co-exist.</p>
<p>If your antenna is set up niceley you should be able to see some planes:</p>
<div id="attachment_174" style="width: 852px" class="wp-caption alignnone"><a href="http://rehner.org/wp-content/uploads/2016/09/dump1090-fa-screenshot.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-174" class="size-full wp-image-174" src="http://rehner.org/wp-content/uploads/2016/09/dump1090-fa-screenshot.png" alt="dump1090-fa running on the Pi showing some planes" width="842" height="517" srcset="http://rehner.org/wp-content/uploads/2016/09/dump1090-fa-screenshot.png 842w, http://rehner.org/wp-content/uploads/2016/09/dump1090-fa-screenshot-300x184.png 300w, http://rehner.org/wp-content/uploads/2016/09/dump1090-fa-screenshot-768x472.png 768w, http://rehner.org/wp-content/uploads/2016/09/dump1090-fa-screenshot-489x300.png 489w" sizes="(max-width: 842px) 100vw, 842px" /></a><p id="caption-attachment-174" class="wp-caption-text">dump1090-fa running on the Pi showing some planes</p></div>
<h2>Claiming your Pi</h2>
<p>Now you need to create an account at <a href="http://flightaware.com">FlightAware </a>and <a href="http://flightaware.com/adsb/piaware/claim">claim your Pi</a>. If you are on a home network and your PC and the Pi are behind the same NAT, claiming is simple.If your Pi has a different public IP it is a little more complicated. The easiest way is to claim it from the Pi itself. But since we do not want to install a GUI and a browser on the Pi you can use your Pi as a SOCKS proxy.</p>
<p>Be aware that FlightAware takes some time to process your claim. They state that your Pi will appear within minutes on their website, but for me it took roughly one day.</p>
<h2>Using your Pi as SOCKS proxy with PuTTY</h2>
<p>Just set these settings in PuTTY and click Add.</p>
<p><a href="http://rehner.org/wp-content/uploads/2016/09/putty-as-socks-proxy.png"><img decoding="async" class="alignnone size-full wp-image-175" src="http://rehner.org/wp-content/uploads/2016/09/putty-as-socks-proxy.png" alt="putty-as-socks-proxy" width="456" height="439" srcset="http://rehner.org/wp-content/uploads/2016/09/putty-as-socks-proxy.png 456w, http://rehner.org/wp-content/uploads/2016/09/putty-as-socks-proxy-300x289.png 300w, http://rehner.org/wp-content/uploads/2016/09/putty-as-socks-proxy-312x300.png 312w" sizes="(max-width: 456px) 100vw, 456px" /></a></p>
<p>Now you can set the SOCKS proxy in your browser to point to localhost:8080 and all your traffic will go through your Pi.</p>
<h2>Set your exact location in FlightAware to activate MLAT</h2>
<p>You should set your exact position on the FlightAware website (https://flightaware.com/adsb/stats/user/&lt;your user name&gt;) in order to enable MLAT.</p>
<p>You can be sure that MLAT is working if you see a plane which is a little grayed out. When you click on it is shows MLAT in the position row.</p>
<h1>Installing the Flightradar24 feeder</h1>
<p>The <a href="https://www.flightradar24.com/raspberry-pi">Flightradar24 installation</a> is even simpler since they provide a script for that. Is is just this command and following the setup instruction on screen:</p>
<pre class="brush: bash; title: ; notranslate"> sudo bash -c &quot;$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)&quot; </pre>
<p>During the setup you will be asked for your receiver. <strong>Do not select DVB-T stick but select AVR (TCP).</strong> Please enter: <code>localhost:30002</code> as Host/IP.</p>
<p>You should also turn MLAT off because FlightAware is already doing it. Flightradar has a rather strange own MLAT implementation which does not feed the restults back to you. Some people also reported problems with having Flightradar and FlightAware MLAT turned on simultaneously.</p>
<p>If everything worked you should be able to connect to <a href="http://minibian:8754/">http://minibian:8754/</a> and see your tracked aircrafts.</p>
<p>This installed version <code>Linux/generic/armv7l/1.0.18-7</code> on my Pi.</p>
<p>During the first setup which I did on windows I had the problem that it did not accepted my location coordinates. If that happens, just pick a nearby airport (EDDF for Frankfurt International in my case) and write their support an email and ask them to correct your location.</p>
<h1>Installing Plane Finder feeding software</h1>
<p>Download the .deb package for the <a href="https://planefinder.net/sharing/client">Plane Finder feeder</a> with wget and install it with dpkg (please check their website for newer versions and change the commands accordingly).</p>
<pre class="brush: bash; title: ; notranslate">
wget http://client.planefinder.net/pfclient_3.4.61_armhf.deb
sudo dpkg -i pfclient_3.4.61_armhf.deb
</pre>
<p>Now follow the link to the config website, which is usually <a href="http://minibian:30053/">http://minibian:30053/</a>.<br />
As receiver data format you should choose <strong>Beast</strong> and the network settings should be <strong>127.0.0.1</strong> as IP and <strong>30005</strong> as port.</p>
<p>The map view is currently broken since google maps now needs an API key and they did not adapt to that change yet. You can <a href="https://forum.planefinder.net/threads/missingkeymaperror-on-pfclient-port-30053.904/">follow the discussion on their forum</a>.</p>
<h1>Conclusion</h1>
<p>This is it. You now have a premium account at each page and a nice ADS-B receiver to look at.</p>
<p>Here is a summary of the pages you can access on your Pi:</p>
<p>Raw output from dump1090-fa (useful to see if you are receiving something)</p>
<ul>
<li><a href="http://minibian:30002/">http://minibian:30002/</a></li>
<li><a href="http://minibian:30003/">http://minibian:30003/</a></li>
<li><a href="http://minibian:30005/">http://minibian:30005/</a></li>
<li><a href="http://minibian:30334/">http://minibian:30334/</a></li>
</ul>
<p>Status pages:</p>
<ul>
<li>Flightradar24 feeder status: <a href="http://minibian:8754/">http://minibian:8754/</a></li>
<li>Plane Finder status: <a href="http://minibian:30053/">http://minibian:30053/</a></li>
<li>dump1090-da page with map and planes: <a href="http://minibian/dump1090-fa/">http://minibian/dump1090-fa/</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
