<?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>Purrucker Page Blog &#187; Kommunikationstechnik</title>
	<atom:link href="http://blog.purrucker.de/kategorien/computer-technik/kommunikationstechnik/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.purrucker.de</link>
	<description>Informationstechnologie, Sport und anderes ...</description>
	<lastBuildDate>Tue, 07 Feb 2012 12:20:38 +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>Anzeigen der Postfachgröße bei Exchange 2010</title>
		<link>http://blog.purrucker.de/2012/02/07/anzeigen-der-postfachgrose-bei-exchange-2010/</link>
		<comments>http://blog.purrucker.de/2012/02/07/anzeigen-der-postfachgrose-bei-exchange-2010/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 12:15:16 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Datenbank]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=1119</guid>
		<description><![CDATA[Wer einen Server mit Microsoft Exchange betreibt ist oft auf der Suche nach den Benutzern, die zu viel Speicherplatz belegen. Leider gibt es in der grafischen Konsole von Exchange 2010 keine Möglichkeit in einer Liste alle Mailboxen mit ihrer Größe &#8230; <a href="http://blog.purrucker.de/2012/02/07/anzeigen-der-postfachgrose-bei-exchange-2010/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer einen Server mit Microsoft Exchange betreibt ist oft auf der Suche nach den Benutzern, die zu viel Speicherplatz belegen. Leider gibt es in der grafischen Konsole von Exchange 2010 keine Möglichkeit in einer Liste alle Mailboxen mit ihrer Größe anzuzeigen. Um eine solche List zu erhalten benötigt man also die Power Shell. Die brauchbaren Kommandos für die Power Shell haben jedoch leider den Nachteil, dass Sie sich durch ihre Länge und komplexität nicht sonderlich gut merken lassen. Deshalb habe ich mir im folgenden mal drei nützliche Varianten zum ermitteln der Mailboxgröße aufgeschrieben.</p>
<p><strong>Alle Mailboxen nach Größe anzeigen</strong></p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;">get<span style="color: pink;">-</span>mailboxdatabase <span style="color: pink;">|</span> get<span style="color: pink;">-</span>mailboxstatistics <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Sort</span> <span style="color: #008080; font-style: italic;">-Property</span> TotalItemSize <span style="color: #008080; font-style: italic;">-descending</span><span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">select-object</span> DisplayName<span style="color: pink;">,@</span><span style="color: #000000;">&#123;</span>expression<span style="color: pink;">=</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.TotalItemSize.value.ToMB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">,</span> Itemcount<span style="color: pink;">,</span>ServerName</pre></div></div>

<p><strong>Alle Mailboxen nach Größe und mit Datenbank anzeigen</strong></p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;">get<span style="color: pink;">-</span>mailboxdatabase <span style="color: pink;">|</span> get<span style="color: pink;">-</span>mailboxstatistics <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Sort</span> <span style="color: #008080; font-style: italic;">-Property</span> TotalItemSize <span style="color: #008080; font-style: italic;">-descending</span><span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">select-object</span> DisplayName<span style="color: pink;">,@</span><span style="color: #000000;">&#123;</span>expression<span style="color: pink;">=</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.TotalItemSize.value.ToMB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">,</span> Itemcount<span style="color: pink;">,</span>ServerName<span style="color: pink;">,</span>Database <span style="color: pink;">|</span>ft</pre></div></div>

<p><strong>Alle Mailboxen einer Datenbank auflisten</strong><br />
(anstelle von Test muss hier der DB-Name eingesetzt werden)</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;">get<span style="color: pink;">-</span>Mailboxdatabase <span style="color: pink;">-</span>Identity <span style="color: #800000;">&quot;Test&quot;</span> <span style="color: pink;">|</span> get<span style="color: pink;">-</span>mailboxstatistics <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Sort</span> <span style="color: #008080; font-style: italic;">-Property</span> TotalItemSize <span style="color: #008080; font-style: italic;">-descending</span><span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">select-object</span> DisplayName<span style="color: pink;">,@</span><span style="color: #000000;">&#123;</span>expression<span style="color: pink;">=</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.TotalItemSize.value.ToMB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">,</span>Itemcount<span style="color: pink;">,</span>ServerName</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2012/02/07/anzeigen-der-postfachgrose-bei-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autodiscover bei Outlook abschalten</title>
		<link>http://blog.purrucker.de/2011/11/17/autodiscover-bei-outlook-abschalten/</link>
		<comments>http://blog.purrucker.de/2011/11/17/autodiscover-bei-outlook-abschalten/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 16:51:15 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=1088</guid>
		<description><![CDATA[Die Autodiscover Funktion von Outlook ist eine nützliche Sache, die einen bei gemischten Umgebungen mit mehre Firewalls, DNS- und Exchangeservern in die Verzweiflung treiben kann. Vielleicht hat Microsoft deshalb ja sogar einen Song über Autodicover auf der Technet-Webseite veröffentlicht http://gallery.technet.microsoft.com/The-Autodiscover-Song-a68b9f7c &#8230; <a href="http://blog.purrucker.de/2011/11/17/autodiscover-bei-outlook-abschalten/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Die Autodiscover Funktion von Outlook ist eine nützliche Sache, die einen bei gemischten Umgebungen mit mehre Firewalls, DNS- und Exchangeservern in die Verzweiflung treiben kann. Vielleicht hat Microsoft deshalb ja sogar einen Song über Autodicover auf der Technet-Webseite veröffentlicht <img src='http://blog.purrucker.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href=" http://gallery.technet.microsoft.com/The-Autodiscover-Song-a68b9f7c"></p>
<p>http://gallery.technet.microsoft.com/The-Autodiscover-Song-a68b9f7c</a></p>
<p>Leider läuft ab Outlook 2007 ohne autodiscover einiges nicht mehr (z.B. Free and Busy Informationen, der Abwesenheitsassist, das Offline Address Book usw). Dies lässt sich allerdings umgehen, indem man für den Client das Autodiscover abzuschalten. Im folgenden ein paar Registry-Einträge einem dies ermöglichen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">HKCU\Software\Microsoft\Office\<span style="color: #000000;">12.0</span>\Outlook\AutoDiscover
DWORD: DisableAutoStartup
Set to <span style="color: #000000;">1</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\<span style="color: #000000;">12.0</span>\Outlook\AutoDiscover
DWORD: ZeroConfigExchange
Set to <span style="color: #000000;">1</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">2</span>. Free Busy:
Outlook <span style="color: #000000;">2007</span> zwingen den Public Folder Free<span style="color: #000000; font-weight: bold;">/</span>Busy zu nutzen:
Key: HKEY_CURRENT_USER\Software\Microsoft\Office\<span style="color: #000000;">12.0</span>\Outlook\Options\Calendar
DWORD: UseLegacyFB
Wert:
<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>oder nicht vorhanden<span style="color: #7a0874; font-weight: bold;">&#41;</span> = default Einstellung - Autodiscover nutzen
<span style="color: #000000;">1</span> = public folder free<span style="color: #000000; font-weight: bold;">/</span>busy nutzen</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/11/17/autodiscover-bei-outlook-abschalten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeRADIUS: Begrenzung der Zugriffszeit nach der ersten Benutzung</title>
		<link>http://blog.purrucker.de/2011/09/13/freeradius-begrenzung-der-zugriffszeit-nach-der-ersten-benutzung/</link>
		<comments>http://blog.purrucker.de/2011/09/13/freeradius-begrenzung-der-zugriffszeit-nach-der-ersten-benutzung/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 10:13:41 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Authentisierung]]></category>
		<category><![CDATA[Authorisierung]]></category>
		<category><![CDATA[Benutzer]]></category>
		<category><![CDATA[FreeRADIUS]]></category>
		<category><![CDATA[Zugang]]></category>
		<category><![CDATA[Zugriff]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=1062</guid>
		<description><![CDATA[Mit Hilfe eines Moduls kann man den FreeRADIUS dazu bringen, dass ein Benutzerzugang nach einer vorgegebenen Zeit nach der ersten Anmeldung abläuft. Dazu erzeugt man ein neues Modul innerhalb des Modulverzeichnisses (dieses findet man meistens unter /etc/freeradius/modules/). Ich habe da &#8230; <a href="http://blog.purrucker.de/2011/09/13/freeradius-begrenzung-der-zugriffszeit-nach-der-ersten-benutzung/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mit Hilfe eines Moduls kann man den FreeRADIUS dazu bringen, dass ein Benutzerzugang nach einer vorgegebenen Zeit nach der ersten Anmeldung abläuft. Dazu erzeugt man ein neues Modul innerhalb des Modulverzeichnisses (dieses findet man meistens unter /etc/freeradius/modules/). Ich habe da Modul passender Weise accessperiod genannt und es sollte wie folgt aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> sqlcounter accessperiod <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    counter-name = Max-Access-Period-Time
    check-name = Access-Period
    sqlmod-inst = sql
    key = User-Name
    reset = never
    query = <span style="color: #ff0000;">&quot;SELECT IFNULL((SELECT TIME_TO_SEC(TIMEDIFF(Now(),AcctStartTime)) FROM radacct WHERE UserName = '%{%k}' ORDER BY AcctStartTime LIMIT 1),0)&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Danach fügt man das Modul am Ende der entsprechenden Authorize-Section der Site des FreeRADIUS ein. Diese könnte dann z.B. wie folgt aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">authorize <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        preprocess
        chap
        mschap
        suffix
        eap <span style="color: #7a0874; font-weight: bold;">&#123;</span>
                ok = <span style="color: #7a0874; font-weight: bold;">return</span>
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
        unix
        sql
        expiration
        logintime
        pap
        noresetcounter
        dailycounter
        monthlycounter
        accessperiod
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Damit die Konfiguration aktiv wird, muss der FreeRADIUS neu gestartet oder geladen werden und bei den entsprechenden Benutzern muss in der Tabelle radcheck noch das Attribut Access-Period vorgegeben werden. Das könnte z.B. wie folgt aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">+—-+———–+——————-+—-+————-+
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">id</span> <span style="color: #000000; font-weight: bold;">|</span> UserName <span style="color: #000000; font-weight: bold;">|</span> Attribute <span style="color: #000000; font-weight: bold;">|</span> op <span style="color: #000000; font-weight: bold;">|</span> Value <span style="color: #000000; font-weight: bold;">|</span>
+—-+———–+——————-+—-+————-+
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span> benutzer2 <span style="color: #000000; font-weight: bold;">|</span> Access-Period <span style="color: #000000; font-weight: bold;">|</span> := <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">3600</span> <span style="color: #000000; font-weight: bold;">|</span>
+—-+———–+——————-+—-+————-+</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/09/13/freeradius-begrenzung-der-zugriffszeit-nach-der-ersten-benutzung/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Berechtigungen bei einem Exchange Server 2010 neu setzen</title>
		<link>http://blog.purrucker.de/2011/06/20/berchtigungen-bei-einem-exchange-server-2010-neu-setzen/</link>
		<comments>http://blog.purrucker.de/2011/06/20/berchtigungen-bei-einem-exchange-server-2010-neu-setzen/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 14:02:58 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=1033</guid>
		<description><![CDATA[Unter bestimmten Umständen kann es dazu kommen, dass die Berechtigungen bei einem Exchange Server 2010 Server falsch gesetzt sind. Ich hatte neulich z.B. den Fall, dass interne E-Mails trotzt korrekter Konfiguration nicht von einem zum anderen Server übermittelt wurden. Für &#8230; <a href="http://blog.purrucker.de/2011/06/20/berchtigungen-bei-einem-exchange-server-2010-neu-setzen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Unter bestimmten Umständen kann es dazu kommen, dass die Berechtigungen bei einem Exchange Server 2010 Server falsch gesetzt sind. Ich hatte neulich z.B. den Fall, dass interne E-Mails trotzt korrekter Konfiguration nicht von einem zum anderen Server übermittelt wurden.</p>
<p>Für solche Fälle gibt es den Schalter <code>/preparelegacyexchangepermissions</code> für die <code>setup.exe</code>. Wenn man die <code>setup.exe</code> mit diesem Parameter auf dem Server erneut startet, werden die Berechtigungen erneut gesetzt.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/06/20/berchtigungen-bei-einem-exchange-server-2010-neu-setzen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook 2003 für Exchange 2010 verwenden</title>
		<link>http://blog.purrucker.de/2011/05/10/outlook-2003-fur-exchange-2010-verwenden/</link>
		<comments>http://blog.purrucker.de/2011/05/10/outlook-2003-fur-exchange-2010-verwenden/#comments</comments>
		<pubDate>Tue, 10 May 2011 11:08:05 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[Terminplanung]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=1000</guid>
		<description><![CDATA[Wenn man mit Microsoft Office Outlook 2003 auf ein Microsoft Exchange Server 2010-Postfach zugreift, werden E-Mail die gelöscht oder verschoben wurden noch längere Zeit im Ordner angezeigt. Dies liegt daran, dass Microsoft bei Exchange 2010 keine UDP-Benachrichtigungen mehr an Outlook &#8230; <a href="http://blog.purrucker.de/2011/05/10/outlook-2003-fur-exchange-2010-verwenden/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wenn man mit Microsoft Office Outlook 2003 auf ein Microsoft Exchange Server 2010-Postfach zugreift, werden E-Mail die gelöscht oder verschoben wurden noch längere Zeit im Ordner angezeigt. Dies liegt daran, dass Microsoft bei Exchange 2010 keine UDP-Benachrichtigungen mehr an Outlook versendet.</p>
<p>Da sehr viele Kunden noch Outlook 2003 einsetzen, hat Microsoft diese Funktion aber mit &#8220;Update Rollup 3 für Exchange Server 2010 Service Pack 1&#8243; wieder ermöglicht. Damit die UDP-Benachrichtigungen wieder gesendet werden, muss allerdings zusätzlich der folgende Registrierungsschlüssel inklusive Subschlüssel erstellt werden:</p>
<p><code>SubkEy-Speicherort: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeRPC\ParametersSystem</code><br />
<code>SubkEy-Name: EnablePushNotifications</code><br />
<code>Typ: REG_DWORD</code><br />
<code>Wert: 1</code></p>
<p>Nähere Informationen findet man in dem  <a href="http://support.microsoft.com/kb/2009942">Microsoft Knowledge Base Artikel 2009942</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/05/10/outlook-2003-fur-exchange-2010-verwenden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange: Autodiscover für externe Clients mit Outlook</title>
		<link>http://blog.purrucker.de/2011/04/11/exchange-autodiscover-fur-externe-clients-mit-outlook/</link>
		<comments>http://blog.purrucker.de/2011/04/11/exchange-autodiscover-fur-externe-clients-mit-outlook/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 12:59:40 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=998</guid>
		<description><![CDATA[Die automatische Konfiguration von Outlook erfolgt ab Version 2007 über die Datei autodiscover.xml. Ein externer Outlook-Client (also einer der nicht in der Domain des Exchangeservers ist) sucht diese Datei im Verzeichnis autodiscover auf einem Server mit dem DNS-Namen autodiscover.[Domain].[TLD]. Wenn &#8230; <a href="http://blog.purrucker.de/2011/04/11/exchange-autodiscover-fur-externe-clients-mit-outlook/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Die automatische Konfiguration von Outlook erfolgt ab Version 2007 über die Datei <code>autodiscover.xml</code>. Ein externer Outlook-Client (also einer der nicht in der Domain des Exchangeservers ist) sucht diese Datei im Verzeichnis <code>autodiscover</code> auf einem Server mit dem DNS-Namen <code>autodiscover.[Domain].[TLD]</code>. Wenn ein externer Outlook-Client also mit einem Exchange-Server der Domain microsoft.de aufbauen soll, würde diese unter der URL <code>https://autodiscover.microsoft.de/autodiscover/autodiscover.xml</code> nach seiner Konfiguration suchen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/04/11/exchange-autodiscover-fur-externe-clients-mit-outlook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1-wire Wetterstation (Teil 3: Anzeige)</title>
		<link>http://blog.purrucker.de/2011/03/29/1-wire-wetterstation-teil-3-anzeige-2/</link>
		<comments>http://blog.purrucker.de/2011/03/29/1-wire-wetterstation-teil-3-anzeige-2/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 10:14:21 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Alix]]></category>
		<category><![CDATA[AMD]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[Geode]]></category>
		<category><![CDATA[Netzwerk]]></category>
		<category><![CDATA[Sensoren]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wetter]]></category>
		<category><![CDATA[Wetterstation]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=980</guid>
		<description><![CDATA[Nachdem man sich eine 1-wire Wetterstation nach dem Artikel 1-wire Wetterstation (Teil 1: Installation) gebaut und die Daten wie im Artikel 1-wire Wetterstation (Teil 2: Datenbank) beschrieben in einer MySQL Tabelle speichert möchte man die gesammelten Werte natürlich auch angezeigt &#8230; <a href="http://blog.purrucker.de/2011/03/29/1-wire-wetterstation-teil-3-anzeige-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nachdem man sich eine 1-wire Wetterstation nach dem Artikel <a href="http://blog.purrucker.de/2010/03/01/1-wire-wetterstation-teil-1-installation/">1-wire Wetterstation (Teil 1: Installation)</a> gebaut und die Daten wie im Artikel <a href="http://blog.purrucker.de/2011/02/13/1-wire-wetterstation-teil-2-datenbank-2/">1-wire Wetterstation (Teil 2: Datenbank)</a> beschrieben in einer MySQL Tabelle speichert möchte man die gesammelten Werte natürlich auch angezeigt bekommen.</p>
<p>Um möglichst einfach die gemessenen Werte der Wetterstation in einer Webseite anzuzeigen, habe ich die jpgraph verwendet. Diese Software darf für private Zwecke kostenlos verwendet werden. Da sie ansonsten Geld kostet ist sie nicht im Repository zu finden. Man kann sie aber unter der URL http://jpgraph.net/download runterladen. Ich habe mir von dort die aktuelle Version 3.07 geholt und in das Verzeichnis <code>/usr/share/jpgraph3</code> entpackt. Danach benötigt man noch das Paket <code>php5-gd</code>. Diese ist im Repository enthalten und kann mit dem folgenden Befehl installiert werden.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-gd</pre></div></div>

<p>Um aus den gesammelten Wetterdaten eine Grafik mit den Werten des letzten Tages erstellen zu lassen, habe ich das Verzeichnis <code>/var/www/grafiken</code> angelegt und das folgenden PHP-Programm geschrieben, welches die Grafiken aus erzeugt.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//****************************************************************************</span>
<span style="color: #666666; font-style: italic;">//Darstellung von Temperatur und Feuchtigkeit der letzten 24 Stunden als Graph</span>
<span style="color: #666666; font-style: italic;">//14.02.2011 Kristian Purrucker</span>
<span style="color: #666666; font-style: italic;">//****************************************************************************</span>
&nbsp;
<span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/usr/share/jpgraph3/jpgraph.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/usr/share/jpgraph3/jpgraph_line.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/usr/share/jpgraph3/jpgraph_mgraph.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/usr/share/jpgraph3/jpgraph_date.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$DatabaseHost</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DatabaseUser</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;root&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DatabasePassword</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;asdfgh&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Database</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;wetterstation&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Table</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;daten_min&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$fileName</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/var/www/grafiken/graph_daily.png&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Datenbankanbindung</span>
<span style="color: #666666; font-style: italic;">//******************</span>
<span style="color: #000088;">$DatabasePointer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DatabaseHost</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DatabaseUser</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DatabasePassword</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Keine Verbindung moeglich&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Database</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DatabasePointer</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Die Datenbank existiert nicht&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">//Auslesen der letzten 1440 Zeilen (= Tag) aus der Datenbank</span>
<span style="color: #666666; font-style: italic;">//**********************************************************</span>
<span style="color: #000088;">$ResultPointer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT zeitstempel, temp_clara, humidity_clara, temp_simon, humidity_simon FROM <span style="color: #006699; font-weight: bold;">$Table</span> ORDER BY zeitstempel DESC LIMIT 1440&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$temp_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$temp_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$humidity_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$humidity_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Export</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ResultPointer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$Daten</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ResultPointer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #000088;">$temp_clara</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">temp_clara</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$temp_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp_clara_average</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">temp_clara</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$temp_simon</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">temp_simon</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$temp_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp_simon_average</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">temp_simon</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$humidity_clara</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">humidity_clara</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$humidity_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$humidity_clara_average</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">humidity_clara</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$humidity_simon</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">humidity_simon</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$humidity_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$humidity_simon_average</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">humidity_simon</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$xdata</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$Daten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">zeitstempel</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$temp_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp_clara_average</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">1440</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$humidity_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$humidity_clara_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$humidity_clara_average</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">1440</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$temp_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp_simon_average</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">1440</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$humidity_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$humidity_simon_average</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$humidity_simon_average</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">1440</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">//Funktion zur Konvertierung des TimeStamp in Minuten und Sekunden</span>
<span style="color: #666666; font-style: italic;">//****************************************************************</span>
<span style="color: #000000; font-weight: bold;">function</span>  TimeCallback<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$aVal</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">#return Date ('H:i:s d.m Y',$aVal);
</span>    <span style="color: #b1b100;">return</span> <span style="color: #990000;">Date</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'H:i'</span><span style="color: #339933;">,</span><span style="color: #000088;">$aVal</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">//Erzeugung eines Graphen fuer Claras Zimmer</span>
<span style="color: #666666; font-style: italic;">//******************************************</span>
<span style="color: #000088;">$graph</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Graph<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">700</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetScale</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'datint'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetY2Scale</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'int'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_clara</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> LinePlot<span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_clara</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xdata</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_clara</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> LinePlot<span style="color: #009900;">&#40;</span><span style="color: #000088;">$humidity_clara</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xdata</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Grafik Formatieren</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">img</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetMargin</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">50</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#000000&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetMarginColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#333333&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetShadow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Titel</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Claras Zimmer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT2<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">subtitle</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Aktuell: <span style="color: #006699; font-weight: bold;">$temp_clara[0]</span> C / <span style="color: #006699; font-weight: bold;">$humidity_clara[0]</span>%   Durchschnittlich: <span style="color: #006699; font-weight: bold;">$temp_clara_average</span> C / <span style="color: #006699; font-weight: bold;">$humidity_clara_average</span>%&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">subtitle</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Legende</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">legend</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Pos</span><span style="color: #009900;">&#40;</span><span style="color:#800080;">0.50</span><span style="color: #339933;">,</span><span style="color:#800080;">0.95</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;center&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;bottom&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">legend</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLayout</span><span style="color: #009900;">&#40;</span>LEGEND_HOR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">legend</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetShadow</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLegend</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Lufttemperatur (C) &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLegend</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Luftfeuchtigkeit &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//X-Achse</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Zeit&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLabelFormatCallback</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'TimeCallback'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT1<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Y-Achse</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#FF7777&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#1111ee&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Grad Celsius&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;% Luftfeuchtigkeit&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT1<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT1<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Linie 1</span>
<span style="color: #000088;">$lineplot_temp_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#FF8888&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFillColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#EE0000@0.6&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetWeight</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Linie 2</span>
<span style="color: #000088;">$lineplot_humidity_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#8888ff&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFillColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#2222DD@0.6&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_clara</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetWeight</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Die Linien zu der Grafik hinzufügen</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Add</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lineplot_temp_clara</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AddY2</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lineplot_humidity_clara</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Erzeugung eines Graphen fuer Simons Zimmer</span>
<span style="color: #666666; font-style: italic;">//******************************************</span>
<span style="color: #000088;">$graph2</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Graph<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">700</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetScale</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'datint'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetY2Scale</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'int'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_simon</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> LinePlot<span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_simon</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xdata</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_simon</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> LinePlot<span style="color: #009900;">&#40;</span><span style="color: #000088;">$humidity_simon</span><span style="color: #339933;">,</span> <span style="color: #000088;">$xdata</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Grafik Formatieren</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">img</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetMargin</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">50</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#000000&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetMarginColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#333333&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetShadow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Titel</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Simons Zimmer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT2<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">subtitle</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Aktuell: <span style="color: #006699; font-weight: bold;">$temp_simon[0]</span> C / <span style="color: #006699; font-weight: bold;">$humidity_simon[0]</span>%   Durchschnittlich: <span style="color: #006699; font-weight: bold;">$temp_simon_average</span> C / <span style="color: #006699; font-weight: bold;">$humidity_simon_average</span>%&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">subtitle</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Legende</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">legend</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Pos</span><span style="color: #009900;">&#40;</span><span style="color:#800080;">0.50</span><span style="color: #339933;">,</span><span style="color:#800080;">0.95</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;center&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;bottom&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">legend</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLayout</span><span style="color: #009900;">&#40;</span>LEGEND_HOR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">legend</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetShadow</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLegend</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Lufttemperatur (C) &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLegend</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Luftfeuchtigkeit &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//X-Achse</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Zeit&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetLabelFormatCallback</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'TimeCallback'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT1<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Y-Achse</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#FF7777&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#1111ee&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Grad Celsius&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;% Luftfeuchtigkeit&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#CCCCCC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">yaxis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT1<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">y2axis</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFont</span><span style="color: #009900;">&#40;</span>FF_FONT1<span style="color: #339933;">,</span>FS_BOLD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Linie 1</span>
<span style="color: #000088;">$lineplot_temp_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#FF8888&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFillColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#EE0000@0.6&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_temp_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetWeight</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Linie 2</span>
<span style="color: #000088;">$lineplot_humidity_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#8888ff&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetFillColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#2222DD@0.6&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lineplot_humidity_simon</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetWeight</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Die Linien zu der Grafik hinzufügen</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Add</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lineplot_temp_simon</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph2</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AddY2</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lineplot_humidity_simon</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Graphen zusammen bauen</span>
<span style="color: #666666; font-style: italic;">//**********************</span>
<span style="color: #000088;">$mgraph</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MGraph<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">700</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">400</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;auto&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mgraph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SetMargin</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mgraph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Add</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$graph</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mgraph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Add</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$graph2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mgraph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Stroke</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fileName</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Anschließend habe ich zum anzeigen der Grafiken die folgende, einfache HTML-Seite geschrieben und in das Verzeichnis /var/www gelegt.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
   &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Herzlich Willkommen bei preetz.dnsalias.net!&lt;/title&gt;
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
    &lt;link rel=&quot;shortcut icon&quot; href=&quot;/favicon.ico&quot; /&gt;
    &lt;meta name=&quot;robots&quot; content=&quot;noindex&quot; /&gt;
        &lt;style type=&quot;text/css&quot;&gt;&lt;!--
    body {
        color: #444444;
        background-color: #EEEEEE;
        font-family: 'Trebuchet MS', sans-serif;
        font-size: 80%;
    }
    h1 {}
    h2 {
        font-size: 1.2em;
        text-align: center;
    }
    p.center { text-align: center; }
    #page{
        background-color: #FFFFFF;
        width: 60%;
        margin: 24px auto;
        padding: 12px;
    }
    #header{
        padding: 6px ;
        text-align: center;
    }
    .header{ background-color: #997; color: #FFFFFF; }
    #content {
        padding: 4px 0 24px 0;
    }
    #footer {
        color:#666666;
        background: #f9f9f9;
        padding: 10px 20px;
        border-top: 5px #efefef solid;
        font-size: 0.8em;
        text-align: center;
    }
    #footer a {
        color: #999999;
    }
    --&gt;&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div id=&quot;page&quot;&gt;
        &lt;div id=&quot;header&quot; class=&quot;header&quot;&gt;
            &lt;h1&gt;Herzlich Willkommen bei &lt;!--ADRESSE//--&gt;preetz.dnsalias.net!&lt;!--ADRESSE//--&gt;&lt;/h1&gt;
        &lt;/div&gt;
        &lt;div id=&quot;content&quot;&gt;
            &lt;h2&gt;Hier finden Sie die aktuellen Wetterdaten aus Preetz&lt;/h2&gt;
            &lt;p class=&quot;center&quot;&gt;&lt;img src=&quot;grafiken/graph_daily.png&quot; alt=&quot;Daily Graph&quot;&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;div id=&quot;footer&quot;&gt;
            &lt;p&gt;Powered by &lt;a href=&quot;http://www.isilife.de&quot;&gt;Isilife GbR&lt;/a&gt;&lt;/p&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Das Ergebnis sieht dann ungefähr so aus:<br />
<img src="http://blog.purrucker.de/wp-content/uploads/2011/03/wetterstation.jpg" alt="" title="Wetterstation" width="540" height="310" class="aligncenter size-full wp-image-996" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/03/29/1-wire-wetterstation-teil-3-anzeige-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>1-wire Wetterstation (Teil 2: Datenbank)</title>
		<link>http://blog.purrucker.de/2011/02/13/1-wire-wetterstation-teil-2-datenbank-2/</link>
		<comments>http://blog.purrucker.de/2011/02/13/1-wire-wetterstation-teil-2-datenbank-2/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 17:25:04 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[1-wire]]></category>
		<category><![CDATA[Alix]]></category>
		<category><![CDATA[AMD]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[Geode]]></category>
		<category><![CDATA[Netzwerk]]></category>
		<category><![CDATA[Sensoren]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wetter]]></category>
		<category><![CDATA[Wetterstation]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=919</guid>
		<description><![CDATA[Nachdem man sich eine 1-wire Wetterstation nach dem Artikel 1-wire Wetterstation (Teil 1: Installation) gebaut hat, ist es sinnvoll die gesammelten Daten in einer Datenbank zu speichern. Dazu habe ich mir eine MySQL-Datenbank angelegt. mysql -u root -p CREATE DATABASE &#8230; <a href="http://blog.purrucker.de/2011/02/13/1-wire-wetterstation-teil-2-datenbank-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nachdem man sich eine 1-wire Wetterstation nach dem Artikel <a href="http://blog.purrucker.de/2010/03/01/1-wire-wetterstation-teil-1-installation/">1-wire Wetterstation (Teil 1: Installation)</a> gebaut hat, ist es sinnvoll die gesammelten Daten in einer Datenbank zu speichern. Dazu habe ich mir eine MySQL-Datenbank angelegt.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span>
CREATE DATABASE wetterstation;
quit</pre></div></div>

<p>In der Datenbank wird danach noch eine Tabelle für die Werte der 1-wire Sensoren benötigt. Da ich pro Minute einen Wert festhalten will habe ich diese daten_min genannt.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span>
connect wetterstation; 
CREATE TABLE daten_min <span style="color: #7a0874; font-weight: bold;">&#40;</span> 
zeitstempel int UNSIGNED, 
temp_clara FLOAT<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span>,<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> NOT NULL, 
humidity_clara FLOAT<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span>,<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> NOT NULL, 
temp_simon FLOAT<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span>,<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> NOT NULL, 
humidity_simon FLOAT<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span>,<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> NOT NULL, 
PRIMARY KEY <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">`</span>zeitstempel<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
quit</pre></div></div>

<p>Zum Schluss habe ich mir dann noch ein PHP-Programm geschrieben, dass die Werte der Sensoren abfragt und in die Tabelle schreibt. Dieses habe ich in der Datei <code>/usr/local/sbin/datensammeln.php</code> gespeichert.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$DatabaseHost</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DatabaseUser</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;root&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DatabasePassword</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;geheim&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Database</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;wetterstation&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Table</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;daten_min&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Aktuelle UNIX-Zeit abfagen</span>
<span style="color: #990000;">date_default_timezone_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Europe/Berlin&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$zeitstempel</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;U&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// ##### Werte der Sensoren abfragen #####</span>
<span style="color: #666666; font-style: italic;">// Claras Zimmer</span>
<span style="color: #000088;">$temp_clara</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/1wire/26.7ECCCF000000/temperature&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$humidity_clara</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/1wire/26.7ECCCF000000/humidity&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Simons Zimmer</span>
<span style="color: #000088;">$temp_simon</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/1wire/26.A0AECF000000/temperature&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$humidity_simon</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/1wire/26.A0AECF000000/humidity&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// ##### Daten in die Datenbank schreiben #####</span>
<span style="color: #000088;">$DatabasePointer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DatabaseHost</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DatabaseUser</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DatabasePassword</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Keine Verbindung moeglich&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Database</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DatabasePointer</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Die Datenbank existiert nicht&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ResultPointer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO <span style="color: #006699; font-weight: bold;">$Table</span> (
     zeitstempel, temp_clara, humidity_clara, temp_simon, humidity_simon
   ) VALUES (
     '<span style="color: #006699; font-weight: bold;">$zeitstempel</span>', '<span style="color: #006699; font-weight: bold;">$temp_clara</span>', '<span style="color: #006699; font-weight: bold;">$humidity_clara</span>', '<span style="color: #006699; font-weight: bold;">$temp_simon</span>', '<span style="color: #006699; font-weight: bold;">$humidity_simon</span>'
   )&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Damit man php in der Shell laufen lassen kann wird übrigens das Paket php5-cli benötigt. Dieses kann man mit dem folgenden Befehl installieren</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php-cli</pre></div></div>

<p>Zum Schluss habe ich einen Cronjob angelegt, der alle 60 Sekunden das PHP-Script ausführt.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/02/13/1-wire-wetterstation-teil-2-datenbank-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu: WLAN beim booten automatisch starten</title>
		<link>http://blog.purrucker.de/2011/02/13/ubuntu-wlan-beim-booten-automatisch-starten/</link>
		<comments>http://blog.purrucker.de/2011/02/13/ubuntu-wlan-beim-booten-automatisch-starten/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 16:13:01 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Netzwerk]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WLAN]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=930</guid>
		<description><![CDATA[Bei Ubuntu wird das WLAN-Interface normaler Weise über den Networkmanager gestartet. Dies bedeutet, dass man sich mit einem Benutzer an der grafischen Oberfläche anmelden muss, damit sich das WLAN aktiviert. Bei Servern und anderen Gräten ohne grafische Oberfläche möchte man &#8230; <a href="http://blog.purrucker.de/2011/02/13/ubuntu-wlan-beim-booten-automatisch-starten/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Bei Ubuntu wird das WLAN-Interface normaler Weise über den Networkmanager gestartet. Dies bedeutet, dass man sich mit einem Benutzer an der grafischen Oberfläche anmelden muss, damit sich das WLAN aktiviert. Bei Servern und anderen Gräten ohne grafische Oberfläche möchte man aber oft sofort nach dem Booten ein funktionierendes WLAN. In diesem Fall sollte man wpa_supplicant installieren und konfigurieren. Eine Anleitung dazu findet man auf der Webseite <a href="http://wiki.ubuntuusers.de/WLAN/wpa_supplicant">wiki.ubuntuusers.de</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/02/13/ubuntu-wlan-beim-booten-automatisch-starten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alle E-Mails an einen bestimmten Empfänger aus der Postfixqueue löschen</title>
		<link>http://blog.purrucker.de/2010/12/03/alle-e-mails-an-einen-bestimmten-empfanger-aus-der-postfixqueue-loschen/</link>
		<comments>http://blog.purrucker.de/2010/12/03/alle-e-mails-an-einen-bestimmten-empfanger-aus-der-postfixqueue-loschen/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 17:10:26 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=878</guid>
		<description><![CDATA[Wer kennt das nicht? Eine wild gewordene Software verschickt hunderte von E-Mails und die Queue von Postfix ist total verstopft. Abhilfe schafft da ein kleines Skript aus der Manpage von postsuper. Wenn man das folgende Skript ausführt, werden z.B. alle &#8230; <a href="http://blog.purrucker.de/2010/12/03/alle-e-mails-an-einen-bestimmten-empfanger-aus-der-postfixqueue-loschen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer kennt das nicht? Eine wild gewordene Software verschickt hunderte von E-Mails und die Queue von Postfix ist total verstopft. Abhilfe schafft da ein kleines Skript aus der Manpage von postsuper. Wenn man das folgende Skript ausführt, werden z.B. alle E-Mails an den Empfänger <code>tester@test.org</code> gelöscht.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /bin/bash</span>
&nbsp;
mailq <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-n</span> +<span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'^ *('</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span>  <span style="color: #ff0000;">'BEGIN { RS = &quot;&quot; }
 # $7=sender, $8=recipient1, $9=recipient2
 { if ($8 == &quot;tester@test.org&quot; &amp;&amp; $9 == &quot;&quot;)
   print $1 }
'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">'*!'</span> <span style="color: #000000; font-weight: bold;">|</span> postsuper <span style="color: #660033;">-d</span> -</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2010/12/03/alle-e-mails-an-einen-bestimmten-empfanger-aus-der-postfixqueue-loschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

