<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Watchport/T Temperature sensor on Linux</title>
	<atom:link href="http://blog.petrilopia.net/wordpress/hardware/watchportt-temperature-sensor-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.petrilopia.net/hardware/watchportt-temperature-sensor-on-linux/</link>
	<description>Place for weird people</description>
	<lastBuildDate>Mon, 12 Dec 2011 21:56:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
	<item>
		<title>By: Buy Backlinks</title>
		<link>http://blog.petrilopia.net/hardware/watchportt-temperature-sensor-on-linux/comment-page-1/#comment-3214</link>
		<dc:creator>Buy Backlinks</dc:creator>
		<pubDate>Wed, 03 Nov 2010 14:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.petrilopia.net/wordpress/?page_id=808#comment-3214</guid>
		<description>Great blog!! You should start many more. I love all the info provided. I will stay tuned :)</description>
		<content:encoded><![CDATA[<p>Great blog!! You should start many more. I love all the info provided. I will stay tuned :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robnhood</title>
		<link>http://blog.petrilopia.net/hardware/watchportt-temperature-sensor-on-linux/comment-page-1/#comment-1921</link>
		<dc:creator>Robnhood</dc:creator>
		<pubDate>Tue, 07 Sep 2010 15:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.petrilopia.net/wordpress/?page_id=808#comment-1921</guid>
		<description>I didn&#039;t really need to log to a file or schedule it.  I basically just wanted to create a nagios checks.  I used the script above, and modified it to create nagios scripts for checking temperature &amp; humidity, and it really didn&#039;t take much.

Basically, I made the following modifications

-check permissions on /dev/ttyUSB0, since this seemed to be an issue on my system  

 If [ -w &quot;/dev/ttyUSB0&quot;]...then....fi

-check to see if the script was already running, and wait until the previous check completed.

 SERVICE=`ps ax &#124; grep -v grep &#124; grep $t_USBport`
 while [ &quot;$SERVICE&quot; ]
 do
 sleep
 done

-check to see if output temperature or humidity was within a range.

 if test $t_temperature -gt $HWARN -o $t_temperature -lt $LWARN
         then
         if test $t_temperature -gt $HCRIT -o $t_temperature -lt  $LCRIT</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t really need to log to a file or schedule it.  I basically just wanted to create a nagios checks.  I used the script above, and modified it to create nagios scripts for checking temperature &amp; humidity, and it really didn&#8217;t take much.</p>
<p>Basically, I made the following modifications</p>
<p>-check permissions on /dev/ttyUSB0, since this seemed to be an issue on my system  </p>
<p> If [ -w "/dev/ttyUSB0"]&#8230;then&#8230;.fi</p>
<p>-check to see if the script was already running, and wait until the previous check completed.</p>
<p> SERVICE=`ps ax | grep -v grep | grep $t_USBport`<br />
 while [ "$SERVICE" ]<br />
 do<br />
 sleep<br />
 done</p>
<p>-check to see if output temperature or humidity was within a range.</p>
<p> if test $t_temperature -gt $HWARN -o $t_temperature -lt $LWARN<br />
         then<br />
         if test $t_temperature -gt $HCRIT -o $t_temperature -lt  $LCRIT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ernst</title>
		<link>http://blog.petrilopia.net/hardware/watchportt-temperature-sensor-on-linux/comment-page-1/#comment-1172</link>
		<dc:creator>Ernst</dc:creator>
		<pubDate>Mon, 24 May 2010 15:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.petrilopia.net/wordpress/?page_id=808#comment-1172</guid>
		<description>Works great but in the code above all the instances of &#039;&gt;&#039; should be replaced by &#039;&gt;&#039;. Somehow your text got mangled when you posted it.

I also had to compile the io_ti.ko module to get usbserial to recognize my Watchport/H.

And ofcourse a

while true
do
.
sleep 60
done

around your code and starting it in de background:

./get-data.sh &amp;

will log the temperature every minute.

Thanks!</description>
		<content:encoded><![CDATA[<p>Works great but in the code above all the instances of &#8216;&gt;&#8217; should be replaced by &#8216;&gt;&#8217;. Somehow your text got mangled when you posted it.</p>
<p>I also had to compile the io_ti.ko module to get usbserial to recognize my Watchport/H.</p>
<p>And ofcourse a</p>
<p>while true<br />
do<br />
.<br />
sleep 60<br />
done</p>
<p>around your code and starting it in de background:</p>
<p>./get-data.sh &amp;</p>
<p>will log the temperature every minute.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

