<?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>The H-Files &#187; webcam</title>
	<atom:link href="http://henrygroover.net/blog/tag/webcam/feed/" rel="self" type="application/rss+xml" />
	<link>http://henrygroover.net/blog</link>
	<description>Rants on software development, robotics, and the meaning of life</description>
	<lastBuildDate>Sun, 16 Jan 2011 20:32:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ChumbyCam</title>
		<link>http://henrygroover.net/blog/2008/06/22/chumbycam/</link>
		<comments>http://henrygroover.net/blog/2008/06/22/chumbycam/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 15:32:57 +0000</pubDate>
		<dc:creator>henry</dc:creator>
				<category><![CDATA[Chumby-related]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[chumby]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://henrygroover.net/blog/?p=6</guid>
		<description><![CDATA[Another Chumby firmware validation challenge developed into an interesting project.
The free http://justin.tv service allows you to connect any webcam for broadcast using a Flash 9 widget that takes your mic and webcam input and uploads it for rebroadcast. These are features that aren&#8217;t currently supported in Flash Lite, so typically it would be used with [...]]]></description>
			<content:encoded><![CDATA[<div class="wikitext">Another <a class="wiki" href="http://www.chumby.com/">Chumby</a> firmware validation challenge developed into an interesting project.</p>
<p>The free <a class="wiki" href="http://justin.tv/">http://justin.tv</a> service allows you to connect any webcam for broadcast using a Flash 9 widget that takes your mic and webcam input and uploads it for rebroadcast. These are features that aren&#8217;t currently supported in Flash Lite, so typically it would be used with a Linux or Windoze desktop machine.</p>
<p>There were some issues to validate with webcam display which turned out to be related to an unrelated problem.</p>
<p>I took it one step further and tried to use Chumby to display the output of an IP webcam. I chose the D-Link<a class="wiki wikinew" title="Create page: D-Link" href="http://wiki.henrygroover.net/tiki-editpage.php?page=D-Link">?</a> Ethernet-connected DCS-900 model, largely because it was cheap and simple. It&#8217;s around $90 USD and offers a built-in http connection. It offers java and activex viewing of the image stream but those didn&#8217;t work right out of the box, and I didn&#8217;t have 5 minutes to rtfm so I might have missed some vital step. But the jpeg feed works just fine.</p>
<p>And I had a good test opportunity in-house (literally): a 2.5-year-old boy who presents a potty training challenge. An early riser, he gets to watch PBS Sprout for a commercial-free hour or so while squatting on his pot, but likes to get up. This is also my time for getting some work done in the next room, so I wanted to use Chumby as a remote monitor.</p>
<p>Knowing the IP address of the webcam, I could write this script on the Chumby, and start it by stopping flashplayer and running the script:</p>
<pre>stop_control_panel
/mnt/usb/bin/showcam &gt;/dev/null 2&gt;&amp;1</pre>
<p>Here&#8217;s the script. It&#8217;s slightly more elaborate than needed since it caches the last 30 images. Since I&#8217;m continually invoking wget I don&#8217;t need to do anything to avoid caching &#8211; wget does not do any persistent caching by default&#8230;</p>
<pre>#!/bin/sh
CAMIP=192.168.1.127
CAMPORT=80

SERNO=0
SEQ=$(date +'%Y-%m-%d-%H%M')
mkdir /tmp/$SEQ

while :
do
if wget -O /tmp/${SEQ}/img${SERNO}.jpg http://${CAMIP}:${CAMPORT}/IMAGE.JPG
then
imgtool /tmp/${SEQ}/img${SERNO}.jpg
else
echo "Unable to fetch image"
exit 1
fi
SERNO=$(expr ${SERNO} \+ 1)
[ ${SERNO} -gt 30 ] &amp;&amp; SERNO=0
done</pre>
</div>
<div class="wikitext">
Oops, gotta run&#8230; my little boy just got up and I don&#8217;t feel like carpet-cleaning right now&#8230;</div>
<div class="wikitext">
</div>
<div class="wikitext">I&#8217;ve also put this on my <a href="http://wiki.henrygroover.net">wiki</a> under Chumby-related&#8230;
</div>
]]></content:encoded>
			<wfw:commentRss>http://henrygroover.net/blog/2008/06/22/chumbycam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

