<?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; Computer &amp; Technik</title>
	<atom:link href="http://blog.purrucker.de/kategorien/computer-technik/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>Erweitern eines Datenträgers unter Windows Server 2003, Windows XP und Windows 2000</title>
		<link>http://blog.purrucker.de/2011/08/29/erweitern-eines-datentragers-unter-windows-server-2003-windows-xp-windows-2000/</link>
		<comments>http://blog.purrucker.de/2011/08/29/erweitern-eines-datentragers-unter-windows-server-2003-windows-xp-windows-2000/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 15:02:46 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Festpatte]]></category>
		<category><![CDATA[Speicher]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=1038</guid>
		<description><![CDATA[Im Gegensatz zu Windows 2008 und Windows 2008R2 ist es bei älteren Windows Versionen nicht möglich Partitionen über die Datenträgerverwaltung zu erweitern. Dies geschieht hier über das Kommandozeilentool diskpart.exe. Wenn man in einer Eingabeaufforderung diskpart.exe eingibt, erscheint eine Shell. In &#8230; <a href="http://blog.purrucker.de/2011/08/29/erweitern-eines-datentragers-unter-windows-server-2003-windows-xp-windows-2000/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Im Gegensatz zu Windows 2008 und Windows 2008R2 ist es bei älteren Windows Versionen nicht möglich Partitionen über die Datenträgerverwaltung zu erweitern. Dies geschieht hier über das Kommandozeilentool <strong>diskpart.exe</strong>. Wenn man in einer Eingabeaufforderung <code>diskpart.exe</code> eingibt, erscheint eine Shell. In dieser kann man sich mit dem Befehl <code>list volume</code> eine Liste der Datenträger anzeigen lassen. Wenn man den richtigen identifiziert hat, kann man diesen mit <code>select volume <Datenträgernummer></code> auswählen und mit <code>extend [size=n] [disk=n] [noerr]</code> vergrößern. Dabei ist zu beachten, dass das Vergrößern nur funktioniert, wenn die Auslagerungsdatei nicht auf dem Datenträger liegt und das Betriebssystem nicht von dort gestartet wurde.</p>
<p>Nähere Informationen findet man bei Microsoft auf der Webseite unter dem folgenden Link: <a href="http://support.microsoft.com/kb/325590/de">http://support.microsoft.com/kb/325590/de</a>.</p>
<p>Oft möchte man aber bei einem älteren Windows 2003 Server eben genau die C-Partition mit dem Betriebssystem vergrößern, weil diese durch die ganzen Sicherheitsupdates inzwischen überläuft. Dank dem Blog <a href="http://blog.root1024.ch/software/systempartition-c-in-windows-server-2003-online-vergrossern/">root1024</a> habe ich dafür das Kommandozeilentool <a href="http://support.dell.com/support/downloads/download.aspx?c=us&#038;cs=19&#038;l=en&#038;s=dhs&#038;releaseid=R64398&#038;formatcnt=2&#038;fileid=83929">expart.exe</a> von Dell entdeckt. Dieses Tool kann Systempartition (und natürlich auch andere Partitionen) einfach online (ohne Neustart) erweitern.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/08/29/erweitern-eines-datentragers-unter-windows-server-2003-windows-xp-windows-2000/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>Linux: Austausch einer defekten Festplatte im Software-RAID</title>
		<link>http://blog.purrucker.de/2011/06/01/linux-austausch-einer-defekten-festplatte-im-software-raid/</link>
		<comments>http://blog.purrucker.de/2011/06/01/linux-austausch-einer-defekten-festplatte-im-software-raid/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 21:40:53 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Festpatte]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Speicher]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=1014</guid>
		<description><![CDATA[Der Status des Software RAID (Redundant Array of Independent Disks) wird bei Linux in der Datei /proc/mdstat festgehalten. Man kann sich den Status eines RAID also mit folgenden Befehl anzeigen lassen: cat /proc/mdstat Wenn z.B. die Festplatte /dev/sdb defekt ist, &#8230; <a href="http://blog.purrucker.de/2011/06/01/linux-austausch-einer-defekten-festplatte-im-software-raid/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Der Status des <a href="http://de.wikipedia.org/wiki/RAID#Software-RAID">Software RAID</a> (Redundant Array of Independent Disks) wird bei Linux in der Datei /proc/mdstat festgehalten. Man kann sich den Status eines RAID also mit folgenden Befehl anzeigen lassen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>mdstat</pre></div></div>

<p>Wenn z.B. die Festplatte /dev/sdb defekt ist, könnte die Ausgabe von wie folgt aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Personalities : <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid0<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid1<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid6<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid5<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid4<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid10<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>linear<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>multipath<span style="color: #7a0874; font-weight: bold;">&#93;</span>
md2 : active raid1 sdb3<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>F<span style="color: #7a0874; font-weight: bold;">&#41;</span> sda3<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000;">730202368</span> blocks <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>U_<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
md1 : active raid1 sda2<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> sdb2<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>F<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">264960</span> blocks <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>U_<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
md0 : active raid1 sdb1<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>F<span style="color: #7a0874; font-weight: bold;">&#41;</span> sda1<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000;">2102464</span> blocks <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>U_<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Details über die einzelnen RAID Devices kann man sich mit dem Befehl mdadm anzeigen lassen. Wenn man die Details von md1 sehen möchte gibt man also den folgenden Befehl ein:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mdadm <span style="color: #660033;">--detail</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md0</pre></div></div>

<p>Bevor eine neue Festplatte verbaut wird, sollte jetzt zunächst die defekte Festplatte aus dem RAID entfernt werden.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mdadm <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md0 <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1
mdadm <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1 <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb2
mdadm <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2 <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb3</pre></div></div>

<p>Unter Umständen kann es sein, dass eine verwendete Festplatte teilweise defekt ist und sich nicht alle Devices im Status [U_] befinden, sondern einige Devices im Status [UU] sind. In diesem Fall schlägt der Befehl fehl, da das device in Ordnung ist. In diesem Fall müssen vorher die intakten Devices mit dem Befehl mdadm als defekt markiert werden. Wenn in unserem Beispiel das Device md1 noch intakt wäre, könnte man dies mit dem folgenden Befehl erreichen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mdadm <span style="color: #660033;">--manage</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1 <span style="color: #660033;">--fail</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb2</pre></div></div>

<p>Danach kann die neue Festplatte verbaut werden. Wenn dies geschehen ist können Partitionierung und Bootsektor von der intakten Festplatte mit dem Befehl dd kopiert werden. Das kopieren der Partitionstabelle mit dd funktioniert nicht für extended-Partitionen, diese müssen von Hand angelegt werden. Da in unserem Beispiel keine extended-Partitionen vorkommen, könnte man mit dem folgenden Befehl Partitionierung und Bootsektor auf die neue Festplatte kopieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span></pre></div></div>

<p>Die Partitionstabelle muss nun vom Kernel neu eingelesen werden.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sfdisk <span style="color: #660033;">-R</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb</pre></div></div>

<p>Zum Schluss müssen die Partitionen der neuen Festplatte noch in das RAID eingebunden werden:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mdadm <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md0 <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1
mdadm <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1 <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb2
mdadm <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2 <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb3</pre></div></div>

<p>Die neue Partitionen sind somit Teil des Arrays und werden nun synchronisiert. Dieser Vorgang kann je nach Größe eine ganze Weile dauern. Mittels cat /proc/mdstat kann der Status der Synchronisation aufgerufen werden.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Personalities : <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid0<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid1<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid6<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid5<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid4<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>raid10<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>linear<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>multipath<span style="color: #7a0874; font-weight: bold;">&#93;</span> 
md2 : active raid1 sdb3<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> sda3<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
      <span style="color: #000000;">730202368</span> blocks <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>U_<span style="color: #7a0874; font-weight: bold;">&#93;</span>
      <span style="color: #7a0874; font-weight: bold;">&#91;</span>==<span style="color: #000000; font-weight: bold;">&gt;</span>..................<span style="color: #7a0874; font-weight: bold;">&#93;</span>  recovery = <span style="color: #000000;">11.7</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">85713024</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">730202368</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">finish</span>=143.8min <span style="color: #007800;">speed</span>=74694K<span style="color: #000000; font-weight: bold;">/</span>sec
&nbsp;
md0 : active raid1 sdb1<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> sda1<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
      <span style="color: #000000;">2102464</span> blocks <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>U_<span style="color: #7a0874; font-weight: bold;">&#93;</span>
        <span style="color: #007800;">resync</span>=DELAYED
&nbsp;
md1 : active raid1 sdb2<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> sda2<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
      <span style="color: #000000;">264960</span> blocks <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>UU<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
unused devices: <span style="color: #000000; font-weight: bold;">&lt;</span>none<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/06/01/linux-austausch-einer-defekten-festplatte-im-software-raid/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>Grafikkartentreiber für VMware-Gäste bei Windows 2008R2</title>
		<link>http://blog.purrucker.de/2011/03/07/grafikkartentreiber-fur-vmware-gaste-bei-windows-2008r2/</link>
		<comments>http://blog.purrucker.de/2011/03/07/grafikkartentreiber-fur-vmware-gaste-bei-windows-2008r2/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 22:50:16 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008R2]]></category>
		<category><![CDATA[Grafikkarte]]></category>
		<category><![CDATA[Treiber]]></category>
		<category><![CDATA[VM-Ware]]></category>
		<category><![CDATA[VMware-Tools]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=972</guid>
		<description><![CDATA[Bei älteren Windows Versionen wurde bei der Installation der VMware-Tools automatisch ein spezieller Grafikkartentreiber aktiviert. Dieser sorgt dafür das die Maus nicht mehr so nachzieht. Bei Windows 2008R2 wird dieser zwar noch in das Verzeichnis C:\Program Files\Common Files\VMware\Drivers\wddm_video kopiert, aber &#8230; <a href="http://blog.purrucker.de/2011/03/07/grafikkartentreiber-fur-vmware-gaste-bei-windows-2008r2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Bei älteren Windows Versionen wurde bei der Installation der VMware-Tools automatisch ein spezieller Grafikkartentreiber aktiviert. Dieser sorgt dafür das die Maus nicht mehr so nachzieht. Bei Windows 2008R2 wird dieser zwar noch in das Verzeichnis <code>C:\Program Files\Common Files\VMware\Drivers\wddm_video</code> kopiert, aber nicht mehr installiert und aktiviert. Man sollte bei Windows 2008R2 Servern also darauf achten, dass man diesen Treiber hinterher von Hand installiert und aktiviert.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2011/03/07/grafikkartentreiber-fur-vmware-gaste-bei-windows-2008r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

