<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><p class="m_-7129969886391490216gmail-p1"><span class="m_-7129969886391490216gmail-s1">Hallo,</span></p>
<p class="m_-7129969886391490216gmail-p2"><span class="m_-7129969886391490216gmail-s1"></span><br></p>
<p class="m_-7129969886391490216gmail-p1"><span class="m_-7129969886391490216gmail-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_-7129969886391490216gmail-p1">Bisher sieht sie vzlogger.conf so aus:</p><p class="m_-7129969886391490216gmail-p1">{</p><p class="m_-7129969886391490216gmail-p1"> "retry": 0,</p><p class="m_-7129969886391490216gmail-p1"> "daemon": true,</p><p class="m_-7129969886391490216gmail-p1"> "verbosity": 15,</p><p class="m_-7129969886391490216gmail-p1"> "log": "/var/log/vzlogger.log",</p><p class="m_-7129969886391490216gmail-p1"> "local": {</p><p class="m_-7129969886391490216gmail-p1"> "enabled": false,</p><p class="m_-7129969886391490216gmail-p1"> "port": 8080,</p><p class="m_-7129969886391490216gmail-p1"> "index": true,</p><p class="m_-7129969886391490216gmail-p1"> "timeout": 0,</p><p class="m_-7129969886391490216gmail-p1"> "buffer": 0</p><p class="m_-7129969886391490216gmail-p1"> },</p><p class="m_-7129969886391490216gmail-p1"> "meters": [</p><p class="m_-7129969886391490216gmail-p1"> {</p><p class="m_-7129969886391490216gmail-p1"> "enabled": true,</p><p class="m_-7129969886391490216gmail-p1"> "allowskip": false,</p><p class="m_-7129969886391490216gmail-p1"> "interval": -1,</p><p class="m_-7129969886391490216gmail-p1"> "aggtime": -1,</p><p class="m_-7129969886391490216gmail-p1"> "aggfixedinterval": false,</p><p class="m_-7129969886391490216gmail-p1"> "channels": [</p><p class="m_-7129969886391490216gmail-p1"> {</p><p class="m_-7129969886391490216gmail-p1"> "uuid": "die UUID von dem ersten Kanal",</p><p class="m_-7129969886391490216gmail-p1"> "identifier": "1-1:1.8.0",</p><p class="m_-7129969886391490216gmail-p1"> "api": "volkszaehler",</p><p class="m_-7129969886391490216gmail-p1"> "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-7129969886391490216gmail-p1"> "aggmode": "none",</p><p class="m_-7129969886391490216gmail-p1"> "duplicates": 0</p><p class="m_-7129969886391490216gmail-p1"> },</p><p class="m_-7129969886391490216gmail-p1"> {</p><p class="m_-7129969886391490216gmail-p1"> "uuid": "die UUID von dem zweiten Kanal",</p><p class="m_-7129969886391490216gmail-p1"> "identifier": "1-1:2.8.0",</p><p class="m_-7129969886391490216gmail-p1"> "api": "volkszaehler",</p><p class="m_-7129969886391490216gmail-p1"> "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-7129969886391490216gmail-p1"> "aggmode": "none",</p><p class="m_-7129969886391490216gmail-p1"> "duplicates": 0</p><p class="m_-7129969886391490216gmail-p1"> },</p><p class="m_-7129969886391490216gmail-p1"> "protocol": "d0",</p><p class="m_-7129969886391490216gmail-p1"> "device": "/dev/ttyUSB0",</p><p class="m_-7129969886391490216gmail-p1"> "dump_file": "/home/pi/logger-dump",</p><p class="m_-7129969886391490216gmail-p1"> "pullseq": "2F3F210D0A",</p><p class="m_-7129969886391490216gmail-p1"> "ackseq": "063035300d0a",</p><p class="m_-7129969886391490216gmail-p1"> "baudrate": 300,</p><p class="m_-7129969886391490216gmail-p1"> "baudrate_read": 9600,</p><p class="m_-7129969886391490216gmail-p1"> "baudrate_change_delay": 100,</p><p class="m_-7129969886391490216gmail-p1"> "parity": "7e1",</p><p class="m_-7129969886391490216gmail-p1"> "read_timeout": 100</p><p class="m_-7129969886391490216gmail-p1"> },</p><p class="m_-7129969886391490216gmail-p1"> {</p><p class="m_-7129969886391490216gmail-p1"> "enabled": true,</p><p class="m_-7129969886391490216gmail-p1"> "allowskip": false,</p><p class="m_-7129969886391490216gmail-p1"> "interval": -1,</p><p class="m_-7129969886391490216gmail-p1"> "aggtime": -1,</p><p class="m_-7129969886391490216gmail-p1"> "aggfixedinterval": false,</p><p class="m_-7129969886391490216gmail-p1"> "channels": [</p><p class="m_-7129969886391490216gmail-p1"> {</p><p class="m_-7129969886391490216gmail-p1"> "uuid": "die UUID von dem ersten Kanal0",</p><p class="m_-7129969886391490216gmail-p1"> "identifier": "1-1:1.8.0",</p><p class="m_-7129969886391490216gmail-p1"> "api": "volkszaehler",</p><p class="m_-7129969886391490216gmail-p1"> "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-7129969886391490216gmail-p1"> "aggmode": "none",</p><p class="m_-7129969886391490216gmail-p1"> "duplicates": 0</p><p class="m_-7129969886391490216gmail-p1"> },</p><p class="m_-7129969886391490216gmail-p1"> {</p><p class="m_-7129969886391490216gmail-p1"> "uuid": "die UUID von dem zweiten Kanal",</p><p class="m_-7129969886391490216gmail-p1"> "identifier": "1-1:2.8.0",</p><p class="m_-7129969886391490216gmail-p1"> "api": "volkszaehler",</p><p class="m_-7129969886391490216gmail-p1"> "middleware": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.<wbr>php</a>";,</p><p class="m_-7129969886391490216gmail-p1"> "aggmode": "none",</p><p class="m_-7129969886391490216gmail-p1"> "duplicates": 0</p><p class="m_-7129969886391490216gmail-p1"> },</p><p class="m_-7129969886391490216gmail-p1"> "protocol": "d0",</p><p class="m_-7129969886391490216gmail-p1"> "device": "/dev/ttyUSB1",</p><p class="m_-7129969886391490216gmail-p1"> "dump_file": "/home/pi/logger-dump",</p><p class="m_-7129969886391490216gmail-p1"> "pullseq": "2F3F210D0A",</p><p class="m_-7129969886391490216gmail-p1"> "ackseq": "063035300d0a",</p><p class="m_-7129969886391490216gmail-p1"> "baudrate": 300,</p><p class="m_-7129969886391490216gmail-p1"> "baudrate_read": 9600,</p><p class="m_-7129969886391490216gmail-p1"> "baudrate_change_delay": 100,</p><p class="m_-7129969886391490216gmail-p1"> "parity": "7e1",</p><p class="m_-7129969886391490216gmail-p1"> "read_timeout": 100</p><p class="m_-7129969886391490216gmail-p1"> }</p><p class="m_-7129969886391490216gmail-p1"> ]</p><p class="m_-7129969886391490216gmail-p1">}</p><div><br></div>
<p class="m_-7129969886391490216gmail-p2"><span class="m_-7129969886391490216gmail-s1"></span><br></p>
<p class="m_-7129969886391490216gmail-p1"><span class="m_-7129969886391490216gmail-s1">Gruß,</span></p>
<p class="m_-7129969886391490216gmail-p2"><span class="m_-7129969886391490216gmail-s1"></span><br></p>
<p class="m_-7129969886391490216gmail-p1"><span class="m_-7129969886391490216gmail-s1">Jörg</span></p></div>
</div><br></div>