<?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>Jonathan&#039;s blog &#187; temperature</title>
	<atom:link href="http://blog.jonathangazeley.com/tag/temperature/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jonathangazeley.com</link>
	<description>A journal of Linux, gadgets, and their incompatibility. And other stuff.</description>
	<lastBuildDate>Sun, 05 Feb 2012 22:34:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Processing colour C-41 films at home</title>
		<link>http://blog.jonathangazeley.com/2011/08/processing-colour-c-41-films-at-home/</link>
		<comments>http://blog.jonathangazeley.com/2011/08/processing-colour-c-41-films-at-home/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 21:06:46 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[C-41]]></category>
		<category><![CDATA[chemical]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[film]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=1400</guid>
		<description><![CDATA[Processing black &#38; white film at home is easy. You just need a changing bag to load the film into a tank in darkness, and the rest can be done in the bathroom with the light turned on. The chemicals for black &#38; white are normally used at 20°C but can be used at room [...]]]></description>
			<content:encoded><![CDATA[<p>Processing black &amp; white film at home is easy. You just need a changing bag to load the film into a tank in darkness, and the rest can be done in the bathroom with the light turned on. The chemicals for black &amp; white are normally used at 20°C but can be used at room temperature if you compensate for the time. You could even pop the chemicals in the microwave for a few seconds.</p>
<p>Many amateur darkroom enthusiasts (until recently, me included) are wary about developing colour film with the C-41 process, on the assumption that it is difficult, confusing, expensive, or all three.</p>
<p>It is true that colour process has to be more accurately temperature-controlled, and that the development should be done at 38°C. Immediately, this conjures up images of having to buy an expensive electronic water bath, such as the Jobo CPE-2. These machines do help, and they do cost hundreds of pounds. However, they&#8217;re not <em>necessary</em>. The development usually takes only 3-4 minutes and the later stages do not have to be <em>quite</em> so accurately controlled. This means it&#8217;s possible to use a plain warm water bath.</p>
<p>It&#8217;s not too expensive or confusing, either. There are beginner&#8217;s kits such as the <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5maXJzdGNhbGwtcGhvdG9ncmFwaGljLmNvLnVrL3Byb2R1Y3RzLzMzMzcvcm9sbGVpLWRpZ2liYXNlLWMtNDEtbHQyMC1taWRpLWtpdC0xbA==">Rollei Digibase C-41 LT20</a> which include all of the chemicals you need, with instructions. I paid £25 for a kit that can do about 20 films. There are bigger kits which are better value too, and it&#8217;s possible to restock on the individual chemicals in future. I&#8217;m no expert on the C-41 process, so you should probably read up on C-41 chemistry yourself.</p>
<p>I bought a wallpaper pasting trough for £2 and made a cardboard lid with holes for my bottles and tank to stand in the water. I filled the trough with water at 50°C and stood the bottles and tank in the water to reach the right temperature. The temperature of the water bath fell rapidly at first, and then slowed down. After about 5 minutes the water bath was at about 40°C so I waited until the temperature fell to 38°C, checked the temperature of the developer as well as the water bath, and set the development process going. The thermometer still read 38°C after the development was up.</p>
<p>By the end of the entire process of developing, stopping, bleaching, fixing and stabilising, the temperature of the water bath had fallen to 35°C, but this is still within tolerances.</p>
<p>My message to photographers who are wary of processing colour film at home: don&#8217;t be. You have to be careful, but you don&#8217;t need any special equipment other than what you&#8217;ve already got for your black &amp; white work.</p>
<p>Have fun!</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1400" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2011/08/processing-colour-c-41-films-at-home/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>An unlikely correlation</title>
		<link>http://blog.jonathangazeley.com/2010/02/an-unlikely-correlation/</link>
		<comments>http://blog.jonathangazeley.com/2010/02/an-unlikely-correlation/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 17:28:37 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[RRD]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=697</guid>
		<description><![CDATA[I just spotted that my Nagios/RRD graphs of my home server are showing a strange correlation. From these graphs, it seems that the higher the outdoor temperature, the more free memory the system has available. I&#8217;m sure this is just a coincidence, though&#8230;]]></description>
			<content:encoded><![CDATA[<p>I just spotted that my Nagios/RRD graphs of my home server are showing a strange correlation.</p>
<p>From these graphs, it seems that the higher the outdoor temperature, the more free memory the system has available. I&#8217;m sure this is just a coincidence, though&#8230;</p>
<p style="text-align: center;">
<div id="attachment_698" class="wp-caption aligncenter" style="width: 591px"><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxMC8wMi9vdXR0ZW1wLnBuZw=="><img class="size-full wp-image-698 " title="Outdoor temperature" src="http://blog.jonathangazeley.com/wp-content/uploads/2010/02/outtemp.png" alt="" width="581" height="202" /></a><p class="wp-caption-text">Outdoor temperature</p></div>
<div id="attachment_699" class="wp-caption aligncenter" style="width: 607px"><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxMC8wMi9tZW1vcnkucG5n"><img class="size-full wp-image-699" title="Free memory" src="http://blog.jonathangazeley.com/wp-content/uploads/2010/02/memory.png" alt="" width="597" height="202" /></a><p class="wp-caption-text">Free memory</p></div>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=697" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2010/02/an-unlikely-correlation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Baby, it&#8217;s cold outside</title>
		<link>http://blog.jonathangazeley.com/2009/12/baby-its-cold-outside/</link>
		<comments>http://blog.jonathangazeley.com/2009/12/baby-its-cold-outside/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 13:39:11 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[cold]]></category>
		<category><![CDATA[TEMPer]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=644</guid>
		<description><![CDATA[I posted a few months ago to say that my server wasn&#8217;t a massive fan of the high temperature in my loft. Well, now it&#8217;s too cold. The UK has had a bit of a cold snap lately. Outdoor temperatures in Bristol last night got as low as -3 °C, and in turn the temperature [...]]]></description>
			<content:encoded><![CDATA[<p>I posted a few months ago to say that my server wasn&#8217;t a massive fan of the <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS8yMDA5LzExL3RoZS10ZW1wZXJhdHVyZS1pbi1teS1sb2Z0Lw==">high temperature in my loft</a>.</p>
<p>Well, now it&#8217;s too cold. The UK has had a bit of a cold snap lately. Outdoor temperatures in Bristol last night got as low as -3 °C, and in turn the temperature in my loft went down to 2.5 °C.</p>
<div id="attachment_646" class="wp-caption aligncenter" style="width: 591px"><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8xMi9hbWJpZW50MS5wbmc="><img class="size-full wp-image-646" title="Ambient temperature in my loft" src="http://blog.jonathangazeley.com/wp-content/uploads/2009/12/ambient1.png" alt="Ambient temperature in my loft" width="581" height="230" /></a><p class="wp-caption-text">Ambient temperature in my loft</p></div>
<p>Thing is, that&#8217;s probably a bit too cold for my server now. The CPU is happily sitting there at 24 °C but the disks are all around 15 °C.</p>
<p>According to <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9IYXJkX2RyaXZlI0Rpc2tfZmFpbHVyZXNfYW5kX3RoZWlyX21ldHJpY3M=">Wikipedia</a>:</p>
<blockquote><p>A common misconception is that a colder hard drive will last longer than a hotter hard drive. The Google study seems to imply the reverse &#8211; &#8220;lower temperatures are associated with higher failure rates&#8221;. Hard drives with S.M.A.R.T.-reported average temperatures below 27 °C had failure rates worse than hard drives with the highest reported average temperature of 50 °C, failure rates at least twice as high as the optimum S.M.A.R.T.-reported temperature range of 36 °C to 47 °C.</p></blockquote>
<p>So my disks appear to be at risk of failing sooner. Worse yet, they&#8217;re not consistently at 15 °C but fluctuate wildly on a daily and seasonal basis. Looks like all I can do is keep my data on a redundant array and swap out any disks <strong>when</strong> (not if) they fail.</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=644" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2009/12/baby-its-cold-outside/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The temperature in my loft</title>
		<link>http://blog.jonathangazeley.com/2009/11/the-temperature-in-my-loft/</link>
		<comments>http://blog.jonathangazeley.com/2009/11/the-temperature-in-my-loft/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:33:42 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[ambient]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[drive]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[TEMPer]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=569</guid>
		<description><![CDATA[I recently (mid October) moved my home server into my loft, as its constant noise under my desk was getting on my nerves. However I found that with a large area of roof exposed to the sun (even the weak Autumn sun), and practically no ventilation the ambient temperature fluctuates enormously. In October when it [...]]]></description>
			<content:encoded><![CDATA[<p>I recently (mid October) moved my home server into my loft, as its constant noise under my desk was getting on my nerves.</p>
<p>However I found that with a large area of roof exposed to the sun (even the weak Autumn sun), and practically no ventilation the ambient temperature fluctuates enormously.</p>
<p>In October when it was a little warmer and a little sunnier, the temperature would drop almost as low at 10°C and almost as high as 30°C. An ambient temperature of over 25°C seems to drive my disk temperatures up to over 50°C. This constantly changing temperature with high and low extremes is a sure-fire way to <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9IYXJkX2RyaXZlI0Rpc2tfZmFpbHVyZXNfYW5kX3RoZWlyX21ldHJpY3M=">break hard disks</a>.</p>
<p>After Week 42, I opened the loft trapdoor, which went a long way to keeping the temperature more constant. Unfortunately it also makes the flat rather cold.</p>
<p>Now it&#8217;s much colder outdoors, I&#8217;ve closed the trapdoor again and the loft temperature seems pleasantly cool and reasonably constant. Today the temperature up there is a steady 13°C, although the sun hardly shone. That&#8217;s cooler than your average air-conditioned data centre &#8211; and all free thanks to the crappy British weather <img src='http://blog.jonathangazeley.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Oh, and the 6 disks are now all between 25°C and 30°C.</p>
<p><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8xMS9hbWJpZW50LXRlbXBlcmF0dXJlLnBuZw=="><img class="aligncenter size-full wp-image-570" title="ambient-temperature" src="http://blog.jonathangazeley.com/wp-content/uploads/2009/11/ambient-temperature.png" alt="ambient-temperature" width="581" height="230" /></a></p>
<ul>
<li>I&#8217;m measuring and graphing this using a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS8yMDA5LzEwL3RlbXBlci11c2ItdGhlcm1vbWV0ZXItb24tbGludXgv">TEMPer</a> USB thermometer, using <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5uYWdpb3Mub3JnLw==">Nagios</a> monitoring software with <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS8yMDA5LzEwL25hZ2lvcy1wbHVnaW4tZm9yLXRlbXBlci11c2ItdGhlcm1vbWV0ZXIv">my own plugin</a> and <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2RvY3MucG5wNG5hZ2lvcy5vcmcvcG5wLTAuNi9zdGFydA==">PNP4Nagios</a> to draw the graphs.</li>
<li>The &#8220;outage&#8221; between weeks 43 and 44 was caused by the shift from <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9Ccml0aXNoX1N1bW1lcl9UaW1l">BST</a> to <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9HcmVlbndpY2hfbWVhbl90aW1l">GMT</a>, apparently. I didn&#8217;t notice for a while, but restarting Nagios fixed it <img src='http://blog.jonathangazeley.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=569" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2009/11/the-temperature-in-my-loft/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Various Nagios plugins</title>
		<link>http://blog.jonathangazeley.com/2009/10/various-nagios-plugins/</link>
		<comments>http://blog.jonathangazeley.com/2009/10/various-nagios-plugins/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 19:46:28 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[AMD]]></category>
		<category><![CDATA[AQL]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[TEMPer]]></category>
		<category><![CDATA[temperature]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[thermometer]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=501</guid>
		<description><![CDATA[I&#8217;ve now written several Nagios plugins and submitted them all to MonitoringExchange. Here&#8217;s a quick summary: check_temper for monitoring the temperature with a TEMPer USB thermometer check_kernel for checking that the currently running kernel on an RPM-based system is the most recent installed kernel (not necessarily the latest available kernel in the repository) check_aql_balance for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve now written several <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL25hZ2lvcy5vcmcv">Nagios</a> plugins and submitted them all to <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tb25pdG9yaW5nZXhjaGFuZ2Uub3JnL2NnaS1iaW4vcGFnZS5jZ2k/Zz07ZD0x">MonitoringExchange</a>.</p>
<p>Here&#8217;s a quick summary:</p>
<ul>
<li><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tb25pdG9yaW5nZXhjaGFuZ2Uub3JnL2NnaS1iaW4vcGFnZS5jZ2k/Zz1EZXRhaWxlZCUyRjMyMjEuaHRtbDtkPTE=">check_temper</a> for monitoring the temperature with a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5mdW5wb25zZWwuY29tL2Jsb2cvaGFyZHdhcmUtYW5kLXBlcmlwaGVyYWwvdGVtcGVyLXVzYi10aGVybW9tZXRlci1mb3ItbGFib3JhdG9yaWFucy5odG1s">TEMPer</a> USB thermometer</li>
<li><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tb25pdG9yaW5nZXhjaGFuZ2Uub3JnL2NnaS1iaW4vcGFnZS5jZ2k/Zz1EZXRhaWxlZCUyRjMxNzcuaHRtbDtkPTE=">check_kernel</a> for checking that the currently running kernel on an RPM-based system is the most recent <strong>installed</strong> kernel (not necessarily the latest available kernel in the repository)</li>
<li><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tb25pdG9yaW5nZXhjaGFuZ2Uub3JnL2NnaS1iaW4vcGFnZS5jZ2k/Zz1EZXRhaWxlZCUyRjMxNzguaHRtbDtkPTE=">check_aql_balance</a> for monitoring the number of SMS text message credits on your <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2FxbC5jb20v">AQL</a> account<sup>[1]</sup></li>
<li><a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tb25pdG9yaW5nZXhjaGFuZ2Uub3JnL2NnaS1iaW4vcGFnZS5jZ2k/Zz1EZXRhaWxlZCUyRjMyMjIuaHRtbDtkPTE=">check_k8temp</a> for monitoring the temperature of an AMD K8 (e.g. Athlon or Sempron) CPU</li>
</ul>
<hr /><em>[1] See my blog post if you are interested in setting up <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS8yMDA5LzA4L3Ntcy1hbGVydHMtd2l0aC1uYWdpb3Mv">SMS alerts with Nagios</a></em></p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=501" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2009/10/various-nagios-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios plugin for TEMPer USB thermometer</title>
		<link>http://blog.jonathangazeley.com/2009/10/nagios-plugin-for-temper-usb-thermometer/</link>
		<comments>http://blog.jonathangazeley.com/2009/10/nagios-plugin-for-temper-usb-thermometer/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 15:49:03 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[TEMPer]]></category>
		<category><![CDATA[temperature]]></category>
		<category><![CDATA[thermometer]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=482</guid>
		<description><![CDATA[As I said in a previous post, I finally got my TEMPer USB thermometer to work on Fedora, thanks to a patch by Tollef Fog Heen that has now been incorporated into the Fedora kernel. I&#8217;m not familiar with C so I only made minor tweaks to Tollef Fog Heen&#8217;s code, which returns a temperature [...]]]></description>
			<content:encoded><![CDATA[<p>As I said in a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS8yMDA5LzEwL3RlbXBlci11c2ItdGhlcm1vbWV0ZXItb24tbGludXg=">previous post</a>, I finally got my TEMPer USB thermometer to work on Fedora, thanks to a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Vyci5uby9wZXJzb25hbC9ibG9nL3RlY2gvMjAwOC0wNy0yMi0xMC0xN19rZXJuZWxfcGF0Y2hlc19URU1QZXJfdGhlcm1vbWV0ZXIuaHRtbA==">patch</a> by <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Vyci5uby9wZXJzb25hbC9ibG9nLw==">Tollef Fog Heen</a> that has now been incorporated into the Fedora kernel.</p>
<p>I&#8217;m not familiar with C so I only made minor tweaks to Tollef Fog Heen&#8217;s code, which returns a temperature as a number. I wrote a wrapper in Perl that crudely interfaces this program to Nagios. In reality, I should wise up on my C a little and write the whole thing in C. When I do this, I&#8217;ll submit it to <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tb25pdG9yaW5nZXhjaGFuZ2Uub3JnL2NnaS1iaW4vcGFnZS5jZ2k/ZD0x">Monitoring Exchange</a>.</p>
<p>For the time being, I&#8217;ll publish my Nagios plugin on this blog, in the hope that it might be useful to someone, despite being incredibly hacky.</p>
<p>First you&#8217;ll need the <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8xMC9URU1QZXIyLmM=">code</a> for the program that reads the temperature from the TEMPer. Compile it like this:</p>
<pre>g++ -o get_temper TEMPer2.c</pre>
<p>Note that the path to the TEMPer device is hard-coded in the C If yours isn&#8217;t at <code>/dev/ttyUSB0</code> then you&#8217;ll need to change the source before compiling.</p>
<p>Then download my Nagios <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8xMC9jaGVja190ZW1wZXI=">plugin</a> (<code>check_temper</code>), and put both the plugin and the program <code>get_temper</code> in your Nagios plugin directory. This is likely to be <code>/usr/local/nagios/libexec</code> if you built from source, and <code>/usr/lib/nagios/plugins</code> if you installed from RPM in the Fedora repository.</p>
<p>Now all you have to do is the usual Nagios magic for adding any other plugin. Simple!</p>
<h2>Update</h2>
<p><strong>Forget all that you&#8217;ve read above!</strong> I&#8217;ve now rewritten the entire plugin in C, so there is no need for the perl wrapper. You can download it from <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tb25pdG9yaW5nZXhjaGFuZ2Uub3JnL2NnaS1iaW4vcGFnZS5jZ2k/Zz1EZXRhaWxlZCUyRjMyMjEuaHRtbDtkPTE=">MonitoringExchange</a>.</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=482" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2009/10/nagios-plugin-for-temper-usb-thermometer/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>TEMPer USB thermometer on Linux</title>
		<link>http://blog.jonathangazeley.com/2009/10/temper-usb-thermometer-on-linux/</link>
		<comments>http://blog.jonathangazeley.com/2009/10/temper-usb-thermometer-on-linux/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 15:40:12 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[TEMPer]]></category>
		<category><![CDATA[temperature]]></category>
		<category><![CDATA[thermometer]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://blog.jonathangazeley.com/?p=480</guid>
		<description><![CDATA[Some time ago I bought a cheap USB thermometer called TEMPer. I was disappointed to find that it didn&#8217;t work on Fedora. It would only work on Windows using a poor piece of proprietary software. I eventually found the blog of Tollef Fog Heen, who had managed to get his TEMPer to work. Unfortunately his [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I bought a cheap USB thermometer called TEMPer. I was disappointed to find that it didn&#8217;t work on Fedora. It would only work on Windows using a poor piece of proprietary software.</p>
<p>I eventually found the blog of <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Vyci5uby9wZXJzb25hbC9ibG9nLw==">Tollef Fog Heen</a>, who had managed to <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Vyci5uby9wZXJzb25hbC9ibG9nL3RlY2gvMjAwOC0wNy0yMi0xMC0xN19rZXJuZWxfcGF0Y2hlc19URU1QZXJfdGhlcm1vbWV0ZXIuaHRtbA==">get his TEMPer to work</a>. Unfortunately his solution involved patching and compiling a kernel.</p>
<p>However since then, it seems his patch has been integrated into the stock Fedora kernel and it is now possible to read the temperature from it.</p>
<p>The TEMPer device appears to be a USB-serial adapter, with a serial I2C device at the end of it. It&#8217;s not straightforward to extract the temperature from it, but Tollef Fog Heen has written a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Vyci5uby9zcmMvVEVNUGVyLmM=">simple C program</a> to return the temperature.</p>
<p>His program polls the TEMPer every second and prints the temperature to the command line. It doesn&#8217;t stop until you kill the program. I made a couple of tweaks to the code so it prints the temperature once, formatted as a raw number with no extra text, and then quits. You can find my modified source <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAwOS8xMC9URU1QZXIyLmM=">here</a>.</p>
<p><strong>Disclaimer</strong>: I don&#8217;t know C. I haven&#8217;t changed any of the logic of the code, only the way it prints the output. If the code is buggy, it wasn&#8217;t me! <img src='http://blog.jonathangazeley.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now I have an executable that returns the temperature from the TEMPer, I can think about building some application that could use this. How about a <a href="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuam9uYXRoYW5nYXplbGV5LmNvbS8yMDA5LzEwL25hZ2lvcy1wbHVnaW4tZm9yLXRlbXBlci11c2ItdGhlcm1vbWV0ZXI=">Nagios plugin</a>?</p>
 <img src="http://blog.jonathangazeley.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=480" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.jonathangazeley.com/2009/10/temper-usb-thermometer-on-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

