<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hab jetzt die Leseköpfe nochmals ausgerichtet.<br>
    Die Warning und errors sind jetzt nicht mehr drin.<br>
    <br>
    Ich habe aber das Gefühl, dass ettliche Telegramme verloren gehen.<br>
    und ab und zu habe ich unplausible einträge:<br>
    <br>
    <img src="cid:part1.84980562.A9ECE1BA@online.de" alt=""><br>
    <br>
    hab mal ein Log angehängt.<br>
    Der Fehler ist hier zu sehen (Chn2):<br>
    <br>
    [Jun 17 07:59:11][chn2] [Jun 17 07:59:11][chn1] compare:
    1529215149000 1529215151000<br>
    CURL: Sent '[ [ 1529215151000, 32183602.200000003 ] ]' bytes<br>
    <br>
    und hier:<br>
    [Jun 17 07:59:47][chn2] CURL: Sent '[ [ 1529215187000,
    -31525.275569949074 ] ]' bytes<br>
    [Jun 17 07:59:47][chn2] CURL: upload completely sent off: 42 out of
    42 bytes<br>
    <br>
    <br>
    Was läuft hier falsch?<br>
    <br>
    <br>
    Hab mal die Config auch noch in den Anhang gestellt.<br>
    <br>
    <br>
    <br>
    Gruß<br>
    <br>
    Thomas<br>
    <br>
    <div class="moz-cite-prefix">Am 11.06.2018 um 14:02 schrieb Frank
      Richter:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD+U_OCSuFq6TJv6XuTSB2upLh5d96YTP8Cp98qhwW=pCdP7PA@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">Am 11. Juni 2018 um 12:15 schrieb <a
              href="mailto:Heine.thomas@online.de"
              moz-do-not-send="true">Heine.thomas@online.de</a> <span
              dir="ltr"><<a href="mailto:Heine.thomas@online.de"
                target="_blank" moz-do-not-send="true">Heine.thomas@online.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"><br>
                Wenn ich "sudo vzlogger" starte, dann kann ich öfters
                folgendes lesen (siehe Auch Anhang vzlogger.txt:<br>
                <b>libsml: warning: could not read the whole file<br>
                </b>und<b><br>
                  libsml: error: unrecognized sequence</b></div>
            </blockquote>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"><b> <br>
                </b>ist das ein Problem? <br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>
              <span
style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Normal
                ist das nicht. Hat du mal versucht, die Ausrichtung der
                Leseköpfe zu optimieren?</span></div>
            <div><br>
            </div>
            <div>Für normalen Betrieb:</div>
            <div><br>
            </div>
            <div>daemon: true</div>
            <div>verbosity: 0</div>
            <div>local: verwendest du das tatsächlich?</div>
            <div>aggtime/aggmode: würde Sinn machen, wenn die neue
              SD-Karte länger halten soll</div>
            <div><br>
            </div>
            <div>Gruß</div>
            <div>Frank</div>
            <div> </div>
            <div><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div>
                  <div class="h5">
                    <div class="m_-758981331785310230moz-cite-prefix">Am
                      10.06.2018 um 22:57 schrieb Frank Richter:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="auto">Hi,
                        <div dir="auto"><br>
                        </div>
                        <div dir="auto">die Fehler kommen von der
                          fehlenden Push-URL. Wenn du das nicht
                          verwendest, am besten den ganzen Push-Block
                          löschen oder auskommentieren.</div>
                        <div dir="auto">Und wie schon heute Nachmittag
                          geschrieben: udev-rule anlegen, damit die
                          Zuordnung der Leseköpfe fixiert ist.</div>
                        <div dir="auto"><br>
                        </div>
                        <div dir="auto">Grüße</div>
                        <div dir="auto">Frank</div>
                      </div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr"><a
                            href="mailto:Heine.thomas@online.de"
                            target="_blank" moz-do-not-send="true">Heine.thomas@online.de</a>
                          <<a href="mailto:Heine.thomas@online.de"
                            target="_blank" moz-do-not-send="true">Heine.thomas@online.de</a>>
                          schrieb am So., 10. Juni 2018, 22:48:<br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> Hallo,<br>
                            <br>
                            Hab alles nochmals aufgesetzt. Bekomme jetzt
                            zwar gültige Werte,<br>
                            Irgendetwas passt jedoch nicht.<br>
                            <br>
                            Hier nochmals die neue VZlogger.conf:<br>
                            <br>
                            <br>
                            /**<br>
                             * vzlogger configuration<br>
                             *<br>
                             * Use properly encoded JSON with javascript
                            comments<br>
                             *<br>
                             * Take a look at the wiki for detailed
                            information:<br>
                             * <a
                              class="m_-758981331785310230m_8572846878162649670moz-txt-link-freetext"
href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">http://wiki.volkszaehler.org/<wbr>software/controller/vzlogger#<wbr>configuration</a><br>
                             *<br>
                             * For an online configuration editor refer
                            to:<br>
                             * <a
                              class="m_-758981331785310230m_8572846878162649670moz-txt-link-freetext"
href="http://volkszaehler.github.io/vzlogger/" rel="noreferrer"
                              target="_blank" moz-do-not-send="true">http://volkszaehler.github.io/<wbr>vzlogger/</a><br>
                             */<br>
                            {<br>
                              "retry": 30,<br>
                              "daemon": false,<br>
                              "verbosity": 5,<br>
                              "log": "/var/log/vzlogger.log",<br>
                              "push": [<br>
                                {<br>
                                  "url": ""<br>
                                }<br>
                              ],<br>
                              "local": {<br>
                                "enabled": true,<br>
                                "port": 8080,<br>
                                "index": false,<br>
                                "timeout": 30,<br>
                                "buffer": 600<br>
                              },<br>
                              "meters": [<br>
                                {<br>
                                  "enabled": true,<br>
                                  "allowskip": false,<br>
                                  "interval": 0,<br>
                                  "aggtime": 0,<br>
                                  "aggfixedinterval": false,<br>
                                  "channels": [<br>
                                    {<br>
                                      "api": "volkszaehler",<br>
                                      "uuid": "xxxx",    /*Zählerstand
                            Bezug ZRZ-Zähler*/<br>
                                      "identifier": "1-0:1.8.0*255",<br>
                                      "middleware": <a
                              class="m_-758981331785310230m_8572846878162649670moz-txt-link-rfc2396E"
                              href="http://localhost/middleware.php"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">"http://localhost/middleware.<wbr>php"</a>,<br>
                                      "aggmode": "none",<br>
                                      "duplicates": 0<br>
                                    },<br>
                                    {<br>
                                      "api": "volkszaehler",<br>
                                      "uuid": "xxxx",    /*Zählerstand
                            Liefer ZRZ-Zähler*/<br>
                                      "identifier": "1-0:2.8.0*255",<br>
                                      "middleware": <a
                              class="m_-758981331785310230m_8572846878162649670moz-txt-link-rfc2396E"
                              href="http://localhost/middleware.php"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">"http://localhost/middleware.<wbr>php"</a>,<br>
                                      "aggmode": "none",<br>
                                      "duplicates": 0<br>
                                    },<br>
                                    {<br>
                                      "api": "volkszaehler",<br>
                                      "uuid": "xxxx",    /*Wirkleistung
                            ZR-Zähler*/<br>
                                      "identifier": "1-0:16.7.0*255",<br>
                                      "middleware": <a
                              class="m_-758981331785310230m_8572846878162649670moz-txt-link-rfc2396E"
                              href="http://localhost/middleware.php"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">"http://localhost/middleware.<wbr>php"</a>,<br>
                                      "aggmode": "none",<br>
                                      "duplicates": 0<br>
                                    }<br>
                                  ],<br>
                                  "protocol": "sml",<br>
                                  "device": "/dev/ttyUSB1",<br>
                                  "pullseq": "",<br>
                                  "baudrate": 9600,<br>
                                  "parity": "8n1",<br>
                                  "use_local_time": false<br>
                                },<br>
                                {<br>
                                  "enabled": true,<br>
                                  "allowskip": false,<br>
                                  "interval": 0,<br>
                                  "aggtime": 0,<br>
                                  "aggfixedinterval": false,<br>
                                  "channels": [<br>
                                    {<br>
                                      "api": "volkszaehler",<br>
                                      "uuid": "xxxx",    /*Zählerstand
                            PV-Zähler*/<br>
                                      "identifier": "1-0:2.8.0*255",<br>
                                      "middleware": <a
                              class="m_-758981331785310230m_8572846878162649670moz-txt-link-rfc2396E"
                              href="http://localhost/middleware.php"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">"http://localhost/middleware.<wbr>php"</a>,<br>
                                      "aggmode": "none",<br>
                                      "duplicates": 0<br>
                                    },<br>
                                    {<br>
                                      "api": "volkszaehler",<br>
                                      "uuid": "xxxx",    /*Wirkleistung
                            PV-Zähler*/<br>
                                      "identifier": "1-0:16.7.0*255",<br>
                                      "middleware": <a
                              class="m_-758981331785310230m_8572846878162649670moz-txt-link-rfc2396E"
                              href="http://localhost/middleware.php"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">"http://localhost/middleware.<wbr>php"</a>,<br>
                                      "aggmode": "none",<br>
                                      "duplicates": 0<br>
                                    }<br>
                                  ],<br>
                                  "protocol": "sml",<br>
                                  "device": "/dev/ttyUSB0",<br>
                                  "pullseq": "",<br>
                                  "baudrate": 9600,<br>
                                  "parity": "8n1",<br>
                                  "use_local_time": false<br>
                                }<br>
                              ]<br>
                            }<br>
                            <br>
                            <br>
                            <br>
                            Das Ergebnis aus dem log im Anhang.<br>
                            <br>
                            Weiß jemand Hilfe? Hab mich strikt ans
                            How-To gehalten....<br>
                            <br>
                            <br>
                            Gruß<br>
                            <br>
                            Thomas<br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <div
                              class="m_-758981331785310230m_8572846878162649670moz-cite-prefix">Am
                              10.06.2018 um 15:04 schrieb Frank Richter:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="auto">Hi Thomas,
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">bei zwei Leseköpfen
                                  solltest du Aliase mittels udev-Regel
                                  anlegen, sonst ist die Zuordnung nicht
                                  eindeutig.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">Mit daemon: false läuft
                                  vzlogger nicht dauerhaft und sendet
                                  nichts zur Middleware. Aber bevor du
                                  das auf true setzt, versuch mal
                                  vzlogger manuell zu starten (ohne
                                  systemctl direkt über die
                                  Kommandozeile). Dann solltest du sehen
                                  können, wo es in der vzlogger.conf
                                  hakt.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">Grüße</div>
                                <div dir="auto">Frank</div>
                              </div>
                              <br>
                              <div class="gmail_quote">
                                <div dir="ltr"><a
                                    href="mailto:Heine.thomas@online.de"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">Heine.thomas@online.de</a>
                                  <<a
                                    href="mailto:Heine.thomas@online.de"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">Heine.thomas@online.de</a>>
                                  schrieb am So., 10. Juni 2018, 14:50:<br>
                                </div>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">Hallo,<br>
                                  <br>
                                  hab mein Systm nach SD-Card-Crash auf
                                  das Aktuelle Image neu aufgesetzt.<br>
                                  Ich habe 2 USB-Leseköpfe an dem RPI3
                                  angeschlossen.<br>
                                  (2 SML-Meter)<br>
                                  Schnittstelleneinstellung und
                                  Obis-Code habe ich aus der alten <br>
                                  VZLogger.conf übernommen.<br>
                                  <br>
                                  <br>
                                  Die Aktuelle sieht so aus:<br>
                                  <br>
                                  {<br>
                                     "retry": 0,<br>
                                     "daemon": false,<br>
                                     "verbosity": 15,<br>
                                     "log": "/var/log/vzlogger.log",<br>
                                     "push": [],<br>
                                     "local": {<br>
                                       "enabled": false,<br>
                                       "port": 8080,<br>
                                       "index": false,<br>
                                       "timeout": 30,<br>
                                       "buffer": 600<br>
                                     },<br>
                                     "meters": [<br>
                                       {<br>
                                         "enabled": true,<br>
                                         "allowskip": false,<br>
                                         "interval": 1,<br>
                                         "aggtime": 1,<br>
                                         "aggfixedinterval": false,<br>
                                         "channels": [<br>
                                           {<br>
                                             "api": "volkszaehler",<br>
                                             "uuid": "xxxxx",<br>
                                             "identifier":
                                  "1-0:1.8.0*255",<br>
                                             "middleware": "<a
                                    href="http://localhost/middleware.php"
                                    rel="noreferrer noreferrer
                                    noreferrer" target="_blank"
                                    moz-do-not-send="true">http://localhost/middleware.<wbr>php</a>",<br>
                                             "aggmode": "none",<br>
                                             "duplicates": 2<br>
                                           },<br>
                                           {<br>
                                             "api": "volkszaehler",<br>
                                             "uuid": "xxxxx",<br>
                                             "identifier":
                                  "1-0:2.8.0*255",<br>
                                             "middleware": "<a
                                    href="http://localhost/middleware.php"
                                    rel="noreferrer noreferrer
                                    noreferrer" target="_blank"
                                    moz-do-not-send="true">http://localhost/middleware.<wbr>php</a>",<br>
                                             "aggmode": "none",<br>
                                             "duplicates": 2<br>
                                           },<br>
                                           {<br>
                                             "api": "volkszaehler",<br>
                                             "uuid": "xxxxx",<br>
                                             "identifier":
                                  "1-0:16.7.0*255",<br>
                                             "middleware": "<a
                                    href="http://localhost/middleware.php"
                                    rel="noreferrer noreferrer
                                    noreferrer" target="_blank"
                                    moz-do-not-send="true">http://localhost/middleware.<wbr>php</a>",<br>
                                             "aggmode": "none",<br>
                                             "duplicates": 0<br>
                                           }<br>
                                         ],<br>
                                         "protocol": "sml",<br>
                                         "device": "/dev/ttyUSB0",<br>
                                         "pullseq": "",<br>
                                         "baudrate": 9600,<br>
                                         "parity": "8n1",<br>
                                         "use_local_time": false<br>
                                       },<br>
                                       {<br>
                                         "enabled": true,<br>
                                         "allowskip": false,<br>
                                         "interval": -1,<br>
                                         "aggtime": -1,<br>
                                         "aggfixedinterval": false,<br>
                                         "channels": [<br>
                                           {<br>
                                             "api": "volkszaehler",<br>
                                             "uuid": "xxxxx",<br>
                                             "identifier":
                                  "1-0:2.8.0*255",<br>
                                             "middleware": "<a
                                    href="http://localhost/middleware.php"
                                    rel="noreferrer noreferrer
                                    noreferrer" target="_blank"
                                    moz-do-not-send="true">http://localhost/middleware.<wbr>php</a>",<br>
                                             "aggmode": "none",<br>
                                             "duplicates": 2<br>
                                           },<br>
                                           {<br>
                                             "api": "volkszaehler",<br>
                                             "uuid": "xxxxx",<br>
                                             "identifier":
                                  "1-0:16.7.0*255",<br>
                                             "middleware": "<a
                                    href="http://localhost/middleware.php"
                                    rel="noreferrer noreferrer
                                    noreferrer" target="_blank"
                                    moz-do-not-send="true">http://localhost/middleware.<wbr>php</a>",<br>
                                             "aggmode": "none",<br>
                                             "duplicates": 0<br>
                                           }<br>
                                         ],<br>
                                         "protocol": "sml",<br>
                                         "device": "/dev/ttyUSB1",<br>
                                         "pullseq": "",<br>
                                         "baudrate": 9600,<br>
                                         "parity": "8n1",<br>
                                         "use_local_time": false<br>
                                       }<br>
                                     ]<br>
                                  }<br>
                                  <br>
                                  <br>
                                  <br>
                                  Hab die UUID´s ausgeXXt.<br>
                                  <br>
                                  <br>
                                  Bei Aufruf von<br>
                                  pi@raspberrypi:~ $ systemctl status
                                  vzlogger<br>
                                  ● vzlogger.service - vzlogger<br>
                                      Loaded: loaded
                                  (/etc/systemd/system/vzlogger.<wbr>service;
                                  enabled; <br>
                                  vendor preset: enabled)<br>
                                      Active: inactive (dead)<br>
                                  <br>
                                  In der Log-Datei
                                  (/var/log/vzlogger.log) steht nichts
                                  drin.<br>
                                  <br>
                                  Wenn ich den Befehl aufrufe:<br>
                                  pi@raspberrypi:~ $ sudo systemctl
                                  start vzlogger<br>
                                  <br>
                                  bleibt der Cursor in der Zeile
                                  darunter hängen, bis ich den Aufruf
                                  mit <br>
                                  "Untbr" abbreche.<br>
                                  Danach steht auch nichts im Log-File.<br>
                                  <br>
                                  In der Datenbank werden keine Werte
                                  eingetragen.<br>
                                  <br>
                                  Was mache ich falsch?<br>
                                  <br>
                                  Danke vorab für die Hilfe<br>
                                  <br>
                                  Gruß<br>
                                  <br>
                                  Thomas<br>
                                  <br>
                                  <br>
                                </blockquote>
                              </div>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>