<?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>robskelly.com &#187; Java</title>
	<atom:link href="http://blog.robskelly.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.robskelly.com</link>
	<description>Flash, Flex, Geography and GIS</description>
	<lastBuildDate>Fri, 19 Mar 2010 06:10:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Real-time Weather with Flash and Java</title>
		<link>http://blog.robskelly.com/2010/01/real-time-weather-with-flash-and-java/</link>
		<comments>http://blog.robskelly.com/2010/01/real-time-weather-with-flash-and-java/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 09:54:45 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Weather]]></category>

		<guid isPermaLink="false">http://blog.robskelly.com/?p=138</guid>
		<description><![CDATA[This is a real-time weather station I built using an AAG electronica instrument and an EEE 701 for the server.
I coded the server in Java using Apache&#8217;s Mina library for non-blocking sockets. The client is FLEX, and uses Socket (rather than HTTP). The webcam service consists essentially of a Java class that reads the video4linux [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 250px"><img title="1-Wire Weather Station" src="http://farm3.static.flickr.com/2438/3669141694_3675abdb40_m.jpg" alt="1-Wire Weather Station" width="240" height="197" /><p class="wp-caption-text">1-Wire Weather Station</p></div>
<p>This is a real-time weather station I built using an <a title="AAG" target="_blank" href="http://www.aag.com.mx/aagusa/index.html">AAG electronica</a> instrument and an <a target="_blank" title="EEE PC" href="http://en.wikipedia.org/wiki/ASUS_Eee_PC">EEE 701</a> for the server.</p>
<p>I coded the server in <a title="Java" href="http://java.sun.om" target="_blank">Java</a> using <a title="Mina" href="http://mina.apache.org/" target="_blank">Apache&#8217;s Mina</a> library for non-blocking sockets. The client is <a title="FLEX" href="http://www.adobe.com/products/flex/" target="_blank">FLEX</a>, and uses Socket (rather than HTTP). The webcam service consists essentially of a Java class that reads the video4linux data as raw RGB and saves it to a JPEG which is then streamed over the socket along with all the other data (I built the server to be pluggable, so each of these little add-ons is a plugin that shares the stream with the other plugins). The archival data lives in <a title="MySQL" href="http://www.mysql.com/" target="_blank">MySQL</a>.</p>
<p><span id="more-138"></span></p>
<p>I&#8217;ve more or less lost interest in this project so it&#8217;s not pretty, but on windy days, it is fairly enjoyable to watch! The server itself can be used for just about anything, from a <a title="Weather Station" href="http://weather.robskelly.com" target="_blank">weather station</a>, to a <a title="GPS Sat Tracker" href="http://gps.robskelly.com" target="_blank">GPS satellite tracker</a>, to the user map that adorns the top-left corner of this site.</p>
<div id="station"></div>
<p><script type="text/javascript">
embed("/samples/weather/weather_client.swf","/samples/weather/weather.jpg","station",'100%',400);
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.robskelly.com/2010/01/real-time-weather-with-flash-and-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
