<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hallo,<br>
    <br>
    Ich hab das Push mal rausgenommen.<br>
    <br>
    Die VZlogger.conf sieht jetzt so aus:<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="moz-txt-link-freetext" href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a><br>
     *<br>
     * For an online configuration editor refer to:<br>
     * <a class="moz-txt-link-freetext" href="http://volkszaehler.github.io/vzlogger/">http://volkszaehler.github.io/vzlogger/</a><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="moz-txt-link-freetext" href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a><br>
     *<br>
     * For an online configuration editor refer to:<br>
     * <a class="moz-txt-link-freetext" href="http://volkszaehler.github.io/vzlogger/">http://volkszaehler.github.io/vzlogger/</a><br>
     */<br>
    {<br>
      "retry": 30,<br>
      "daemon": false,<br>
      "verbosity": 15,<br>
      "log": "/var/log/vzlogger.log",<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": "9e4f6cd0-6ceb-11e8-a32d-a760ed2d2855",      
    /*Zählerstand Bezug ZRZ-Zähler*/<br>
              "identifier": "1-0:1.8.0*255",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.php"</a>,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            },<br>
            {<br>
              "api": "volkszaehler",<br>
              "uuid": "b8609090-6ceb-11e8-8570-c5baf91c7608",      
    /*Zählerstand Liefer ZRZ-Zähler*/<br>
              "identifier": "1-0:2.8.0*255",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.php"</a>,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            },<br>
            {<br>
              "api": "volkszaehler",<br>
              "uuid": "d7adb0a0-6ceb-11e8-875f-a5316ade1ece",      
    /*Wirkleistung ZR-Zähler*/<br>
              "identifier": "1-0:16.7.0*255",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.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": 0,<br>
          "aggtime": 0,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "api": "volkszaehler",<br>
              "uuid": "74946580-6ceb-11e8-9209-319341c461c1",      
    /*Zählerstand PV-Zähler*/<br>
              "identifier": "1-0:2.8.0*255",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.php"</a>,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            },<br>
            {<br>
              "api": "volkszaehler",<br>
              "uuid": "4a779f70-6ceb-11e8-9235-f561c70ea983",      
    /*Wirkleistung PV-Zähler*/<br>
              "identifier": "1-0:16.7.0*255",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.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>
    Im Anhang nochmals das Log.<br>
    Ist das jetzt so ok?<br>
    <br>
    <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<br>
      <br>
    </b>ist das ein Problem? <br>
    <br>
    <br>
    An den udev-rules arbeite ich später....<br>
    <br>
    <br>
    <br>
    Gruß<br>
    <br>
    Thomas<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 10.06.2018 um 22:57 schrieb Frank
      Richter:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD+U_OBRmKNY5rsvdOM=qG7WeU3WmeeUpqMDeee2=Xuxi-51KA@mail.gmail.com">
      <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"
            moz-do-not-send="true">Heine.thomas@online.de</a> <<a
            href="mailto:Heine.thomas@online.de" 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_8572846878162649670moz-txt-link-freetext"
href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration"
              target="_blank" rel="noreferrer" moz-do-not-send="true">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a><br>
             *<br>
             * For an online configuration editor refer to:<br>
             * <a class="m_8572846878162649670moz-txt-link-freetext"
              href="http://volkszaehler.github.io/vzlogger/"
              target="_blank" rel="noreferrer" moz-do-not-send="true">http://volkszaehler.github.io/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_8572846878162649670moz-txt-link-rfc2396E"
              href="http://localhost/middleware.php" target="_blank"
              rel="noreferrer" moz-do-not-send="true">"http://localhost/middleware.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_8572846878162649670moz-txt-link-rfc2396E"
              href="http://localhost/middleware.php" target="_blank"
              rel="noreferrer" moz-do-not-send="true">"http://localhost/middleware.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_8572846878162649670moz-txt-link-rfc2396E"
              href="http://localhost/middleware.php" target="_blank"
              rel="noreferrer" moz-do-not-send="true">"http://localhost/middleware.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_8572846878162649670moz-txt-link-rfc2396E"
              href="http://localhost/middleware.php" target="_blank"
              rel="noreferrer" moz-do-not-send="true">"http://localhost/middleware.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_8572846878162649670moz-txt-link-rfc2396E"
              href="http://localhost/middleware.php" target="_blank"
              rel="noreferrer" moz-do-not-send="true">"http://localhost/middleware.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_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"
                    target="_blank" rel="noreferrer"
                    moz-do-not-send="true">Heine.thomas@online.de</a>
                  <<a href="mailto:Heine.thomas@online.de"
                    target="_blank" rel="noreferrer"
                    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.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.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.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.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.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.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>
  </body>
</html>