<?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>ads-b &#8211; The Blog of Lee</title>
	<atom:link href="https://lee.smallbone.com/tag/ads-b/feed/" rel="self" type="application/rss+xml" />
	<link>https://lee.smallbone.com</link>
	<description>Technical. Philosophical. Photographical. All-Sorts-ical.</description>
	<lastBuildDate>Sat, 11 Oct 2014 17:41:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Monitoring ADS-B with dump1090 and Generating an Alert on a Squawk (7700, etc) in PHP</title>
		<link>https://lee.smallbone.com/2014/04/dump1090_and_squawkwatch/</link>
					<comments>https://lee.smallbone.com/2014/04/dump1090_and_squawkwatch/#comments</comments>
		
		<dc:creator><![CDATA[Lee]]></dc:creator>
		<pubDate>Tue, 22 Apr 2014 16:21:05 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ads-b]]></category>
		<category><![CDATA[dump1090]]></category>
		<category><![CDATA[squawkwatch]]></category>
		<guid isPermaLink="false">http://lee.smallbone.com/?p=388</guid>

					<description><![CDATA[A friend of mine recently said he&#8217;d like to have something to &#8216;plug in&#8217; to dump1090 running locally (see my previous post for my setup on this) to alert to emergencies in the air that are nearby. As I was getting in to it I realised what a neat idea it actually was. There are <a href='https://lee.smallbone.com/2014/04/dump1090_and_squawkwatch/' class='excerpt-more'>[...]</a>]]></description>
										<content:encoded><![CDATA[<p>A friend of mine recently said he&#8217;d like to have something to &#8216;plug in&#8217; to dump1090 running locally (see my previous post for my setup on this) to alert to emergencies in the air that are nearby. As I was getting in to it I realised what a neat idea it actually was. There are many different &#8220;interesting&#8221; squawk codes, and unless you&#8217;re glued to your Virtual Radar all day long, you&#8217;re not going to notice. Not to mention if a plane is going to fall out the sky it&#8217;d be handy to know to take cover &#8230;</p>
<p>So. SquawkWatch was born!</p>
<p>It&#8217;s a lightweight PHP script (uses approximately 1% of CPU time allocated to my &#8216;playground&#8217; virtual server, and it has next to no CPU allocated to it) and sifts through all the messages coming in from dump1090, looking for a set of squawk codes defined within. When it finds one, it sits on it and waits for a complete data picture, and then emails the alert to you.</p>
<p>Requirements:</p>
<ul>
<li>PHP 5.3</li>
<li>MySQL</li>
<li>dump1090 (reachable by the PHP host)</li>
</ul>
<p><a href="http://lee.smallbone.com/src/squawkwatch6.phps">Download the source code here</a>.</p>
<p><a href="http://www.egka14.org.uk/downloads/g-info.sql.gz">Download the G-INFO database here</a> (late March 2014).</p>
<p><a href="http://lee.smallbone.com/src/squawkwatch.html">Example (non-debug mode) output here</a> (stdout).</p>
<p>Any questions pop them in the comments and I&#8217;ll help where I can.</p>
<p>Lee</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lee.smallbone.com/2014/04/dump1090_and_squawkwatch/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
	</channel>
</rss>
