<?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>An It-Slave in the digital saltmine &#187; swedish</title>
	<atom:link href="http://www.it-slav.net/blogs/category/swedish/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.it-slav.net/blogs</link>
	<description>Another Blog from a Geek that has no life</description>
	<lastBuildDate>Fri, 02 Jul 2010 07:33:08 +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>Temperature measurment for temperatur.nu</title>
		<link>http://www.it-slav.net/blogs/2009/02/11/temperature-measurment-for-temperaturnu/</link>
		<comments>http://www.it-slav.net/blogs/2009/02/11/temperature-measurment-for-temperaturnu/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 19:11:16 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[1-wire]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[it-slav.net]]></category>
		<category><![CDATA[swedish]]></category>
		<category><![CDATA[temperature.nu]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=732</guid>
		<description><![CDATA[It-Slav.net is proud to announce as one of the temperature providers to temperatur.nu
It-slav.net provides temperature measurement for STHLM/Huddinge area in Sweden to the very popular site temperatur.nu

The measurment is done by a 1-wire temperature probe DS18S20.

The script that collects the temperature and stores it in a file that is presented as a webpage, the webpage [...]]]></description>
			<content:encoded><![CDATA[<h2>It-Slav.net is proud to announce as one of the temperature providers to temperatur.nu</h2>
<p>It-slav.net provides temperature measurement for STHLM/Huddinge area in Sweden to the very popular site <a href="http://www.temperatur.nu/">temperatur.nu</a></p>
<p><br class="spacer_" /></p>
<p>The measurment is done by a 1-wire temperature probe DS18S20.</p>
<p><span id="more-732"></span></p>
<p>The script that collects the temperature and stores it in a file that is presented as a webpage, the webpage is polled regularly by temperatur.nu</p>
<pre>#!/usr/bin/perl
 #
 # rrd_tempsensor.pl</pre>
<pre>#use lib qw(/usr/local/rrdtool-1.2.15/lib/perl);
 use RRDs;
 use OW;</pre>
<pre># define location of rrdtool databases
 my $rrd = '/root/owfs/script/rrd_db';
 # define location of images
 my $img = '/home/peter/public_html/temps';</pre>
<pre># process data for each interface (add/delete as required)
 &amp;ProcessSensor(0, "Temperatur_Huddinge", "op5.mynet",3001,"10.DEF05F010800");</pre>
<pre>sub ProcessSensor
 {
 # process sensor
 # inputs: $_[0]: sensor number (ie, 0/1/2/etc)
 #         $_[1]: sensor description
 print "number:$_[0] desc:$_[1], server:$_[2] port:$_[3], id: $_[4]\n";
 my $owserver = "$_[2]:$_[3]";</pre>
<pre>unless(OW::init($owserver)) {
 $status = $ERRORS{CRIT};
 $message = "OWServer not running at $owserver\n";
 exit $status;
 }</pre>
<pre># get temperature from sensor
 my $handle = OW::get("$_[4]/temperature");
 #    print "handle=$handle\n";
 $handle =~ s/^\s*(.*?)\s*$/$1/;
 ## Check if input is an integer or decimal
 unless (($handle =~ /^-?(?:\d+(?:\.\d*)?|\.\d+)$/) || ($handle =~ /^[+-]?\d+$/))
 {
 print "Not an integer or a decimal\n";
 return($ERRORS{CRITICAL});
 }</pre>
<pre>$temp=$handle;
 # remove eol chars
 chomp($temp);</pre>
<pre>print "sensor $_[0]: $temp degrees C\n";</pre>
<pre># check for error code from temp sensor
 if (int $temp eq 85)
 {
 print "failed to read value from sensor $_[0]\n";
 }
 else
 {
 #Create webpage
 open WEBPAGE, "&gt;$img/$_[1]"
 or die "Cannot create $img/$_[1]: $!";
 print WEBPAGE "$temp\n";
 }
 }</pre>
<p>Links:</p>
<ul>
<li><a href="http://www.temperatur.nu/temperatur-1-7_0.html" target="_blank">http://www.temperatur.nu</a> temperatures from alot of places in Sweden</li>
<li><a href="http://www.temperatur.nu/temperatur-1-5_1.html#huddinge" target="_blank">My info</a> page at temperatur.nu</li>
<li><a href="http://www.temperatur.nu/temperatur-1-0_0_26.html" target="_blank">Temperature graphs</a> made by data from me</li>
<li>The <a href="http://www.it-slav.net/~peter/temps/Temperatur_Huddinge" target="_blank">&#8220;webpage&#8221;</a> that the script  create</li>
<li style="text-align: left;"><a href="http://www.it-slav.net/blogs/?cat=11" target="_blank">More</a> information about 1-wire at this blog</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/02/11/temperature-measurment-for-temperaturnu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>According to Svenska Dagbladet &#8220;Linux is not only for geeks&#8221;</title>
		<link>http://www.it-slav.net/blogs/2008/11/18/according-to-svenska-dagbladet-linux-is-not-only-for-geeks/</link>
		<comments>http://www.it-slav.net/blogs/2008/11/18/according-to-svenska-dagbladet-linux-is-not-only-for-geeks/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 09:24:06 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[swedish]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=339</guid>
		<description><![CDATA[In an article in Svenska Dagbladet the claim that Linux is not only for geeks.
Now with the minicomputers like Asus EeePC Linux is widely used by non computer geeks and for &#8220;normal&#8221; humans it is as easy to use as Windows.
Read the article in Swedish here.
]]></description>
			<content:encoded><![CDATA[<p>In an article in Svenska Dagbladet the claim that Linux is not only for geeks.</p>
<p>Now with the minicomputers like Asus EeePC Linux is widely used by non computer geeks and for &#8220;normal&#8221; humans it is as easy to use as Windows.</p>
<p>Read the article in Swedish <a href="http://www.svd.se/naringsliv/it/artikel_2042431.svd" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2008/11/18/according-to-svenska-dagbladet-linux-is-not-only-for-geeks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>op5 Artice in &#8220;Göteborgs posten&#8221;</title>
		<link>http://www.it-slav.net/blogs/2008/11/15/op5-artice-in-goteborgs-posten/</link>
		<comments>http://www.it-slav.net/blogs/2008/11/15/op5-artice-in-goteborgs-posten/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 10:03:29 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[op5]]></category>
		<category><![CDATA[swedish]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Göteborgposten]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=309</guid>
		<description><![CDATA[op5 successful business model and the power of OpenSource has been noticed by a Swedish newspaper, Göteborgs posten.
On the picture Johannes Dagemark, op5 CTO can be seen. The article describe how an organisation or enterprise can save money and achive higher security with OpenSource.
One example is the Swedish police that estimates their savings to 25 [...]]]></description>
			<content:encoded><![CDATA[<p>op5 successful business model and the power of OpenSource has been noticed by a Swedish newspaper, Göteborgs posten.</p>
<p>On the picture Johannes Dagemark, op5 CTO can be seen. The article describe how an organisation or enterprise can save money and achive higher security with OpenSource.</p>
<p>One example is the Swedish police that estimates their savings to 25 Million Euro every year.</p>
<p><a href="http://www.gp.se/gp/jsp/Crosslink.jsp?d=913&amp;a=458304" target="_blank">Link to the article written in swedish<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2008/11/15/op5-artice-in-goteborgs-posten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
