<div dir="ltr">Symlink hatte ich bereits angelegt. Die werden aber in der vzlogger.conf trotzdem über ttyUSB0 und ttyUSB1 angesprochen, oder über die Symlinks lesekopf0 und lesekopf1?<div><br></div><div>Gruß Jörg</div></div><div class="gmail_extra"><br><div class="gmail_quote">Am 16. Januar 2017 um 11:05 schrieb Jörg Hildering <span dir="ltr"><<a href="mailto:joerghildering@gmail.com" target="_blank">joerghildering@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">







<p class="m_-3247535757325407767gmail-p1"><span class="m_-3247535757325407767gmail-s1">Hallo,</span></p>
<p class="m_-3247535757325407767gmail-p2"><span class="m_-3247535757325407767gmail-s1"></span><br></p>
<p class="m_-3247535757325407767gmail-p1"><span class="m_-3247535757325407767gmail-s1">ich beschäftige mich gerade mit dem gleichen Projekt (Zähler). Wie müsste die vzlogger.conf aussehen wenn ich 2 Zähler (ttyUSB0 & ttyUSB1) auslesen möchte? Mir ist nicht ganz klar wie die Verschachtelung (Klammern etc.) dann aussehen muss.</span></p><p class="m_-3247535757325407767gmail-p1">Bisher sieht sie vzlogger.conf so aus:</p><p class="m_-3247535757325407767gmail-p1">{</p><p class="m_-3247535757325407767gmail-p1">  "retry": 0,</p><p class="m_-3247535757325407767gmail-p1">  "daemon": true,</p><p class="m_-3247535757325407767gmail-p1">  "verbosity": 15,</p><p class="m_-3247535757325407767gmail-p1">  "log": "/var/log/vzlogger.log",</p><p class="m_-3247535757325407767gmail-p1">  "local": {</p><p class="m_-3247535757325407767gmail-p1">    "enabled": false,</p><p class="m_-3247535757325407767gmail-p1">    "port": 8080,</p><p class="m_-3247535757325407767gmail-p1">    "index": true,</p><p class="m_-3247535757325407767gmail-p1">    "timeout": 0,</p><p class="m_-3247535757325407767gmail-p1">    "buffer": 0</p><p class="m_-3247535757325407767gmail-p1">  },</p><p class="m_-3247535757325407767gmail-p1">  "meters": [</p><p class="m_-3247535757325407767gmail-p1">    {</p><p class="m_-3247535757325407767gmail-p1">      "enabled": true,</p><p class="m_-3247535757325407767gmail-p1">      "allowskip": false,</p><p class="m_-3247535757325407767gmail-p1">      "interval": -1,</p><p class="m_-3247535757325407767gmail-p1">      "aggtime": -1,</p><p class="m_-3247535757325407767gmail-p1">      "aggfixedinterval": false,</p><p class="m_-3247535757325407767gmail-p1">      "channels": [</p><p class="m_-3247535757325407767gmail-p1">        {</p><p class="m_-3247535757325407767gmail-p1">          "uuid": "die UUID von dem ersten Kanal",</p><p class="m_-3247535757325407767gmail-p1">          "identifier": "1-1:1.8.0",</p><p class="m_-3247535757325407767gmail-p1">          "api": "volkszaehler",</p><p class="m_-3247535757325407767gmail-p1">          "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-3247535757325407767gmail-p1">          "aggmode": "none",</p><p class="m_-3247535757325407767gmail-p1">          "duplicates": 0</p><p class="m_-3247535757325407767gmail-p1">        },</p><p class="m_-3247535757325407767gmail-p1">       {</p><p class="m_-3247535757325407767gmail-p1">          "uuid": "die UUID von dem zweiten Kanal",</p><p class="m_-3247535757325407767gmail-p1">          "identifier": "1-1:2.8.0",</p><p class="m_-3247535757325407767gmail-p1">          "api": "volkszaehler",</p><p class="m_-3247535757325407767gmail-p1">          "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-3247535757325407767gmail-p1">          "aggmode": "none",</p><p class="m_-3247535757325407767gmail-p1">          "duplicates": 0</p><p class="m_-3247535757325407767gmail-p1">        },</p><p class="m_-3247535757325407767gmail-p1">      "protocol": "d0",</p><p class="m_-3247535757325407767gmail-p1">      "device": "/dev/ttyUSB0",</p><p class="m_-3247535757325407767gmail-p1">      "dump_file": "/home/pi/logger-dump",</p><p class="m_-3247535757325407767gmail-p1">      "pullseq": "2F3F210D0A",</p><p class="m_-3247535757325407767gmail-p1">      "ackseq": "063035300d0a",</p><p class="m_-3247535757325407767gmail-p1">      "baudrate": 300,</p><p class="m_-3247535757325407767gmail-p1">      "baudrate_read": 9600,</p><p class="m_-3247535757325407767gmail-p1">      "baudrate_change_delay": 100,</p><p class="m_-3247535757325407767gmail-p1">      "parity": "7e1",</p><p class="m_-3247535757325407767gmail-p1">      "read_timeout": 100</p><p class="m_-3247535757325407767gmail-p1">      },</p><p class="m_-3247535757325407767gmail-p1">    {</p><p class="m_-3247535757325407767gmail-p1">      "enabled": true,</p><p class="m_-3247535757325407767gmail-p1">      "allowskip": false,</p><p class="m_-3247535757325407767gmail-p1">      "interval": -1,</p><p class="m_-3247535757325407767gmail-p1">      "aggtime": -1,</p><p class="m_-3247535757325407767gmail-p1">      "aggfixedinterval": false,</p><p class="m_-3247535757325407767gmail-p1">      "channels": [</p><p class="m_-3247535757325407767gmail-p1">        {</p><p class="m_-3247535757325407767gmail-p1">          "uuid": "die UUID von dem ersten Kanal0",</p><p class="m_-3247535757325407767gmail-p1">          "identifier": "1-1:1.8.0",</p><p class="m_-3247535757325407767gmail-p1">          "api": "volkszaehler",</p><p class="m_-3247535757325407767gmail-p1">          "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-3247535757325407767gmail-p1">          "aggmode": "none",</p><p class="m_-3247535757325407767gmail-p1">          "duplicates": 0</p><p class="m_-3247535757325407767gmail-p1">        },</p><p class="m_-3247535757325407767gmail-p1">       {</p><p class="m_-3247535757325407767gmail-p1">          "uuid": "die UUID von dem zweiten Kanal",</p><p class="m_-3247535757325407767gmail-p1">          "identifier": "1-1:2.8.0",</p><p class="m_-3247535757325407767gmail-p1">          "api": "volkszaehler",</p><p class="m_-3247535757325407767gmail-p1">          "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-3247535757325407767gmail-p1">          "aggmode": "none",</p><p class="m_-3247535757325407767gmail-p1">          "duplicates": 0</p><p class="m_-3247535757325407767gmail-p1">        },</p><p class="m_-3247535757325407767gmail-p1">      "protocol": "d0",</p><p class="m_-3247535757325407767gmail-p1">      "device": "/dev/ttyUSB1",</p><p class="m_-3247535757325407767gmail-p1">      "dump_file": "/home/pi/logger-dump",</p><p class="m_-3247535757325407767gmail-p1">      "pullseq": "2F3F210D0A",</p><p class="m_-3247535757325407767gmail-p1">      "ackseq": "063035300d0a",</p><p class="m_-3247535757325407767gmail-p1">      "baudrate": 300,</p><p class="m_-3247535757325407767gmail-p1">      "baudrate_read": 9600,</p><p class="m_-3247535757325407767gmail-p1">      "baudrate_change_delay": 100,</p><p class="m_-3247535757325407767gmail-p1">      "parity": "7e1",</p><p class="m_-3247535757325407767gmail-p1">      "read_timeout": 100</p><p class="m_-3247535757325407767gmail-p1">      }</p><p class="m_-3247535757325407767gmail-p1">  ]</p><p class="m_-3247535757325407767gmail-p1">}</p><div><br></div>
<p class="m_-3247535757325407767gmail-p2"><span class="m_-3247535757325407767gmail-s1"></span><br></p>
<p class="m_-3247535757325407767gmail-p1"><span class="m_-3247535757325407767gmail-s1">Gruß,</span></p>
<p class="m_-3247535757325407767gmail-p2"><span class="m_-3247535757325407767gmail-s1"></span><br></p>
<p class="m_-3247535757325407767gmail-p1"><span class="m_-3247535757325407767gmail-s1">Jörg</span></p></div>
</blockquote></div><br></div>