<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Home Automation on Robert van Bregt</title>
    <link>https://blog-vanbregt-eu.statichost.page/tags/home-automation/</link>
    <description>Recent content in Home Automation on Robert van Bregt</description>
    <generator>Hugo</generator>
    <language>nl</language>
    <lastBuildDate>Fri, 13 May 2016 14:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog-vanbregt-eu.statichost.page/tags/home-automation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Include Raspberry Pi System Temperature in openHAB</title>
      <link>https://blog-vanbregt-eu.statichost.page/2016/05/13/include-raspberry-pi-system-temperature-in-openhab/</link>
      <pubDate>Fri, 13 May 2016 14:00:00 +0000</pubDate>
      <guid>https://blog-vanbregt-eu.statichost.page/2016/05/13/include-raspberry-pi-system-temperature-in-openhab/</guid>
      <description>&lt;p&gt;(This post is also contributed to the openHAB wiki)&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://github.com/openhab/openhab/wiki/Systeminfo-Binding&#34;&gt;Systeminfo Binding&lt;/a&gt; enables you to read system information through &lt;a href=&#34;http://sigar.hyperic.com/&#34;&gt;Sigar&lt;/a&gt;. The system information provided through this library can be extended with some additional important features. For example, reading system temperatures for your Raspberry Pi.&lt;/p&gt;
&lt;h2 id=&#34;cpu-temperature&#34;&gt;CPU temperature&lt;/h2&gt;
&lt;p&gt;The CPU temperature can be read with a terminal command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ cat /sys/class/thermal/thermal_zone0/temp
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;46540&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This output can be captured using the Exec binding. The value returned represents millidegrees Celsius. (I’m not sure if another OS localization returns Fahrenheit). So the actual needed CPU temperature is computed through a Javascript transformation.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
