<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Happy Farming . com &#187; Logging</title>
	<atom:link href="http://happyfarming.com/category/logging/feed/" rel="self" type="application/rss+xml" />
	<link>http://happyfarming.com</link>
	<description>How to Grow Your Own Food</description>
	<lastBuildDate>Sat, 12 Nov 2011 16:34:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<copyright>2008-2009 </copyright>
	<managingEditor>thomas@happyfarming.com (Thomas Wagner Nielsen)</managingEditor>
	<webMaster>thomas@happyfarming.com (Thomas Wagner Nielsen)</webMaster>
	<ttl>1440</ttl>
	<image>
		<url>http://happyfarming.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Happy Farming . com</title>
		<link>http://happyfarming.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>How To Grow Your Own Food</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Health">
		<itunes:category text="Self-Help" />
	</itunes:category>
	<itunes:category text="Games &#38; Hobbies">
		<itunes:category text="Hobbies" />
	</itunes:category>
	<itunes:category text="Kids &#38; Family" />
	<itunes:author>Thomas Wagner Nielsen</itunes:author>
	<itunes:owner>
		<itunes:name>Thomas Wagner Nielsen</itunes:name>
		<itunes:email>thomas@happyfarming.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://happyfarming.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Aquaponics Home System &#8211; Part 21: Water Test</title>
		<link>http://happyfarming.com/2011/04/22/aquaponics-home-system-part-21-water-test/</link>
		<comments>http://happyfarming.com/2011/04/22/aquaponics-home-system-part-21-water-test/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 12:50:04 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[Water]]></category>
		<category><![CDATA[ammonia]]></category>
		<category><![CDATA[aquaponics]]></category>
		<category><![CDATA[aquarium]]></category>
		<category><![CDATA[nitrate]]></category>
		<category><![CDATA[ph]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2811</guid>
		<description><![CDATA[The aquaponics fish tank / aquarium is filled with tap water and has been degassing for a couple of days, and it&#8217;s time to measure the content of the water:

I&#8217;m using a Pondlab 200 water test kit from NT Labs which makes it possible to test 6 different parameters:


Acidity (pH)
General Hardness (GH)
Alkalinity (KH)
Nitrite (NO2)
Nitrate (NO3)
Ammonium [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://happyfarming.com/2010/09/21/ultimate-aquaponics-home-system-review/">aquaponics fish tank</a> / aquarium is filled with tap water and has been degassing for a couple of days, and it&#8217;s time to measure the content of the water:</p>
<p><img class="alignnone" title="Aquarium lights" src="http://happyfarming.com/images/2011/aquarium_lights.jpg" alt="" width="400" height="237" /></p>
<p>I&#8217;m using a Pondlab 200 water test kit from NT Labs which makes it possible to test 6 different parameters:</p>
<p><img class="alignnone" title="Pondlab 200 front" src="http://happyfarming.com/images/2011/pondlab_200_front.jpg" alt="" width="400" height="311" /></p>
<ol>
<li>Acidity (pH)</li>
<li>General Hardness (GH)</li>
<li>Alkalinity (KH)</li>
<li>Nitrite (NO<sub>2</sub>)</li>
<li>Nitrate (NO<sub>3</sub>)</li>
<li>Ammonium (NH<sub>4</sub>)</li>
</ol>
<p>The backside of the box shows what you have to do to make each test, along with color scales to find the correct value:</p>
<p><img class="alignnone" title="Pondlab 200 back" src="http://happyfarming.com/images/2011/pondlab_200_back.jpg" alt="" width="400" height="298" /></p>
<p>You&#8217;ll need to add one or more reagents for each test:</p>
<p><img class="alignnone" title="Pondlab 200 bottles" src="http://happyfarming.com/images/2011/pondlab_200_bottles.jpg" alt="" width="400" height="264" /></p>
<p>The test kit includes a log for your measurements and a very informative sheet explaining the background for testing each parameter:</p>
<p><img class="alignnone" title="Pondlab 200 pond testing log" src="http://happyfarming.com/images/2011/pondlab_200_pond_testing_log.jpg" alt="" width="400" height="268" /></p>
<p><img class="alignnone" title="Pondlab 200 instructions" src="http://happyfarming.com/images/2011/pondlab_200_instructions.jpg" alt="" width="400" height="251" /></p>
<p>(I&#8217;m not getting paid to promote this kit <img src='http://happyfarming.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  I just think it&#8217;s cool&#8230;)</p>
<p>I used a straw to fill each test tube with <a href="http://happyfarming.com/2011/01/19/aquaponics-home-system-part-10-water-flow/">water directly from the aquarium</a> and a kitchen timer to tell me when each test was done:</p>
<p><img class="alignnone" title="Pondlab 200 timer" src="http://happyfarming.com/images/2011/pondlab_200_timer.jpg" alt="" width="400" height="228" /></p>
<p>It&#8217;s actually easier to get a full cup of <a href="http://happyfarming.com/2010/11/30/aquaponics-fish-tank-and-pumps/">aquarium</a> water and then go and sit down at the table instead of bending over the aquarium the whole time, so I&#8217;ll do that for the next tests. Some of the tests will take up to 10 minutes before the result is ready.</p>
<p>These are the results from my first measurements of degassed water, but without any fish in the water:</p>
<ul>
<li>pH: 7.5</li>
<li>Ammonia: 0.1</li>
<li>Nitrite: 0.0</li>
<li>Nitrate: 0.0</li>
<li>KH: 3.5 °DH</li>
<li>GH: 5.0 °DH</li>
<li>Temperature: 23 °C (74 °F)</li>
</ul>
<p><strong>pH:</strong> We&#8217;re aiming at a pH value between 6.5 and 6.8 because of the type of fish and plants we selected already, so it seems that there&#8217;s a long way down from 7.5, and we&#8217;re not sure exactly how to lower this parameter.</p>
<p><strong>Ammonia:</strong> This is good. Ammonia is toxic to the fish and must be oxidated into nitrite quickly by nitrosomonas bacteria. 1.0 would be alarming, and 5.0 would be dangerous.</p>
<p><strong>Nitrite:</strong> Also good. If there haven&#8217;t been any ammonia in the water there won&#8217;t be any nitrite because it&#8217;s oxidated ammonia. A nitrite spike is expected when fish are added to the water, but the nitrite should soon be oxidated to nitrate by nitrobacter bacteria (or nitrospira?). 1.0 would be alarming, and 4.0 would be dangerous.</p>
<p><strong>Nitrate:</strong> Also good. Nitrate is oxidated nitrite and since no nitrite was ever present there won&#8217;t be any nitrate in the water. If the level of nitrate goes up and keeps going up it&#8217;s because the <a href="http://happyfarming.com/2010/12/09/building-an-indoor-plant-tank-for-aquaponics/">plant tank</a> is not doing its job of removing the nitrate from the water. The plants need to take up the nitrate through their roots (the N in N-P-K fertilizer).</p>
<p><strong>KH and GH:</strong> Don&#8217;t ask (yet) <img src='http://happyfarming.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong>Temperature:</strong> A heating element has been dumped into the aquarium and set at 25 °C. It probably needs some time to get the temperature up.</p>
<p>We&#8217;re now ready to prepare the floats for the plant tank and add some bacteria.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2011/04/22/aquaponics-home-system-part-21-water-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Garden Webcam Online</title>
		<link>http://happyfarming.com/2010/10/22/garden-webcam-online/</link>
		<comments>http://happyfarming.com/2010/10/22/garden-webcam-online/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 11:37:54 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2329</guid>
		<description><![CDATA[Here&#8217;s the picture from my garden webcam. It&#8217;s should be updated every minute, but if you don&#8217;t see the picture just press CTRL + F5:

Happy stalking!  
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the picture from my garden webcam. It&#8217;s should be updated every minute, but if you don&#8217;t see the picture just press CTRL + F5:<br />
<img class="alignnone" title="Garden Webcam" src="http://happyfarming.com/images/2010/webcam_post.jpg" alt="" width="450" height="338" /></p>
<p>Happy stalking! <img src='http://happyfarming.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/22/garden-webcam-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Software for My NSLU2 Webcam</title>
		<link>http://happyfarming.com/2010/10/21/configuring-software-for-my-nslu2-webcam/</link>
		<comments>http://happyfarming.com/2010/10/21/configuring-software-for-my-nslu2-webcam/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 11:37:09 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[NSLU2]]></category>
		<category><![CDATA[time-lapse]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2316</guid>
		<description><![CDATA[The pictures are coming in from my webcam now and I&#8217;m using a program called motion. It&#8217;s capable of storing pictures when a movement is detected in front of the webcam, but I have disabled this feature and configured it to take a picture every 60 seconds instead. motion has a small internal web server [...]]]></description>
			<content:encoded><![CDATA[<p>The pictures are coming in from my webcam now and I&#8217;m using a program called <em>motion</em>. It&#8217;s capable of storing pictures when a movement is detected in front of the webcam, but I have disabled this feature and configured it to take a picture every 60 seconds instead. <em>motion</em> has a small internal web server that can be accessed from the local intranet or from Internet. I&#8217;m planning on letting the <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">NSLU2</a> upload the pictures to happyfarming.com instead, but the local web server is a cool way to test if the camera is running. Here&#8217;s a print of my configuration file for <em>motion</em>:</p>
<pre>$ <strong>cat motion.conf</strong>

# The program is run with motion motion.conf &amp;
daemon off

# No debug messages
quiet on

# Path to webcam
videodevice /dev/video0

# Disable motion detection
output_all on

# Seconds between saving a picture
minimum_frame_time 60

# Picture details
width 640
height 480
quality 100

# Picture filename
jpeg_filename webcam

# The pictures are stored here
target_dir /home/thomas/motion/snapshots

# Local web server settings. Replace XXXX with desired port number.
webcam_port XXXX
webcam_localhost off
webcam_quality 50</pre>
<p>This is the command I use for running <em>motion</em>:</p>
<pre>$ <strong>motion motion.conf &amp;</strong>
[1] 2147
[0] Processing thread 0 - config file motion.conf
[0] Motion 3.2.9 Started
[0] ffmpeg LIBAVCODEC_BUILD 3355136 LIBAVFORMAT_BUILD 3409664
[0] Thread 1 is from motion.conf
[1] Thread 1 started
[1] Not a V4L2 device?
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] Started stream webcam server in port XXXX
[1] File of type 1 saved to: /home/thomas/motion/snapshots/webcam.jpg</pre>
<p>The picture is stored on the USB flash disk connected to the <a href="http://happyfarming.com/2009/03/04/how-to-install-debian-on-nslu2/">NSLU2</a>.</p>
<p><img class="alignnone" title="Webcam snapshot 2010-10-21" src="http://happyfarming.com/images/2010/webcam_2010_10_21.jpg" alt="" width="400" height="300" /></p>
<p>The previous snapshot is overwritten when this particular configuration file is used, but it&#8217;s possible to add a time and date stamp to the filename and make a time lapse series of growing plants. I think it&#8217;s even possible for motion to collect the snapshot into a movie file. What a cool program <img src='http://happyfarming.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p>Now I just need a way to get the picture uploaded to happyfarming.com so you&#8217;ll be able to watch me goof around in <a href="http://happyfarming.com/2010/06/28/my-garden-layout-for-2010/">my garden</a> and throw leeks at the camera <img src='http://happyfarming.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/21/configuring-software-for-my-nslu2-webcam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving My Garden Webcam</title>
		<link>http://happyfarming.com/2010/10/20/moving-my-garden-webcam/</link>
		<comments>http://happyfarming.com/2010/10/20/moving-my-garden-webcam/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 11:37:44 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[NSLU2]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2300</guid>
		<description><![CDATA[I had to shorten the USB cable to make my webcam work properly or I would get lots of errors when I tried to grab images. With a shorter cable I had to move the webcam closer to the window and place it on the roof instead:

Here&#8217;s the webcam looking down on the garden. The [...]]]></description>
			<content:encoded><![CDATA[<p>I had to shorten the USB cable to make my webcam work properly or I would get lots of errors when I tried to grab images. With a shorter cable I had to move the webcam closer to the window and place it on the roof instead:</p>
<p><img class="alignnone" title="Webcam standing on roof" src="http://happyfarming.com/images/2010/webcam_stand_roof.jpg" alt="" width="400" height="320" /></p>
<p>Here&#8217;s the webcam looking down on the garden. The USB cable is going in through the window but it&#8217;s still possible to close the window locking the cable into position:</p>
<p><img class="alignnone" title="Webcam on roof outside window" src="http://happyfarming.com/images/2010/webcam_roof_window.jpg" alt="" width="400" height="300" /></p>
<p>If you look closely you can find the camera on top of the small roof to the left of the house:</p>
<p><img class="alignnone" title="Webcam filming garden" src="http://happyfarming.com/images/2010/garden_house_wall.jpg" alt="" width="400" height="300" /></p>
<p>There&#8217;s not many vegetables left in my garden at this moment although the following plants are still going strong despite the decreasing temperature: Green manure, <a href="http://happyfarming.com/2008/08/23/leek-companion-plants/">leeks</a>, parsnips, strawberries and sunflowers.</p>
<p>I tried to get the first picture from the webcam with my <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">NSLU2 computer</a> and installed a recorder program called <em>streamer</em>:</p>
<pre>apt-get install streamer</pre>
<p>This is the command I used:</p>
<pre>$ <strong>streamer -c /dev/video0 -b 16 -o webcamfile.jpg</strong></pre>
<p>and got this picture:<br />
<img class="alignnone" title="Webcam image with too much light" src="http://happyfarming.com/images/2010/webcamfile.jpg" alt="" width="320" height="240" /></p>
<p>I have to go work on the brightness setting <img src='http://happyfarming.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  On my laptop there&#8217;s a calibration going on automatically but I guess I have to adjust the settings manually on my NSLU2.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/20/moving-my-garden-webcam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed the Garden Webcam Connection</title>
		<link>http://happyfarming.com/2010/10/15/fixed-the-garden-webcam-connection/</link>
		<comments>http://happyfarming.com/2010/10/15/fixed-the-garden-webcam-connection/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 11:37:39 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[NSLU2]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2274</guid>
		<description><![CDATA[My NSLU2 garden webcam setup is working now with the original USB cable on the camera soldered together with an extra 3 m (10 ft) long USB extension cable. Now the link is stable and the data output is consistent:
$ v4l-info 

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
    [...]]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">NSLU2</a> garden webcam setup is working now with the original USB cable on the camera soldered together with an extra 3 m (10 ft) long USB extension cable. Now the link is stable and the data output is consistent:</p>
<pre>$ <strong>v4l-info</strong> 

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
    name                    : "OV511 USB Camera"
    type                    : 0x201 [CAPTURE,SUBCAPTURE]
    channels                : 1
    audios                  : 0
    maxwidth                : 640
    maxheight               : 480
    minwidth                : 64
    minheight               : 48

channels
    VIDIOCGCHAN(0)
    channel                 : 0
    name                    : "Camera"
    tuners                  : 0
    flags                   : 0x0 []
    type                    : CAMERA
    norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
    brightness              : 0
    hue                     : 30464
    colour                  : 40960
    contrast                : 0
    whiteness               : 26880
    depth                   : 12
    palette                 : YUV420

buffer
    VIDIOCGFBUF
    base                    : (nil)
    height                  : 0
    width                   : 0
    depth                   : 0
    bytesperline            : 0

window
    VIDIOCGWIN
    x                       : 0
    y                       : 0
    width                   : 640
    height                  : 480
    chromakey               : 0
    flags                   : 30</pre>
<p>But I lost 3 m (10 ft) of length on the cable so I&#8217;ll have to move the <a href="http://happyfarming.com/2010/06/28/my-garden-layout-for-2010/">garden</a> webcam closer to the house to be able to reach the <a href="http://happyfarming.com/2009/03/04/how-to-install-debian-on-nslu2/">NSLU2</a>.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/15/fixed-the-garden-webcam-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging My NSLU2 Webcam Setup</title>
		<link>http://happyfarming.com/2010/10/13/debugging-my-nslu2-webcam-setup/</link>
		<comments>http://happyfarming.com/2010/10/13/debugging-my-nslu2-webcam-setup/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 11:37:26 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[NSLU2]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2224</guid>
		<description><![CDATA[In order to get pictures from my garden webcam onto my NSLU2 computer I installed a program called motion, which is supposed to be able grab pictures from the webcam. I tried several times to get a picture but I got lots of strange errors, so I installed the package v4l-conf to get access to [...]]]></description>
			<content:encoded><![CDATA[<p>In order to get pictures from my garden webcam onto my <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">NSLU2 computer</a> I installed a program called <em>motion</em>, which is supposed to be able grab pictures from the webcam. I tried several times to get a picture but I got lots of strange errors, so I <a href="http://happyfarming.com/2009/03/04/how-to-install-debian-on-nslu2/">installed</a> the package <em>v4l-conf</em> to get access to <em>v4l-info</em>. This program is for debugging drivers, but it also produced strange errors. Sometimes the webcam was even gone:</p>
<pre>$ <strong>v4l-info</strong>
open /dev/video0: No such file or directory</pre>
<p>Sometimes the webcam would show up but only partial information would be available:</p>
<pre>$ <strong>v4l-info</strong>

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
	name                    : "OV511 USB Camera"
	type                    : 0x201 [CAPTURE,SUBCAPTURE]
	channels                : 1
	audios                  : 0
	maxwidth                : 640
	maxheight               : 480
	minwidth                : 64
	minheight               : 48

channels
ioctl VIDIOCGCHAN: Input/output error

tuner
ioctl VIDIOCGTUNER: Input/output error

audio
ioctl VIDIOCGAUDIO: Input/output error

picture
ioctl VIDIOCGPICT: Input/output error

buffer
ioctl VIDIOCGFBUF: Input/output error

window
ioctl VIDIOCGWIN: Input/output error</pre>
<p>Sometimes the missing information would be available but not the previous information:</p>
<pre>$ <strong>v4l-info</strong>

...

channels
    VIDIOCGCHAN(0)
    channel                 : 0
    name                    : "Camera"
    tuners                  : 0
    flags                   : 0x0 []
    type                    : CAMERA
    norm                    : 0

...</pre>
<p>This smells like a hardware fault, and I don&#8217;t think I have to look further than my crappy duct tape USB extension cable.</p>
<p>The strange thing is that the USB cable and webcam works on my laptop, although there&#8217;s a lot of noise in the picture.</p>
<p>Below is what you can expect, so be warned once I get this thing up and running -</p>
<p><em>The <a href="http://happyfarming.com/2009/06/01/how-to-use-self-watering-tomato-boxes/">Tomato</a> Thief Strikes Again</em> <img src='http://happyfarming.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  :</p>
<p><img class="alignnone" title="The Tomato Thief Strikes Again" src="http://happyfarming.com/images/2010/webcam_garden.jpg" alt="" width="400" height="300" /></p>
<p><em>&#8220;But I&#8217;m only trying to <a href="http://happyfarming.com/2010/03/17/food4wealth-review/">provide food for my family</a>&#8220;</em>, he told the police.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/13/debugging-my-nslu2-webcam-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the NSLU2 Webcam Setup</title>
		<link>http://happyfarming.com/2010/10/12/changing-the-nslu2-webcam-setup/</link>
		<comments>http://happyfarming.com/2010/10/12/changing-the-nslu2-webcam-setup/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 11:37:13 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[NSLU2]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2214</guid>
		<description><![CDATA[I have found a way to solve the webcam bandwidth problem on my NSLU2. The physical setup is like this:


USB hub connected to the Disk 1 connector on the NSLU2
The flash memory disk connected to port 1 of the external USB hub. This leaves room for my 1-wire soil moisture sensor in port 2.
Webcam connected [...]]]></description>
			<content:encoded><![CDATA[<p>I have found a way to solve the webcam bandwidth problem on my <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">NSLU2</a>. The physical setup is like this:</p>
<p><img class="alignnone" title="NSLU2 and USB hub with flash memory" src="http://happyfarming.com/images/2010/NSLU2_USB_hub_flash.jpg" alt="" width="400" height="247" /></p>
<ul>
<li>USB hub connected to the Disk 1 connector on the <a href="http://happyfarming.com/2009/03/04/how-to-install-debian-on-nslu2/">NSLU2</a></li>
<li>The flash memory disk connected to port 1 of the external USB hub. This leaves room for my <a href="http://happyfarming.com/2009/05/03/soil-moisture-sensor-circuit-explained/">1-wire soil moisture sensor</a> in port 2.</li>
<li>Webcam connected to the Disk 2 connector</li>
</ul>
<p>Now the USB devices look like this:</p>
<p><code>$ <strong>lsusb</strong><br />
Bus 003 Device 003: ID 05a9:0511 OmniVision Technologies, Inc. OV511 Webcam<br />
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 001 Device 004: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub</code></p>
<p>The difference is that the webcam jumped to bus 003 and now there is enough bandwidth for the webcam.</p>
<p>As a side note, bus 002 and 003 are USB 1.1 types and bus 001 is a USB 2.0 type.</p>
<p>Now I just need to find and configure the appropriate software packages to be able to show you some pictures from <a href="http://happyfarming.com/2010/06/28/my-garden-layout-for-2010/">my garden</a>.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/12/changing-the-nslu2-webcam-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSLU2 Webcam Test</title>
		<link>http://happyfarming.com/2010/10/11/nslu2-webcam-test/</link>
		<comments>http://happyfarming.com/2010/10/11/nslu2-webcam-test/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 11:37:01 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[NSLU2]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2174</guid>
		<description><![CDATA[I&#8217;m testing another way of joining my three USB cables together. The joint is going to be placed outside so it needs some kind of weather protection. I&#8217;m considering using ordinary Ethernet cable instead, but I&#8217;m not sure what that would do to the USB signal from the webcam to the NSLU2 computer. Using an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m testing another way of joining my three USB cables together. The joint is going to be placed outside so it needs some kind of weather protection. I&#8217;m considering using ordinary Ethernet cable instead, but I&#8217;m not sure what that would do to the USB signal from the webcam to the <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">NSLU2 computer</a>. Using an Ethernet cable I would have a single, long piece of cable instead of three short USB cables joined together.</p>
<p>Five pieces of heat shrink are used as primary cover for the USB wires. One thin blue piece on each of the four USB wires inside the cable, and one larger white piece on the outside:</p>
<p><img class="alignnone" title="USB cables soldered together" src="http://happyfarming.com/images/2010/usb_cables_soldered.jpg" alt="" width="400" height="282" /></p>
<p>And on top of that a piece of duct tape:</p>
<p><img class="alignnone" title="Duct tape on USB cable joint" src="http://happyfarming.com/images/2010/usb_cable_duct_tape.jpg" alt="" width="400" height="300" /></p>
<p>The connectors from the second and third cable is wrapped in duct tape too:</p>
<p><img class="alignnone" title="USB cable connection with duct tape" src="http://happyfarming.com/images/2010/usb_cable_duct_tape_concrete.jpg" alt="" width="400" height="300" /></p>
<p>Hopefully the duct tape will keep the water out.</p>
<p>A preliminary test setup:</p>
<p><img class="alignnone" title="Webcam outside on wall" src="http://happyfarming.com/images/2010/webcam_stepladder_wall.jpg" alt="" width="300" height="400" /></p>
<p>I brought my laptop outside to ease calibration of the webcam. The webcam is connected to the laptop through a USB hub:</p>
<p><img class="alignnone" title="Laptop with USB hub outside" src="http://happyfarming.com/images/2010/laptop_outside_usb_hub.jpg" alt="" width="400" height="300" /></p>
<p>After the calibration I brought the USB hub back in and placed it in the windowsill behind the NSLU2 computer:</p>
<p><img class="alignnone" title="NSLU2 and USB hub in windowsill" src="http://happyfarming.com/images/2010/nslu2_windowsill_usb_hub.jpg" alt="" width="400" height="300" /></p>
<p>A quick test of the webcam, now connected to the <a href="http://happyfarming.com/2009/03/04/how-to-install-debian-on-nslu2/">NSLU2</a>, resulted in an error:</p>
<p><code><strong>$ webcam</strong><br />
reading config file: /home/thomas/.webcamrc<br />
v4l2: open /dev/video0: No space left on device<br />
v4l2: open /dev/video0: No space left on device<br />
v4l: open /dev/video0: No space left on device<br />
no grabber device available</code></p>
<p>I did some research and it seems to be related to the fact that the webcam is sharing a USB bus with other devices:<br />
<code><strong>$ lsusb</strong><br />
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 001 Device 006: ID 05a9:0511 OmniVision Technologies, Inc. OV511 Webcam<br />
Bus 001 Device 005: ID 0409:005a NEC Corp. HighSpeed Hub<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 001 Device 002: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive</code><br />
The webcam needs more bandwidth than it can get with other devices on the same bus.</p>
<p>I just need a way to force the webcam on to another USB bus, or maybe lower the bandwidth requirements of the webcam. I didn&#8217;t expect installing a webcam to be that difficult, as I&#8217;m pretty sure I had it up and running a couple of years ago.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/11/nslu2-webcam-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting a Webcam Outside</title>
		<link>http://happyfarming.com/2010/10/06/mounting-a-webcam-outside/</link>
		<comments>http://happyfarming.com/2010/10/06/mounting-a-webcam-outside/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 11:37:57 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[NSLU2]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2146</guid>
		<description><![CDATA[I want to show you what I&#8217;m doing in my garden in this very moment, and to be able to do this I&#8217;m setting up a webcam connected to my small NSLU2 computer. I have mounted the webcam in a plastic box and then mounted the box on top of a pole with a screw:

As [...]]]></description>
			<content:encoded><![CDATA[<p>I want to show you what I&#8217;m doing in <a href="http://happyfarming.com/2010/06/28/my-garden-layout-for-2010/">my garden</a> in this very moment, and to be able to do this I&#8217;m setting up a webcam connected to my <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">small NSLU2 computer</a>. I have mounted the webcam in a plastic box and then mounted the box on top of a pole with a screw:</p>
<p><img class="alignnone" title="Webcam on pole near wall outside" src="http://happyfarming.com/images/2010/webcam_pole_wall_outside.jpg" alt="" width="321" height="400" /></p>
<p>As you can tell it&#8217;s just a cheap and plain plastic box from the supermarket that I&#8217;m using as webcam cabinet:</p>
<p><img class="alignnone" title="Webcam in plastic box outside" src="http://happyfarming.com/images/2010/webcam_plastic_box_outside.jpg" alt="" width="400" height="318" /></p>
<p>A cable binder is securing the cable and a piece of masking tape is covering the hole I made in order to get the USB connector out:</p>
<p><img class="alignnone" title="Cable binder on webcam cable" src="http://happyfarming.com/images/2010/webcam_cable_binder_plastic_box.jpg" alt="" width="400" height="359" /></p>
<p>Just to be sure that no rain will get in I have covered the hole on the outside with silicone:</p>
<p><img class="alignnone" title="Webcam cable with silicone" src="http://happyfarming.com/images/2010/webcam_cable_binder_silicone.jpg" alt="" width="400" height="312" /></p>
<p>And the webcam is ready for live transmission:</p>
<p><img class="alignnone" title="Webcam in garden with sunflowers" src="http://happyfarming.com/images/2010/webcam_garden_sunflowers.jpg" alt="" width="400" height="279" /></p>
<p>The USB cable to the <a href="http://happyfarming.com/2009/03/04/how-to-install-debian-on-nslu2/">NSLU2 computer</a> was to short so I had to connect two USB extension cables together. I made a simple cover from a plastic bag sealed by two cable binders:</p>
<p><img class="alignnone" title="USB cables in plastic bag outside" src="http://happyfarming.com/images/2010/USB_plastic_bag_outside.jpg" alt="" width="400" height="248" /></p>
<p>But fast forward a couple of days: My webcam suddenly stopped responding &#8211; and now I know why <img src='http://happyfarming.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  :</p>
<p><img class="alignnone" title="Corroded USB cable connection" src="http://happyfarming.com/images/2010/USB_cables_corrosion.jpg" alt="" width="400" height="239" /></p>
<p>The plastic bag with cable binders turned out to be a very poor cover for the USB connectors, and the USB interface probably short circuited <img src='http://happyfarming.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Hopefully the NSLU2 computer is okay &#8211; I&#8217;ll have to make a better connection to get the camera up and running.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/10/06/mounting-a-webcam-outside/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cabinet for My Garden Webcam</title>
		<link>http://happyfarming.com/2010/09/24/cabinet-for-my-garden-webcam/</link>
		<comments>http://happyfarming.com/2010/09/24/cabinet-for-my-garden-webcam/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 11:59:08 +0000</pubDate>
		<dc:creator>thomas</dc:creator>
				<category><![CDATA[Logging]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://happyfarming.com/?p=2138</guid>
		<description><![CDATA[I have an old Sandberg webcam that I want to use as garden webcam connected to my NSLU2 computer. It&#8217;s going to be mounted outdoors but the cabinet I bought is too small to house the webcam when the stand is mounted so I removed it from the camera body:

I&#8217;m mounting the camera body on [...]]]></description>
			<content:encoded><![CDATA[<p>I have an old Sandberg webcam that I want to use as garden webcam connected to my <a href="http://happyfarming.com/2008/09/27/small-computer-as-garden-control-center/">NSLU2 computer</a>. It&#8217;s going to be mounted outdoors but the cabinet I bought is too small to house the webcam when the stand is mounted so I removed it from the camera body:</p>
<p><img class="alignnone" title="Dismantled Sandberg webcam" src="http://happyfarming.com/images/2010/webcam_sandberg_dismantled.jpg" alt="" width="400" height="243" /></p>
<p>I&#8217;m mounting the camera body on a metal angle:</p>
<p><img class="alignnone" title="Metal angle" src="http://happyfarming.com/images/2010/metal_angle.jpg" alt="" width="400" height="341" /></p>
<p>One side of the metal angle is covered with two pieces of double sided adhesive tape and the camera sticks quite well to the metal angle. I don&#8217;t want it to roll around in the cabinet:</p>
<p><img class="alignnone" title="Side view of webcam on metal angle" src="http://happyfarming.com/images/2010/webcam_metal_angle_side.jpg" alt="" width="400" height="339" /></p>
<p>Now that the camera is locked into position I just need to make a hole for the USB cable and mount the whole thing outside:</p>
<p><img class="alignnone" title="Webcam in plastic box" src="http://happyfarming.com/images/2010/webcam_plastic_box.jpg" alt="" width="400" height="332" /></p>
<p>It&#8217;s actually a plastic box from the supermarket I&#8217;m using as cabinet. I&#8217;m sure it will protect the webcam sufficiently to get through the winter, and it&#8217;s much cheaper than a professional electronics cabinet.</p>
<!--adsense#openx_RSS_feed-->]]></content:encoded>
			<wfw:commentRss>http://happyfarming.com/2010/09/24/cabinet-for-my-garden-webcam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

