<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Original-Nachricht --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Betreff:
            </th>
            <td>Re: [vz-users] Anfängerfrage zum IR Kopf von Udo
              (Ersteinrichtung)</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Datum: </th>
            <td>Wed, 09 Apr 2014 22:38:05 +0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Von: </th>
            <td>Hansi <a class="moz-txt-link-rfc2396E" href="mailto:hansi@hdhuh.de"><hansi@hdhuh.de></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">An: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:norman@lefherz.de">norman@lefherz.de</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hi,<br>
      <br>
      wenn du rauszooms werden nicht mehr so viele Werte aus der
      Datenbank für die Grafikerzeugung verwendet, deshalb isst die
      Linie dann Glatter.<br>
      <br>
      Strom und Gas kannst du gleichzeitig anzeigen, die Skalierung der
      Y-Achse passt sich aber automatisch an, du hast Gaswerte bis
      150000 da sieht man die Stromwerte von 400 nicht mehr so genau.<br>
      Vermutlich hattest du aber beim Gas noch keine Auflösung
      Eingestellt, so dass 150000 Impulse der Spitzenwert ist.<br>
      Bei einer Auflösung von 1000 (1IMP=0,001m&sup3;) entspricht das 150 m&sup3;<br>
      <br>
      Zur Konfiguration des Gaszählers:<br>
      <br>
      Da ich selbst keinen S0 Zähler habe, kann ich dich hier nur auf
      das wiki verweisen.<br>
      <br>
      Es existiert eine Aussage das der vzlogger bei Udos Pi Erweiterung
      nicht benötigt wird, diese wurde aber von Udo rewidiert siehe<br>
      <br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://wiki.volkszaehler.org/howto/raspberry_pi_image">http://wiki.volkszaehler.org/howto/raspberry_pi_image</a><br>
      <br>
      <br>
      Eine Beispiel Konfiguration findest du hier:<br>
      <br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://wiki.volkszaehler.org/software/controller/vzlogger">http://wiki.volkszaehler.org/software/controller/vzlogger</a><br>
      <br>
      da ist ein S0 Beispieleintrag aus der vzlogger.conf<br>
      <br>
      <pre class="code javascript"><span class="br0">{</span>
        <span class="st0">"enabled"</span> <span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span>
        <span class="st0">"protocol"</span> <span class="sy0">:</span> <span class="st0">"s0"</span><span class="sy0">,</span>
        <span class="st0">"device"</span> <span class="sy0">:</span> <span class="st0">"/dev/ttyUSB0"</span><span class="sy0">,</span>
        <span class="st0">"resolution"</span> <span class="sy0">:</span> <span class="nu0">1000</span><span class="sy0">,</span> <span class="co2">/* number of impulses per kWh, feature of the meter */</span>
        <span class="st0">"aggtime"</span> <span class="sy0">:</span> <span class="nu0">300</span><span class="sy0">,</span> <span class="co2">/* aggregate all signals and give one update to middleware every 'aggtime' seconds */</span>
        <span class="st0">"aggfixedinterval"</span> <span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span> <span class="co2">/* round all timestamps to middleware to nearest aggtime */</span>
        <span class="st0">"channel"</span> <span class="sy0">:</span> <span class="br0">{</span>
                <span class="st0">"uuid"</span> <span class="sy0">:</span> <span class="st0">"d495a390-f747-11e0-b3ca-f7890e45c7b2"</span><span class="sy0">,</span>
                <span class="st0">"middleware"</span> <span class="sy0">:</span> <span class="st0"><a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://demo.volkszaehler.org/middleware.php">"http://demo.volkszaehler.org/middleware.php"</a></span><span class="sy0">,</span>
                <span class="st0">"identifier"</span><span class="sy0">:</span> <span class="st0">"Impulse"</span><span class="sy0">,</span> <span class="co2">/* counts the S0 impulses. Can also supply "Power" readings */</span>
                <span class="st0">"aggmode"</span> <span class="sy0">:</span> <span class="st0">"SUM"</span> <span class="co2">/* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/</span>
                <span class="br0">}</span></pre>
      <br>
      was beim device in deinem Fall eingetragen werden muss, kann ich
      dir leider nicht sagen, für die uuid musst du deinen Wert
      b9077720-be97-11e3-adc9-25a87dd5138a eintragen<br>
      <br>
      Gute Nacht<br>
      <br>
      Gruß Hansi<br>
      <br>
      <br>
      <br>
      <br>
      <div class="moz-cite-prefix">Am 09.04.2014 22:04, schrieb Norman
        Lefherz:<br>
      </div>
      <blockquote
cite="mid:CABeUqCeeLHF67bEpEHk9yTcrNGu0JBVqhiBzPknSozZCW3-a7Q@mail.gmail.com"
        type="cite">
        <div dir="ltr">Hi,
          <div><br>
          </div>
          <div>erledigt!</div>
          <div><br>
          </div>
          <div>Die Änderung hat es schon geglättet. Wenn ich jedoch
            rauszoome ist die Linie total flach. Vermutlich wegen dem
            Gaszähler mit S0 Impulsen (zum Test per Drahtbrücke) oder
            sollte man Strom und Gas nicht gleichzeitig anzeigen?</div>
          <div><br>
          </div>
          <div>Als Screenshot die aktuelle Einstellung vom Stromzähler
            dabei! Der Momentanverbrauch von gut 400W kommt hin!</div>
          <div>Stromzähler: 10000Imp/KWH</div>
          <div>Gaszähler: 1IMP=0,001m3</div>
          <div><br>
          </div>
          <div> <img src="cid:part4.03060400.00080809@hdhuh.de"
              alt="Inline-Bild 1" width="693" height="554"><br>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">Am 9. April 2014 21:46 schrieb Hansi
            <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:hansi@hdhuh.de" target="_blank">hansi@hdhuh.de</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"> Hallo Norman,<br>
                <br>
                zu1. das passt soweit<br>
                zu2. gut<br>
                <br>
                zu3. Dein Zähler sendet die Werte in sehr kurzen
                Abständen ca. 2- 3 sek, deshalb entstehen die Sprünge
                beim Runden.<br>
                        Abhilfe: Speichern der Werte in der Datenbank
                z.B. 1x pro Minute<br>
                        füge der vzlogger.conf die Farbig markierten
                Einträge zu<br>
                    !!! Komma hinter der Zeile "identifier" nicht
                vergessen !!!!
                <div class=""><br>
                  <br>
                  <div><font face="Courier New, Courier, monospace">"meters"

                      : [</font></div>
                  <div><font face="Courier New, Courier, monospace">   
                          {</font></div>
                  <div><font face="Courier New, Courier, monospace">   
                                                "enabled" : true,      
                      /* disabled meters will be ignored */</font></div>
                  <font face="Courier New, Courier, monospace"> </font>
                  <div><font face="Courier New, Courier, monospace">   
                                                "protocol" : "d0",    
                      /* see 'vzlogger -h' for list of available proto$
                      */</font></div>
                  <div><font face="Courier New, Courier, monospace">   
                                                "device" :
                      "/dev/ttyAMA0",</font></div>
                  <font face="Courier New, Courier, monospace"> </font>
                  <div><font face="Courier New, Courier, monospace">   
                                                "parity" : "7E1",</font></div>
                </div>
                <div><font face="Courier New, Courier, monospace">     
                                            "baudrate" : 9600,<br>
                  </font>
                  <div class=""><big><tt>                              </tt></big><tt><big><font
                          color="#ff6600"><span>"aggtime"</span> <span>:</span>
                          <span>180</span><span>,</span> <span>    /*
                            aggregate all signals and give one update to
                            middleware every 'aggtime' seconds */</span></font></big>
                      <br>
                    </tt></div>
                  <tt>
                    <div class=""><big><span>                        
                               <font color="#ff6600">"aggfixedinterval"</font></span><font
                          color="#ff6600"> <span>:</span> <span>false</span><span>,</span> 
                                  </font><font color="#33ff33"><font
                            color="#ff6600"><span>/* round all
                              timestamps to middleware to nearest
                              aggtime */</span>    </font> </font><br>
                      </big></div>
                     </tt><font face="Courier New, Courier, monospace"> 
                                               "channels": [{</font></div>
                <div class="">
                  <div><font face="Courier New, Courier, monospace">   
                                                              "uuid" :
                      "07ca0d20-bf4f-11e3-bc03-f1d1071cc5dd",</font></div>
                  <font face="Courier New, Courier, monospace"> </font>
                  <div><font face="Courier New, Courier, monospace">   
                                                             
                      "middleware" : "<a moz-do-not-send="true"
                        href="http://localhost/middleware.php"
                        target="_blank">http://localhost/middleware.php</a>",</font></div>
                </div>
                <div><font face="Courier New, Courier, monospace">     
                                                          "identifier" :
                    "1-0:1.8.0*255"<font color="#ff6600">,</font> /*
                    Gesamtstromverbrauch$ */<br>
                  </font>
                  <div class=""><font color="#ff6600"><big>             
                                                                       
                                                  <tt><span>"aggmode"</span>
                          <span>:</span> <span>"MAX"</span> <span>  /*
                            add all s0 intervals in the aggregation.
                            Possible Modes: SUM, AVG, MAXIMUM and NONE*/</span>
                        </tt><tt>        <br>
                        </tt></big></font><br>
                  </div>
                </div>
                <font face="Courier New, Courier, monospace"> </font>
                <div><font face="Courier New, Courier, monospace">     
                                                       }]</font></div>
                <div><font face="Courier New, Courier, monospace"><br>
                  </font></div>
                <div><font face="Courier New, Courier, monospace">     
                      } // meter</font></div>
                <br>
                Wenn dasFunktioniert, machen wir mit dem Gaßzähler
                weiter, wieviele Pulse gibt dieser pro m&sup3; aus?<br>
                <br>
                <br>
                Gruß Hansi<br>
                <br>
                <br>
                <div>Am 09.04.2014 21:25, schrieb Norman Lefherz:<br>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">
                      <div dir="ltr">Hallo Hansi,
                        <div><br>
                        </div>
                        <div>TEILERFOLG:</div>
                        <div><br>
                        </div>
                        <div>1. Habe ich die vzlogger gekürzt und ein
                          paar m.E. passende Klammern gesetzt</div>
                        <div>2.vzlogger startet jetzt</div>
                        <div>3. Im Frontend sehe ich einen Graphen, der
                          aber immer zwischen 0W und ca. 878W springt </div>
                        <div>4. in vzclient get channel stehen jetzt
                          beide Zähler drin - siehe unten</div>
                        <div><br>
                        </div>
                        <div>Problem: </div>
                        <div><b>seitdem ist mein S0 Logger nicht mehr
                            aktiv</b> obwohl er in der Channellist
                          steht. Habe ich in der vzlogger zu viel
                          geschnitten?</div>
                        <div>Frage: Welche Auflösung ist eigentlich
                          korrekt??</div>
                        <div>Frage: Habe ich vielleicht den Verweis auf
                          meinen S0 logger gelöscht?</div>
                        <div><br>
                        </div>
                        <div>Hier die Config Dateien komplett:</div>
                        <div><br>
                        </div>
                        <div>
                          <div><font color="#ff0000">pi@raspberrypi ~ $
                              sudo vzlogger</font></div>
                          <div>[Apr 09 21:15:21][mtr0] Creating new
                            meter with protocol d0.</div>
                          <div>[Apr 09 21:15:21][mtr0] Meter configured.
                            enabled</div>
                          <div>[Apr 09 21:15:21]       New meter
                            initialized (protocol=d0)</div>
                          <div>[Apr 09 21:15:21]       Configure
                            channel.</div>
                          <div>[Apr 09 21:15:21][chn0] New channel
                            initialized (uuid=...1cc5dd
                            protocol=volkszaehler id=1-0:1.8.0*255)</div>
                          <div>[Apr 09 21:15:21]       Have 1 meters.</div>
                          <div>[Apr 09 21:15:21][main] foreground=0,
                            daemon=1, local=1</div>
                          <div>[Apr 09 21:15:21]       Daemonize
                            process...</div>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>vzlogger Config komplett:</div>
                        <div>/**<br>
                        </div>
                        <div>
                          <div> * vzlogger configuration</div>
                          <div> *</div>
                          <div> * use proper encoded JSON with
                            javascript comments</div>
                          <div> *</div>
                          <div> * take a look at the wiki for detailed
                            information:</div>
                          <div> * <a moz-do-not-send="true"
href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration"
                              target="_blank">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a></div>
                          <div> */</div>
                          <div><br>
                          </div>
                          <div>{</div>
                          <div>"retry" : 30,                   /* how
                            long to sleep between failed requests, in
                            seconds */</div>
                          <div>"daemon": true,         /* run
                            periodically */</div>
                          <div> //"foreground" : true,          /* dont
                            run in background (prevents forking) */</div>
                          <div>"verbosity" : 500,              /*
                            between 0 and 15 */</div>
                          <div>"log" : "/var/log/vzlogger.log",/* path
                            to logfile, optional */</div>
                          <div><br>
                          </div>
                          <div>"local" : {</div>
                          <div>//      "enabled" : false,      /* should
                            we start the local HTTPd for serving live
                            readings? */</div>
                          <div>        "port" : 8080,          /* the
                            TCP port for the local HTTPd */</div>
                          <div>        "index" : true,         /* should
                            we provide a index listing of available
                            channels if no UUID was requested? */</div>
                          <div>        "timeout" : 30,         /*
                            timeout for long polling comet requests, 0
                            disables comet, in seconds */</div>
                          <div>        "buffer" : 600          /* how
                            long to buffer readings for the local
                            interface, in seconds */</div>
                          <div>},</div>
                          <div><br>
                          </div>
                          <div>"meters" : [</div>
                          <div>        {</div>
                          <div>                              "enabled" :
                            true,       /* disabled meters will be
                            ignored */</div>
                          <div>                              "protocol"
                            : "d0",     /* see 'vzlogger -h' for list of
                            available proto$ */</div>
                          <div>                              "device" :
                            "/dev/ttyAMA0",</div>
                          <div>                              "parity" :
                            "7E1",</div>
                          <div>                              "baudrate"
                            : 9600,</div>
                          <div>                              "channels":
                            [{</div>
                          <div>                                         
                              "uuid" :
                            "07ca0d20-bf4f-11e3-bc03-f1d1071cc5dd",</div>
                          <div>                                         
                              "middleware" : "<a moz-do-not-send="true"
                              href="http://localhost/middleware.php"
                              target="_blank">http://localhost/middleware.php</a>",</div>
                          <div>                                         
                              "identifier" : "1-0:1.8.0*255" /*
                            Gesamtstromverbrauch$ */</div>
                          <div>                                       
                             }]</div>
                          <div><br>
                          </div>
                          <div>        } // meter</div>
                          <div>]} // end of config</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div><span
                              style="background-color:rgb(255,0,0)">und
                              die rc.local</span></div>
                          <div><br>
                          </div>
                          <div>
                            <div>#!/bin/sh -e</div>
                            <div>#</div>
                            <div># rc.local</div>
                            <div>#</div>
                            <div># This script is executed at the end of
                              each multiuser runlevel.</div>
                            <div># Make sure that the script will "exit
                              0" on success or any other</div>
                            <div># value on error.</div>
                            <div>#</div>
                            <div># In order to enable or disable this
                              script just change the execution</div>
                            <div># bits.</div>
                            <div>#</div>
                            <div># By default this script does nothing.</div>
                            <div><br>
                            </div>
                            <div># Print the IP address</div>
                            <div>_IP=$(hostname -I) || true</div>
                            <div>if [ "$_IP" ]; then</div>
                            <div>  printf "My IP address is %s\n" "$_IP"</div>
                            <div>fi</div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000"># Hier hat sich Norman
                                probiert</font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000"><br>
                              </font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000"># stty -F /dev/ttyAMA0
1:0:800008ad:0:0:0:0:0:0:5:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0</font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000"><br>
                              </font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000">sudo killall vzlogger</font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000">#sudo  vzlogger -f</font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000">sudo vzlogger</font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000"><br>
                              </font></div>
                            <div><font
                                style="background-color:rgb(243,243,243)"
                                color="#ff0000"># Ende Norman
                                probiererei</font></div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div>export LOG=/var/log/rc.local.log</div>
                            <div><br>
                            </div>
                            <div># Part of S0/Impulse to Volkszaehler
                              'RaspberryPI deamon'</div>
                            <div><br>
                            </div>
                            <div>#for i in 17 18 22 23 24 27</div>
                            <div>for i in 17 18 22 23 24 10</div>
                            <div>do</div>
                            <div>  echo init gpio $i</div>
                            <div>  echo init gpio $i >>$LOG</div>
                            <div>  echo $i > /sys/class/gpio/export
                              2>>$LOG && echo "in" >
                              /sys/class/gpio/gpio$i/direction
                              2>>$LOG && echo "rising"
                              > /sys/class/gpio/gpio$i/edge
                              2>>$LOG</div>
                            <div>done</div>
                            <div><br>
                            </div>
                            <div>## Test fÃ&frac14;r RGr - just ignore</div>
                            <div>#for i in 24 10 9</div>
                            <div>#do</div>
                            <div>#  echo $i > /sys/class/gpio/export
                              && echo "in" >
                              /sys/class/gpio/gpio$i/direction
                              && echo "falling" >
                              /sys/class/gpio/gpio$i/edge</div>
                            <div>#done</div>
                            <div><br>
                            </div>
                            <div>##for extension with Relais</div>
                            <div>#for i in 11 8 7</div>
                            <div>#do</div>
                            <div>#  echo init gpio $i</div>
                            <div>#  echo $i > /sys/class/gpio/export</div>
                          </div>
                          <div>
                            <div>#  echo init gpio $i</div>
                            <div>#  echo $i > /sys/class/gpio/export</div>
                            <div>#  echo "out" >
                              /sys/class/gpio/gpio$i/direction</div>
                            <div>#  chmod -R a+w /sys/class/gpio/gpio$1/</div>
                            <div>#done</div>
                            <div><br>
                            </div>
                            <div># Part of DS2482 I2C 1-Wire Master to
                              Volkszaehler 'RaspberryPI daemon'.</div>
                            <div><br>
                            </div>
                            <div>#echo init Raspberry Rev1</div>
                            <div>#echo init Raspberry Rev1 >>$LOG</div>
                            <div>#echo ds2482 0x18 >
                              /sys/bus/i2c/devices/i2c-0/new_device</div>
                            <div>#echo ds2482 0x19 >
                              /sys/bus/i2c/devices/i2c-0/new_device</div>
                            <div>#echo ds2482 0x1a >
                              /sys/bus/i2c/devices/i2c-0/new_device</div>
                            <div><br>
                            </div>
                            <div>echo init Raspberry Rev2</div>
                            <div>echo init Raspberry Rev2 >>$LOG</div>
                            <div>echo ds2482 0x18 >
                              /sys/bus/i2c/devices/i2c-1/new_device
                              2>$LOG</div>
                            <div>#echo ds2482 0x19 >
                              /sys/bus/i2c/devices/i2c-1/new_device
                              2>$LOG</div>
                            <div>#echo ds2482 0x1a >
                              /sys/bus/i2c/devices/i2c-1/new_device
                              2>$LOG</div>
                            <div><br>
                            </div>
                            <div>echo owfs</div>
                            <div>echo owfs >>$LOG</div>
                            <div>owfs >>$LOG 2>>$LOG</div>
                            <div><br>
                            </div>
                            <div>echo $(date) - durchgelaufen
                              >>$LOG</div>
                            <div>echo $(date)
                              >>/tmp/rc.local-durchgelaufen</div>
                            <div>exit 0</div>
                            <div><br>
                            </div>
                            <div>
                              <div><b><font color="#ff0000">pi@raspberrypi

                                    ~ $ vzclient get channel</font></b></div>
                              <div>{"version":"0.3","channels":[{"uuid":"a301d8d0-903b-1234-94bb-d943d061b6a8","type":"power","active":true,"color":"#9966ff","description":"Dieser


                                Kanal wird durch vzlogger mit
                                Zufallszahlen
                                gef\u00fcllt.","public":true,"resolution":2000,"style":"steps","title":"S0-Demo-Zufallszahlen"},{"uuid":"62243aa0-b202-11e3-b5ad-8dd7c83dba09","type":"power","active":true,"color":"aqua","description":"erster


                                S0-Eingang der von s0vz abgefragt
wird.","public":true,"resolution":2000,"style":"steps","title":"S0-0"},{"uuid":"b9077720-be97-11e3-adc9-25a87dd5138a","type":"gas","active":true,"color":"aqua","fillstyle":0,"public":true,"resolution":10000,"style":"lines","title":<font
style="background-color:rgb(243,243,243)" color="#ff0000">"Gastest</font>"},{"uuid":"07ca0d20-bf4f-11e3-bc03-f1d1071cc5dd","type":"electric
meter","active":true,"color":"#ff0033","fillstyle":0,"public":true,"resolution":1,"style":"lines","title":"<font
                                  color="#ff0000">NormanStrom2</font>"}]}</div>
                            </div>
                            <div><br>
                            </div>
                            <div>Meine Beiden Zähler findet er hier:
                              NormanStrom2 und Gastest</div>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">Am 8. April 2014 22:29
                          schrieb Hansi <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:hansi@hdhuh.de"
                              target="_blank">hansi@hdhuh.de</a>></span>:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div text="#000000" bgcolor="#FFFFFF"> Hallo
                              Norman,<br>
                              <br>
                              was passiert wenn du in der Konsole
                              folgendes eingibst.<br>
                              <br>
                              <font face="Courier New, Courier,
                                monospace">killall vzlogger<br>
                                <br>
                                vzlogger -f<br>
                              </font><br>
                              <br>
                              Gruß Hansi<br>
                              <br>
                              <br>
                              <br>
                              <div>Am 08.04.2014 22:09, schrieb Norman
                                Lefherz:<br>
                              </div>
                              <div>
                                <div>
                                  <blockquote type="cite">
                                    <div dir="ltr">Hallo Hansi,
                                      <div><br>
                                      </div>
                                      <div>das habe ich schon so
                                        gemacht. Scheinbar läuft mein
                                        vzlogger überhaupt nicht. Hier
                                        die ganze rc.local</div>
                                      <div><br>
                                      </div>
                                      <div>Danke</div>
                                      <div>
                                        <div dir="ltr"
                                          style="font-family:arial,sans-serif;font-size:13px">
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div>
                                            <div>#!/bin/sh -e</div>
                                            <div>#</div>
                                            <div># rc.local</div>
                                            <div>#</div>
                                            <div># This script is
                                              executed at the end of
                                              each multiuser runlevel.</div>
                                            <div># Make sure that the
                                              script will "exit 0" on
                                              success or any other</div>
                                            <div># value on error.</div>
                                            <div>#</div>
                                            <div># In order to enable or
                                              disable this script just
                                              change the execution</div>
                                            <div># bits.</div>
                                            <div>#</div>
                                            <div># By default this
                                              script does nothing.</div>
                                            <div><br>
                                            </div>
                                            <div># Print the IP address</div>
                                            <div>_IP=$(hostname -I) ||
                                              true</div>
                                            <div>if [ "$_IP" ]; then</div>
                                            <div>  printf "My IP address
                                              is %s\n" "$_IP"</div>
                                            <div>fi</div>
                                            <div><br>
                                            </div>
                                            <div><br>
                                            </div>
                                            <div><br>
                                            </div>
                                            <div>export
                                              LOG=/var/log/rc.local.log</div>
                                            <div><br>
                                            </div>
                                            <div># Part of S0/Impulse to
                                              Volkszaehler 'RaspberryPI
                                              deamon'</div>
                                            <div><br>
                                            </div>
                                            <div>#for i in 17 18 22 23
                                              24 27</div>
                                            <div>for i in 17 18 22 23 24
                                              10</div>
                                            <div>do</div>
                                            <div>  echo init gpio $i</div>
                                            <div>  echo init gpio $i
                                              >>$LOG</div>
                                            <div>  echo $i >
                                              /sys/class/gpio/export
                                              2>>$LOG &&
                                              echo "in" >
                                              /sys/class/gpio/gpio$i/direction
                                              2>>$LOG &&
                                              echo "rising" >
                                              /sys/class/gpio/gpio$i/edge
                                              2>>$LOG</div>
                                            <div>done</div>
                                            <div><br>
                                            </div>
                                            <div>## Test fÃ&frac14;r RGr - just
                                              ignore</div>
                                            <div>#for i in 24 10 9</div>
                                            <div>#do</div>
                                            <div>#  echo $i >
                                              /sys/class/gpio/export
                                              && echo "in" >
                                              /sys/class/gpio/gpio$i/direction

                                              && echo "falling"
                                              >
                                              /sys/class/gpio/gpio$i/edge</div>
                                            <div>#done</div>
                                            <div><br>
                                            </div>
                                            <div>##for extension with
                                              Relais</div>
                                            <div>#for i in 11 8 7</div>
                                            <div>#do</div>
                                            <div>#  echo init gpio $i</div>
                                            <div>#  echo $i >
                                              /sys/class/gpio/export</div>
                                            <div>#  echo "out" >
                                              /sys/class/gpio/gpio$i/direction</div>
                                            <div>#  chmod -R a+w
                                              /sys/class/gpio/gpio$1/</div>
                                            <div>#done</div>
                                            <div><br>
                                            </div>
                                            <div># Part of DS2482 I2C
                                              1-Wire Master to
                                              Volkszaehler 'RaspberryPI
                                              daemon'.</div>
                                            <div><br>
                                            </div>
                                            <div>#echo init Raspberry
                                              Rev1</div>
                                            <div>#echo init Raspberry
                                              Rev1 >>$LOG</div>
                                            <div>#echo ds2482 0x18 >
/sys/bus/i2c/devices/i2c-0/new_device</div>
                                            <div>#echo ds2482 0x19 >
/sys/bus/i2c/devices/i2c-0/new_device</div>
                                          </div>
                                          <div>
                                            <div>#echo ds2482 0x18 >
/sys/bus/i2c/devices/i2c-0/new_device</div>
                                            <div>#echo ds2482 0x19 >
/sys/bus/i2c/devices/i2c-0/new_device</div>
                                            <div>#echo ds2482 0x1a >
/sys/bus/i2c/devices/i2c-0/new_device</div>
                                            <div><br>
                                            </div>
                                            <div>echo init Raspberry
                                              Rev2</div>
                                            <div>echo init Raspberry
                                              Rev2 >>$LOG</div>
                                            <div>echo ds2482 0x18 >
                                              /sys/bus/i2c/devices/i2c-1/new_device
                                              2>$LOG</div>
                                            <div>#echo ds2482 0x19 >
                                              /sys/bus/i2c/devices/i2c-1/new_device

                                              2>$LOG</div>
                                            <div>#echo ds2482 0x1a >
                                              /sys/bus/i2c/devices/i2c-1/new_device

                                              2>$LOG</div>
                                            <div><br>
                                            </div>
                                            <div>echo owfs</div>
                                            <div>echo owfs >>$LOG</div>
                                            <div>owfs >>$LOG
                                              2>>$LOG</div>
                                            <div><br>
                                            </div>
                                            <div>echo $(date) -
                                              durchgelaufen >>$LOG</div>
                                            <div>echo $(date)
                                              >>/tmp/rc.local-durchgelaufen</div>
                                            <div>exit 0</div>
                                            <div><br>
                                            </div>
                                            <div><br>
                                            </div>
                                          </div>
                                        </div>
                                        <div class="gmail_extra"
                                          style="font-family:arial,sans-serif;font-size:13px"><br>
                                        </div>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                    </div>
                                    <div class="gmail_extra"><br>
                                      <br>
                                      <div class="gmail_quote">Am 8.
                                        April 2014 21:58 schrieb Hansi <span
                                          dir="ltr"><<a
                                            moz-do-not-send="true"
                                            href="mailto:hansi@hdhuh.de"
                                            target="_blank">hansi@hdhuh.de</a>></span>:<br>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          <div text="#000000"
                                            bgcolor="#FFFFFF"> Hallo
                                            Norman,<br>
                                            <br>
                                            die Daten, die du empfängst
                                            sehen nach D0 Protokoll aus.
                                            (S0 sind Pulse).<br>
                                            <br>
                                            Leg dir im Frontend einen
                                            Kanal als El.Energie
                                            (Zählerstände an).<br>
                                            <br>
                                            Der Eintrag in deiner
                                            vzlogger.conf könnte dann
                                            folgendermaßen aussehen<br>
                                            <br>
                                            <tt>"meters" : [{</tt><tt><br>
                                            </tt><tt>    "enabled" :
                                              true,</tt><tt><br>
                                            </tt><tt>    "protocol" :
                                              "d0",</tt><tt><br>
                                            </tt><tt>    "device" : "</tt><tt><font
                                                face="Courier New">/dev/ttyAMA0</font>",</tt><tt><br>
                                            </tt><tt>    </tt><tt><font
                                                color="#33cc00"><font
                                                  color="#000000">"parity"

                                                  : "7e1",</font><br>
                                                   <font color="#000000">
                                                  "baudrate" : 9600,</font></font><br>
                                            </tt><tt> </tt><tt>    </tt><tt><span>"aggtime"</span>
                                              <span>:</span> <span>180</span><span>,</span>
                                              <span>                   
                                                <font color="#33ff33">/*
                                                  aggregate all signals
                                                  and give one update to
                                                  middleware every
                                                  'aggtime' seconds */</font></span>
                                              <span><br>
                                                    "aggfixedinterval"</span>
                                              <span>:</span> <span>false</span><span>,</span> 
                                                      <font
                                                color="#33ff33"><span>/*
                                                  round all timestamps
                                                  to middleware to
                                                  nearest aggtime */</span>
                                                    </font><br>
                                                  "channel" : {</tt><tt><br>
                                            </tt><tt>        "uuid" :
                                              "11111111-aaaa-2222-bbbb-333333333333",</tt><tt><br>
                                            </tt><tt>       
                                              "middleware" : <a
                                                moz-do-not-send="true"
                                                href="http://localhost/middleware.php"
                                                target="_blank">"http://localhost/middleware.php"</a>,</tt><tt><br>
                                            </tt><tt>       
                                              "identifier" : "</tt><tt>1-0:1.8.0*255", 

                                              <font color="#33ff33">/*
                                                Wirkleistung */</font></tt><tt><br>
                                            </tt>                <tt><span>"aggmode"</span>
                                              <span>:</span> <span>"MAX"</span>
                                              <span>               <font
                                                  color="#33ff33">/* add
                                                  all s0 intervals in
                                                  the aggregation.
                                                  Possible Modes: SUM,
                                                  AVG, MAXIMUM and
                                                  NONE*/</font></span><font
                                                color="#33ff33"> </font></tt><tt><font
                                                color="#33ff33">       </font>
                                              <br>
                                                      } // channel</tt><tt><br>
                                            </tt><tt>        }] //
                                              meters</tt><tt><br>
                                            </tt><br>
                                            <br>
                                            Gruß Hansi<br>
                                            <br>
                                            <br>
                                            <br>
                                            <br>
                                            <div>Am 08.04.2014 21:29,
                                              schrieb Norman Lefherz:<br>
                                            </div>
                                            <div>
                                              <div>
                                                <blockquote type="cite">
                                                  <div dir="ltr">achja...mein

                                                    S0 Zähler an der
                                                    Gasuhr geht!</div>
                                                  <div
                                                    class="gmail_extra"><br>
                                                    <br>
                                                    <div
                                                      class="gmail_quote">Am

                                                      8. April 2014
                                                      21:11 schrieb
                                                      Hansi <span
                                                        dir="ltr"><<a
moz-do-not-send="true" href="mailto:hansi@hdhuh.de" target="_blank">hansi@hdhuh.de</a>></span>:<br>
                                                      <blockquote
                                                        class="gmail_quote"
                                                        style="margin:0
                                                        0 0
                                                        .8ex;border-left:1px
                                                        #ccc
                                                        solid;padding-left:1ex">
                                                        <div
                                                          text="#000000"
bgcolor="#FFFFFF"> Hallo Norman,<br>
                                                          <br>
                                                          wie sehen die
                                                          Daten aus, die
                                                          du mit <span
style="line-height:19.200000762939453px;text-align:justify;font-size:13px;white-space:pre-wrap;background-color:rgb(247,249,250);font-family:monospace,serif">xxd





                                                          </dev/ttyAMA0

                                                          </span>
                                                          empfängst?<br>
                                                          Kannst du sie
                                                          mal hierhin
                                                          mailen?<br>
                                                          <br>
                                                          Gruß Hansi<br>
                                                          <br>
                                                          <br>
                                                          <div>Am
                                                          07.04.2014
                                                          23:40, schrieb
                                                          Norman
                                                          Lefherz:<br>
                                                          </div>
                                                          <div>
                                                          <div>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">Guten


                                                          abend,
                                                          <div><br>
                                                          </div>
                                                          <div>nach
                                                          langer Suche
                                                          für eine gute
                                                          Auswertung von
                                                          verschiedenen
                                                          S0 Zählern
                                                          (Einzelzähler
                                                          Strom+Gas) und
                                                          meinem
                                                          Hauptzähler
                                                          Easymeter Q3D
                                                          bin ich beim
                                                          Volkszähler
                                                          gelandet:</div>
                                                          <div> <br>
                                                          </div>
                                                          <div>Ich
                                                          arbeite mit
                                                          folgender
                                                          Ausstattung:</div>
                                                          <div>Raspberry
                                                          Pie mit der
                                                          Erweiterung
                                                          von Udo</div>
                                                          <div>S0
                                                          Zähler </div>
                                                          <div>IR Kopf
                                                          (nicht USB)
                                                          von Udo direkt
                                                          an der
                                                          Erweiterung </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Ich habe
                                                          alle Schritte
                                                          der Anleitung
                                                          befolgt:</div>
                                                          <div>Der
                                                          S0-Zähler
                                                          plottet
                                                          mittlerweile
                                                          Daten in der
                                                          Übersicht, was
                                                          ja wohl dafür
                                                          spricht, dass
                                                          ich alles
                                                          befolgt habe.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Der IR
                                                          Lesekopf
                                                          empfängt jede
                                                          Menge Daten
                                                          mit dem
                                                          Befehl: <span
style="line-height:19.200000762939453px;text-align:justify;font-size:13px;white-space:pre-wrap;background-color:rgb(247,249,250);font-family:monospace,serif">xxd
</dev/ttyAMA0</span></div>
                                                          <div><span
style="line-height:19.200000762939453px;text-align:justify;font-size:13px;white-space:pre-wrap;background-color:rgb(247,249,250);font-family:monospace,serif"><br>
                                                          </span></div>
                                                          <div
                                                          style="text-align:justify">
                                                          <font
                                                          face="monospace,
                                                          serif"
                                                          color="#000000"><span
style="line-height:19.200000762939453px;white-space:pre-wrap;background-color:rgb(247,249,250)">Ich





                                                          bekomme jedoch
                                                          nicht die
                                                          Verbindung
                                                          Zustande:</span></font></div>
                                                          <div
                                                          style="text-align:justify">
                                                          <font
                                                          face="monospace,
                                                          serif"
                                                          color="#000000"><span
style="line-height:19.200000762939453px;white-space:pre-wrap;background-color:rgb(247,249,250)">1.





                                                          Ich lege den
                                                          Zähler im
                                                          Frontend an
                                                          (was ist
                                                          richtig??
                                                          Zählerstände
                                                          oder
                                                          Leistungswerte?)</span></font></div>
                                                          <div
                                                          style="text-align:justify"><font
                                                          face="monospace,


                                                          serif"
                                                          color="#000000"><span
style="line-height:19.200000762939453px;white-space:pre-wrap;background-color:rgb(247,249,250)">2.





                                                          Wo in aller
                                                          Welt trage ich
                                                          denn und vor
                                                          allem wie
                                                          trage ich die
                                                          UUID denn ein.
                                                          vzlogger soll
                                                          ich ja bei
                                                          diesem Kopf
                                                          nicht
                                                          benutzen. Da
                                                          ich noch
                                                          absoluter
                                                          Neuling bin,
                                                          muss ich mir
                                                          hier alles
                                                          zusammenkopieren
                                                          </span></font></div>
                                                          <div
                                                          style="text-align:justify"><font
                                                          face="monospace,


                                                          serif"
                                                          color="#000000"><span
style="line-height:19.200000762939453px;white-space:pre-wrap;background-color:rgb(247,249,250)"><br>
                                                          </span></font></div>
                                                          <div
                                                          style="text-align:justify">
                                                          <font
                                                          face="monospace,
                                                          serif"
                                                          color="#000000"><span
style="line-height:19.200000762939453px;white-space:pre-wrap;background-color:rgb(247,249,250)">Vielen





                                                          Dank für die
                                                          Hilfe!!!</span></font></div>
                                                          <div
                                                          style="text-align:justify">
                                                          <font
                                                          face="monospace,
                                                          serif"
                                                          color="#000000"><span
style="line-height:19.200000762939453px;white-space:pre-wrap;background-color:rgb(247,249,250)"><br>
                                                          </span></font></div>
                                                          <div
                                                          style="text-align:justify"><font
                                                          face="monospace,


                                                          serif"
                                                          color="#000000"><span
style="line-height:19.200000762939453px;white-space:pre-wrap;background-color:rgb(247,249,250)">Norman</span></font></div>
                                                          <div><br>
                                                          </div>
                                                          <div><br
                                                          clear="all">
                                                          <div><br>
                                                          </div>
                                                          -- <br>
                                                          <div><span></span> </div>
                                                          <div><span></span> </div>
                                                          <div><span>Ich
                                                          bitte um
                                                          Verständis für
                                                          die Kürze der
                                                          Nachricht, da
                                                          diese von
                                                          unterwegs
                                                          versendet
                                                          wurde.</span></div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </blockquote>
                                                    </div>
                                                    <br>
                                                    <br clear="all">
                                                    <div><br>
                                                    </div>
                                                    -- <br>
                                                    <div><span></span> </div>
                                                    <div><span></span> </div>
                                                    <div><span>Ich bitte
                                                        um Verständis
                                                        für die Kürze
                                                        der Nachricht,
                                                        da diese von
                                                        unterwegs
                                                        versendet wurde.</span></div>
                                                  </div>
                                                </blockquote>
                                                <br>
                                              </div>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <br>
                                      <br clear="all">
                                      <div><br>
                                      </div>
                                      -- <br>
                                      <div><span></span> </div>
                                      <div><span></span> </div>
                                      <div><span>Ich bitte um Verständis
                                          für die Kürze der Nachricht,
                                          da diese von unterwegs
                                          versendet wurde.</span></div>
                                    </div>
                                  </blockquote>
                                  <br>
                                </div>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                        <br>
                        <br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        <div><span></span> </div>
                        <div><span></span> </div>
                        <div><span>Ich bitte um Verständis für die Kürze
                            der Nachricht, da diese von unterwegs
                            versendet wurde.</span></div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div><span></span> </div>
          <div><span></span> </div>
          <div><span>Ich bitte um Verständis für die Kürze der
              Nachricht, da diese von unterwegs versendet wurde.</span></div>
        </div>
      </blockquote>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>