<?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>prupert &#187; Baby</title>
	<atom:link href="http://www.prupert.co.uk/category/baby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prupert.co.uk</link>
	<description>putting the know back in technology</description>
	<lastBuildDate>Sat, 04 Feb 2012 14:58:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Make Your Own Baby Night Vision Video Monitor&#8230;Again</title>
		<link>http://www.prupert.co.uk/2010/08/02/make-your-own-baby-night-vision-video-monitor-again/</link>
		<comments>http://www.prupert.co.uk/2010/08/02/make-your-own-baby-night-vision-video-monitor-again/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 16:06:03 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Baby]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Streaming]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=393</guid>
		<description><![CDATA[So, a while back, I posted about how to hack your own baby monitor. However, it was all fairly easy and didn&#8217;t require that much geekery. This time, however, I have gone all out and have produced what I think is a neat little set-up. I am using a small thin-client PC, an HP T5700 with only [...]]]></description>
			<content:encoded><![CDATA[<p>So, a while back, I posted about how to hack your own baby monitor. However, it was all fairly easy and didn&#8217;t require that much geekery. This time, however, I have gone all out and have produced what I think is a neat little set-up.</p>
<p>I am using a small thin-client PC, an HP T5700 with only a 750Mhz Transmeta Crusoe CPU and 512MB Ram. My PC is low-power and silent (perfect as it is running in our bedroom). I am also using a cheapo <a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=220639716114#ht_3495wt_911" target="_blank">Nightvision Webcam from eBa</a>y (make sure it is true nightvision and not just some LEDs that you can turn on and off &#8211; the description needs to  say that the webcam uses IR LEDs and that they are &#8220;invisible to the human eye&#8221;) with a combined microphone.<img class="alignright size-medium wp-image-394" style="margin: 5px;" title="2010-08-02 15.27.34" src="http://www.prupert.co.uk/wp-content/uploads/2010/08/2010-08-02-15.27.34-300x225.jpg" alt="" width="300" height="225" /></p>
<p>To stream the video from the webcam, I use the rather excellent <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome" target="_blank">motion</a> via <code>sudo apt-get install motion</code>. You&#8217;ll need to mess with the settings in motion.conf to activate the webcam server and to allow access from users other than localhost, for reference, <a title="motion.conf" href="http://www.prupert.co.uk/media/motion.conf" target="_blank">here is mine</a>. Then, all you need do is set motion running at boot, there is startup script included with motion when you install it, but I am pretty sure that is borked, so I just added &#8220;motion&#8221; to my /etc/rc.local file. Thus, to view the video, I simply browse to the http://IPADDRESSOFPC:8081, which is easily opened in VLC.</p>
<p>To stream the audio from the microphone on the webcam turned out to be a much more difficult process, as I detailed in the post prior to this one. Suffice to say, FFmpeg came to my rescue, so I simply run the command:</p>
<p><code>ffmpeg -f oss -i /dev/dsp -acodec libmp3lame -ab 32k -ac 1 -re -f rtp rtp://234.5.5.5:1234</code></p>
<p>at boot and my microphone is miraculously streamed to rtp://234.5.5.5:1234, which I can open in VLC (if you are using Linux, you have to use the most recent version of VLC, i.e. 1.1.1, previous versions don&#8217;t play well with rtp streams on Linux).</p>
<p>I use the following simple script on my laptop to view both streams, so I can see and hear our lovely daughter, even when she is sound asleep in a dark room:</p>
<pre class="brush: bash; title: ; notranslate">#!/bin/bash
echo &quot;starting vlc&quot;
VPID=( $(ps -e | grep vlc | awk '{print $1;}'))
if [ $? = 1 ];then
echo &quot;error getting vlc PID, exiting&quot;
exit
fi
while [ -n &quot;$VPID&quot; ];do
kill $VPID
VPID=( $(ps -e | grep vlc | awk '{print $1;}'))
done
cvlc http://192.168.1.5:8081 &amp;amp;
PID1=$?

echo video status $PID1
if [ &quot;$PID1&quot; == &quot;1&quot; ];then
echo &quot;error starting vlc video&quot;
exit
fi
vlc rtp://234.5.5.5:1234 --equalizer-bands=&quot;0,0,15,15,15,-20,0,0,0,0&quot; &amp;amp;
PID2=$?

echo audio status $PID2
if [ &quot;$PID2&quot; == &quot;1&quot; ];then
echo &quot;error starting vlc audio&quot;
exit
fi
exit</pre>
<p>This set-up has worked perfectly for the last week and even my wife appreciates my geeky skills on this one! Plus, I have a very small WiFi router (a La Fonera2) which makes the system completely portable, as the video feed can be viewed on pretty much any device. This now frees my IP webcams for the job they are much better suited for, home security. The end result are videos of this quality (to be clear, this is a freezeframe from the video feed, taken in a pitch black room):<img class="alignright size-medium wp-image-404" style="margin: 5px;" title="Camera 3_07-20-2010_124512AM" src="http://www.prupert.co.uk/wp-content/uploads/2010/08/Camera-3_07-20-2010_124512AM-300x225.jpg" alt="" width="300" height="225" /></p>
<p>So, why do all this? Well, for one, it can only up your geekery skills <img src='http://www.prupert.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  But also, motion has some cool features, that, for example, let you take regular photos, allowing you to make cool time-lapse videos of your baby as she grows and develops (or sleeps through one night &#8211; man they move a lot). motion also has built-in motion detection (that is its main job) so I am sure you can configure it in such a way to act as an early warning system if the baby stops moving (I am thinking the horror that is cot-death here, but I have yet to fully look in to getting this to work yet). Also, if have a spare PC lying around that you can put aside for this, it means that in the future you can use that PC for other jobs as your baby gets older. I am planning to, for example, get a cheap touch screen monitor off eBay, to allow me to turn it into an interactive activity centre for our daughter, to help her learn numbers and the alphabet (there are already some great tools in Ubuntu for just this purpose, but I am learning Python and hope to program my own bespoke software for the job). You could add some speakers and use the PC to play soothing music to your baby to help her sleep or even go all out and hook up some kinda remote-controlled mobile. The options are endless and hopefully it&#8217;ll mean that once your baby is all grown up, she wont think of you as her embarrassing geeky mum / dad, but her &#8220;makes-really cool stuff for me to play with&#8221; mum / dad&#8230;. <img src='http://www.prupert.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignleft size-medium wp-image-395" style="margin: 5px;" title="2010-08-02 15.27.08" src="http://www.prupert.co.uk/wp-content/uploads/2010/08/2010-08-02-15.27.08-225x300.jpg" alt="" width="225" height="300" /></p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=393" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/08/02/make-your-own-baby-night-vision-video-monitor-again/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Make Your Own Video Baby Monitor</title>
		<link>http://www.prupert.co.uk/2010/02/04/make-your-own-video-baby-monitor/</link>
		<comments>http://www.prupert.co.uk/2010/02/04/make-your-own-video-baby-monitor/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 22:39:10 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Baby]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=251</guid>
		<description><![CDATA[I&#8217;ve been quite quiet on the blog front lately, mostly because my Wifey is pregnant and we&#8217;ve only got one month to go! Being a through-and-through geek, I am always looking for ways to make my life easier or to do something cheaper through a clever technical hack and I plan to make my, my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been quite quiet on the blog front lately, mostly because my Wifey is pregnant and we&#8217;ve only got one month to go! Being a through-and-through geek, I am always looking for ways to make my life easier or to do something cheaper through a clever technical hack and I plan to make my, my Wife&#8217;s and my baby&#8217;s lives as easy as possible through the power of the geek!</p>
<p>One thing I planned to do was to make my own baby monitor, rather than dropping up to £150 on some pre-built device. I wanted to be able to see as well as hear my baby when it is asleep upstairs, but those devices are very expensive. I thus thought I would try to make my own device using things lying around the house already. It actually wasn&#8217;t too difficult in the end, but I was lucky that I had the right equipment lying around. The first and most important piece of equipment is a Webcam. There are loads of options out there, but I wanted to use one that didn&#8217;t need to be connected to a PC to use. I had a Dlink DCS-2120 IP Webcam, that can connect to a Wireless network and doesn&#8217;t need a PC to run, it perfectly suited my needs.</p>
<div id="attachment_253" class="wp-caption alignleft" style="width: 202px"><a href="http://www.prupert.co.uk/wp-content/uploads/2010/02/dlink.jpg"><img class="size-medium wp-image-253" title="Dlink DCS-2120" src="http://www.prupert.co.uk/wp-content/uploads/2010/02/dlink-192x300.jpg" alt="Dlink DCS-2120" width="192" height="300" /></a><p class="wp-caption-text">Dlink DCS-2120</p></div>
<p>The DCS-2120 includes some built-in features that are very useful, but I&#8217;ll mention that later. You can use other Webcams, even just simple USB versions, but you&#8217;ll need something to handle the video feed. If you don&#8217;t want to run a PC all the time, you could use something smaller, like a <a title="Fonera" href="http://wiki.fon.com/wiki/Fonera_2.0n" target="_blank">Fonera 2.0</a> router, that allows you to plug a USB Webcam.</p>
<p>So, next, you need a wireless network. Now, I didn&#8217;t want to carry around a huge router just to get this system up and running, because after all, this system should be portable enough to take to other people&#8217;s houses when we go travelling with the baby, so I chose to use the smallest WiFi router I could get my hands on. Luckily, I had one of the smallest routers already, a <a title="La Fonera" href="http://wiki.fon.com/wiki/La_Fonera" target="_blank">La Fonera</a>. I already had another La Fonera installed and connected to the excellent free WiFi-sharing <a title="La Fonera" href="http://www.fon.com/en/" target="_blank">FON</a> network, so I didn&#8217;t mind using this router for my own devices. Since the firmware (the software that runs on the router) that comes pre-installed on the router isn&#8217;t suitable for use as a normal router, I had to install (called flashing) some alternative Firmware. I chose to use <a title="DD-WRT" href="http://www.dd-wrt.com" target="_blank">DD-WRT</a>, since it is fully supported on the Fonera and is very flexible. I used the guide from <a title="My Fon Blog (not mine though)" href="http://myfonblog.blogspot.com/2008/08/hacking-la-fonera-part-1-dd-wrt.html" target="_blank">here</a> that had some very detailed instructions on how to install DD-WRT on the Fonera. I shall summarise it here:</p>
<ol>
<li>Enable SSH access to the Fonera using a special web page hack.</li>
<li>Enable the Redboot boot loader (allowing you load alternative firmware on the Fonera).</li>
<li>Copy over the DD-WRT firmware and flash it on the Fonera.</li>
</ol>
<p>It isn&#8217;t that simple, there are lots of steps involved, but the guide is very clear and easy to follow. Once I had DD-WRT installed, I now had a cool mini router, that I could then set-up to use with my IP Webcam.</p>
<div id="attachment_254" class="wp-caption alignright" style="width: 296px"><a href="http://www.prupert.co.uk/wp-content/uploads/2010/02/fon_la_fonera.jpg"><img class="size-medium wp-image-254" title="La Fonera" src="http://www.prupert.co.uk/wp-content/uploads/2010/02/fon_la_fonera-286x300.jpg" alt="La Fonera" width="286" height="300" /></a><p class="wp-caption-text">La Fonera</p></div>
<p>Finally, I had to figure out how to actually view the feed. I wanted both a portable and a static solution. The Webcam I was using provides a feed using the rtsp protocol, so I needed a video player that could handle the rtsp stream. For my portable solution, I decided to use my Nokia N82 mobile phone, that has built in WiFi and can run the Core Media Player, that supports rtsp streams. For my static solution, I decided to use my laptop, running VLC on Ubuntu Karmic. In fact, because the Webcam just sends out the stream, any client that can access the wireless network and can play an rtsp stream will work. So, I can view the stream on my Windows Desktop upstairs, using VLC, whilst my wife can view the same stream on her Ubuntu Karmic netttop downstairs (yes Jobsworth, nettops can be useful).</p>
<p>I set-up the Fonera router, so that it provided a WiFi network with the same name (SSID) and security credentials as my main WiFi network at home. Thus, the Webcam automatically connects to my WiFi network when at home and my phone connects to it automatically also. Then, if I take the baby elsewhere, the Fonera replicates the WiFi network, so as far as the Webcam and phone is concerned, it is connected to the same network (this is very useful, because, the only way to change the wireless connection on the Webcam is through a wired interface, which is a bit of a complicated pain).</p>
<p>The real advantage of using this set-up is that you can have as many clients connected as you want to the video feed. The Webcam features a powerful microphone, so you can hear as well as see that the baby is ok and finally, the DCS-2120 includes some handy additional features, including the ability to take a photo at set intervals and upload them to an FTP server. Thus, I will be able to create one of those cool time-lapse movies of my baby as it sleeps and grows over time. I also chose the Fonera, because you can connect alternative aerials to it, most noticeably the <a title="La Fontenna" href="http://wiki.fon.com/wiki/La_Fontenna" target="_blank">La Fontenna</a>, so this set-up should even work in my parent&#8217;s old house that has 12&#8243; thick solid stone walls.</p>
<p>Since this whole system is meant to allow me to check up on our baby whilst it sleeps, I wanted to make sure it doesn&#8217;t look quite so scary and also allow it to be quite versatile. I thus bought a little teddypig, put the Webcam inside and used a Gorillapod camera stand to keep the Webcam in place (and also so I could attach it to pretty much anything).</p>
<p>It might look a little freaky, but I think it looks much less scary than the Webcam on its own.</p>
<p>Finally, here is a quick movie of the WebPig in action, alongside my laptop and mobile phone, showing it all working. The Core Media Player isn&#8217;t the best app in the world, so the video feed on the phone occasionally breaks up, as the video shows, but in general, it works very well.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/cEkDalRtBh4&amp;hl=en_GB&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/cEkDalRtBh4&amp;hl=en_GB&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div id="attachment_255" class="wp-caption alignleft" style="width: 310px"><a href="http://www.prupert.co.uk/wp-content/uploads/2010/02/040220101179.jpg"><img class="size-medium wp-image-255" title="The WebPig" src="http://www.prupert.co.uk/wp-content/uploads/2010/02/040220101179-300x225.jpg" alt="The WebPig" width="300" height="225" /></a><p class="wp-caption-text">The WebPig</p></div>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=251" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/02/04/make-your-own-video-baby-monitor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

