<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">In der Config sind auf jeden Fall schon mal die Identifier falsch:<div class=""><span style="font-family: Calibri; font-size: 15px;" class="">"identifier": "1-0: 1.8.0</span><font face="Calibri" class=""><span style="font-size: 15px;" class="">“</span></font></div><div class=""><font face="Calibri" class=""><span style="font-size: 15px;" class=""><br class=""></span></font></div><div class=""><font face="Calibri" class=""><span style="font-size: 15px;" class="">Das Leerzeichen zwischen „:“ und „1“ muss weg.</span></font></div><div class=""><font face="Calibri" class=""><span style="font-size: 15px;" class=""><br class=""></span></font></div><div class=""><font face="Calibri" class=""><span style="font-size: 15px;" class="">Mit der Config dürftest du in keinem Fall mehr „s0“ oder 1wire Meldungen sehen. Falls ja, scheint vzlogger eine andere Config zu nutzen.</span></font></div><div class=""><font face="Calibri" class=""><span style="font-size: 15px;" class=""><br class=""></span></font><div><blockquote type="cite" class=""><div class="">Am 02.01.2016 um 21:03 schrieb Thomas Hümmerich <<a href="mailto:thomas.huemmerich@arcor.de" class="">thomas.huemmerich@arcor.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hallo,<div class="">ich habe nur den IR-USB-Lesekopf an USB angeschlossen, (noch) kein S0-Signal.</div><div class="">Die <span style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255); font-size: 15px; line-height: 21.299999237060547px;" class="">cat /dev/ttyUSB0 liefert - nach Anpassung der Baudrate und der Parity - :</span><div id="readMessagePartControl1658f" class="ClearBoth HideShadows FullPart Read c-ReadMessagePart NoHistory RmIc ReadMsgContainer HasLayout" style="clear: both; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); margin-bottom: 20px; position: relative;"><div class="c-ReadMessagePartBody"><div class="readMsgBody" style="overflow-y: hidden; overflow-x: auto; padding: 16px 0px 0px;"><div id="bodyreadMessagePartBodyControl1663f" class="ExternalClass MsgBodyContainer"><div dir="ltr" class=""><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class="">1-0:1.8.0*255(0000xxx.xx*kWh)</font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class=""><br style="line-height: 21.299999237060547px;" class=""></font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class="">1-0:2.8.0*255(000xxx.xx*kWh)</font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class=""><br style="line-height: 21.299999237060547px;" class=""></font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class="">1-0:21.7.0*255(000xx.xx*W)</font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class=""><br style="line-height: 21.299999237060547px;" class=""></font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class="">1-0:41.7.0*255(000xxx.xx*W)</font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class=""><br style="line-height: 21.299999237060547px;" class=""></font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class="">1-0:61.7.0*255(000xxx.xx*W)</font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class=""><br style="line-height: 21.299999237060547px;" class=""></font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class="">1-0:1.7.0*255(000xxx.xx*W)</font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class=""><br style="line-height: 21.299999237060547px;" class=""></font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><font face="Courier New, sans-serif" style="line-height: normal;" class="">1-0:96.5.5*255(80)</font></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class="">Im Frontend sind angelegt:</div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class="">2 Mal El. Energie (Zählerstände) für die Zählerstände Verbrauch und Lieferung</div><div style="color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);" class="">4 Mal El. Energie (Leistungswerte) für die Leistung der 3 Phasen und die Gesamtleistung</div></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><br class=""></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class="">Die vzlogger.conf sieht so aus:</div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><div class="">{</div><div class=""> "retry": 30,</div><div class=""> "daemon": false,</div><div class=""> "verbosity": 15,</div><div class=""> "log": "/var/log/vzlogger.log",</div><div class=""> "push": [],</div><div class=""> "local": {</div><div class=""> "enabled": false,</div><div class=""> "port": 8080,</div><div class=""> "index": true,</div><div class=""> "timeout": 30,</div><div class=""> "buffer": 600</div><div class=""> },</div><div class=""> "meters": [</div><div class=""> {</div><div class=""> "enabled": true,</div><div class=""> "allowskip": false,</div><div class=""> "interval": 10,</div><div class=""> "aggtime": -1,</div><div class=""> "aggfixedinterval": false,</div><div class=""> "channels": [</div><div class=""> {</div><div class=""> "uuid": "608995d0-b139-11e5-a1ec-d95b72cab6b6",</div><div class=""> "identifier": "1-0: 1.8.0",</div><div class=""> "api": "volkszaehler",</div><div class=""> "middleware": "<a href="http://localhost/middleware.php" class="">http://localhost/middleware.php</a>",</div><div class=""> "secretKey": "",</div><div class=""> "type": "device",</div><div class=""> "scaler": 1,</div><div class=""> "aggmode": "max",</div><div class=""> "duplicates": 0</div><div class=""> },</div><div class=""> {</div><div class=""> "uuid": "5457c240-b139-11e5-9771-fdb30fb5759c",</div><div class=""> "identifier": "1-0: 2.8.0",</div><div class=""> "api": "volkszaehler",</div><div class=""> "middleware": "<a href="http://localhost/middleware.php" class="">http://localhost/middleware.php</a>",</div><div class=""> "secretKey": "",</div><div class=""> "type": "device",</div><div class=""> "scaler": 1,</div><div class=""> "aggmode": "max",</div><div class=""> "duplicates": 0</div><div class=""> },</div><div class=""> {</div><div class=""> "uuid": "731ef1c0-b139-11e5-91c9-17c1aec912ff",</div><div class=""> "identifier": "1-0: 21.7.0",</div><div class=""> "api": "volkszaehler",</div><div class=""> "middleware": "<a href="http://localhost/middleware.php" class="">http://localhost/middleware.php</a>",</div><div class=""> "secretKey": "",</div><div class=""> "type": "device",</div><div class=""> "scaler": 1,</div><div class=""> "aggmode": "avg",</div><div class=""> "duplicates": 0</div><div class=""> },</div><div class=""> {</div><div class=""> "uuid": "84fd78e0-b139-11e5-88a8-a7f3bbab9e9c",</div><div class=""> "identifier": "1-0: 41.7.0",</div><div class=""> "api": "volkszaehler",</div><div class=""> "middleware": "<a href="http://localhost/middleware.php" class="">http://localhost/middleware.php</a>",</div><div class=""> "secretKey": "",</div><div class=""> "type": "device",</div><div class=""> "scaler": 1,</div><div class=""> "aggmode": "avg",</div><div class=""> "duplicates": 0</div><div class=""> },</div><div class=""> {</div><div class=""> "uuid": "8b59fc60-b139-11e5-ac40-73a927067321",</div><div class=""> "identifier": "1-0: 61.7.0",</div><div class=""> "api": "volkszaehler",</div><div class=""> "middleware": "<a href="http://localhost/middleware.php" class="">http://localhost/middleware.php</a>",</div><div class=""> "secretKey": "",</div><div class=""> "type": "device",</div><div class=""> "scaler": 1,</div><div class=""> "aggmode": "avg",</div><div class=""> "duplicates": 0</div><div class=""> },</div><div class=""> {</div><div class=""> "uuid": "e025cd30-b16c-11e5-8ac5-0d4a872b543a",</div><div class=""> "identifier": "1-0: 1.7.0",</div><div class=""> "api": "volkszaehler",</div><div class=""> "middleware": "<a href="http://localhost/middleware.php" class="">http://localhost/middleware.php</a>",</div><div class=""> "secretKey": "",</div><div class=""> "type": "device",</div><div class=""> "scaler": 1,</div><div class=""> "aggmode": "avg",</div><div class=""> "duplicates": 0</div><div class=""> }</div><div class=""> ],</div><div class=""> "protocol": "d0",</div><div class=""> "device": "/dev/ttyUSB0",</div><div class=""> "host": "",</div><div class=""> "dump_file": "",</div><div class=""> "pullseq": "",</div><div class=""> "ackseq": "auto",</div><div class=""> "baudrate": 9600,</div><div class=""> "baudrate_read": 300,</div><div class=""> "parity": "7e1",</div><div class=""> "wait_sync": "off",</div><div class=""> "read_timeout": 10,</div><div class=""> "baudrate_change_delay": 0,</div><div class=""> "gpio": -1,</div><div class=""> "mmap": "",</div><div class=""> "gpio_dir": -1,</div><div class=""> "configureGPIO": true,</div><div class=""> "resolution": 1000,</div><div class=""> "send_zero": false,</div><div class=""> "debounce_delay": 30,</div><div class=""> "nonblocking_delay": 100000</div><div class=""> }</div><div class=""> ]</div><div class="">}</div></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><br class=""></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class="">Und hier die /etc/rc.local:</div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><br class=""></div><div class=""><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">#!/bin/sh -e</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">#</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># rc.local</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">#</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># This script is executed at the end of each multiuser runlevel.</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># Make sure that the script will "exit 0" on success or any other</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># value on error.</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">#</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># In order to enable or disable this script just change the execution</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># bits.</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">#</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># By default this script does nothing.</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""><br class=""></span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># Print the IP address</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">_IP=$(hostname -I) || true</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">if [ "$_IP" ]; then</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""> printf "My IP address is %s\n" "$_IP"</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">fi</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""><br class=""></span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># Part of DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI deamon'.</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># echo ds2482 0x19 > /sys/bus/i2c/devices/i2c-1/new_device</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># echo ds2482 0x1a > /sys/bus/i2c/devices/i2c-1/new_device</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""><br class=""></span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># Register I2C RTC, nur bei neuer großer Erweiterung</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""><br class=""></span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># GPIOs für Schaltausgänge exportieren und Datenrichtung einstellen, 'neue große Erweiterung'</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">echo 24 > /sys/class/gpio/export</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">echo 25 > /sys/class/gpio/export</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">echo out > /sys/class/gpio/gpio24/direction</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">echo out > /sys/class/gpio/gpio25/direction</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""><br class=""></span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># GPIOs für Schaltausgänge exportieren und Datenrichtung einstellen, 'alte große Erweiterung'</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># echo 9 > /sys/class/gpio/export</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># echo 11 > /sys/class/gpio/export</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># echo out > /sys/class/gpio/gpio9/direction</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""># echo out > /sys/class/gpio/gpio11/direction</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""><br class=""></span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">#Set Systemtime from RTC, nur bei neuer großer Erweiterung</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">sudo hwclock -s</span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class=""><br class=""></span></font></div><div class=""><font size="3" class=""><span style="line-height: 21.299999237060547px;" class="">exit 0</span></font></div></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><br class=""></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><br class=""></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class="">Danke und Gruß, Thomas</div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><br class=""></div><div style="font-size: 15px; line-height: 21.299999237060547px;" class=""><br class=""></div></div></div></div></div></div><div class="">> To:<span class="Apple-converted-space"> </span><a href="mailto:volkszaehler-users@demo.volkszaehler.org" class="">volkszaehler-users@demo.volkszaehler.org</a><br class="">> From:<span class="Apple-converted-space"> </span><a href="mailto:udo1@gmx.net" class="">udo1@gmx.net</a><br class="">> Date: Sat, 2 Jan 2016 20:37:52 +0100<br class="">> Subject: Re: [vz-users] Neueinrichtung Easymeter Q3D-Zähler<br class="">><span class="Apple-converted-space"> </span><br class="">> Am 02.01.2016 um 20:26 schrieb Thomas Hümmerich:<br class="">> > Leider bleiben die Fehler in der Log-Datei die gleichen und irgendwie<span class="Apple-converted-space"> </span><br class="">> > werden auch mehr als 1 Meter erwartet, außerdem lese ich auch ein paar<span class="Apple-converted-space"> </span><br class="">> > Mal S0 statt D0:<br class="">> Bitte liste auf welche Zähler und welche S0-Signale du an den Raspi<span class="Apple-converted-space"> </span><br class="">> angeschlossen hast.<br class="">> Dann bitte poste noch mal deine jetzige vzlogger.conf und zusätzlich die<span class="Apple-converted-space"> </span><br class="">> /etc/rc.local.<br class="">><span class="Apple-converted-space"> </span><br class="">> Gruß<br class="">> Udo</div></div></div></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Gruß</div><div class=""><br class=""></div><div class="">Matthias</div></div></span>
</div>
<br class=""></div></body></html>