<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body 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="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": 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="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": "xxxx",    /*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": "xxxx",    /*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/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="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": "xxxx",    /*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/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="moz-cite-prefix">Am 10.06.2018 um 15:04 schrieb Frank
      Richter:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD+U_ODiOnF3C5swbyi5WpUMt8GLxatqEGr=DPshjtHsVG1n9g@mail.gmail.com">
      <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"
            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, 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" 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" 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" 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" 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" 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>
  </body>
</html>