<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Danke, Udo.<div><br></div><div>Ist vielleicht auch schon gefragt worden, aber wo kriege ich die root-Rechte zum ändern der rc.local?</div><div>Danke und Gruß, Thomas<br><br><div>> To: volkszaehler-users@demo.volkszaehler.org<br>> From: udo1@gmx.net<br>> Date: Sat, 2 Jan 2016 21:57:54 +0100<br>> Subject: Re: [vz-users] Neueinrichtung Easymeter Q3D-Zähler<br>> <br>> Am 02.01.2016 um 21:03 schrieb Thomas Hümmerich:<br>> > ich habe nur den IR-USB-Lesekopf an USB angeschlossen<br>> Ok, die vzlogger.conf sollte so aussehen:<br>> <br>> {<br>>    "retry": 30,<br>>    "daemon": true,<br>>    "verbosity": 15,<br>>    "log": "/var/log/vzlogger.log",<br>>    "push": [],<br>>    "local": {<br>>      "enabled": false,<br>>      "port": 8080,<br>>      "index": true,<br>>      "timeout": 30,<br>>      "buffer": 600<br>>    },<br>>    "meters": [<br>>      {<br>>        "enabled": true,<br>>        "allowskip": false,<br>>        "interval": 10,<br>>        "aggtime": -1,<br>>        "aggfixedinterval": false,<br>>        "channels": [<br>>          {<br>>            "uuid": "608995d0-b139-11e5-a1ec-d95b72cab6b6",<br>>            "identifier": "1-0:1.8.0",<br>>            "api": "volkszaehler",<br>>            "middleware": "http://localhost/middleware.php",<br>>            "aggmode": "max",<br>>            "duplicates": 0<br>>          },<br>>          {<br>>            "uuid": "5457c240-b139-11e5-9771-fdb30fb5759c",<br>>            "identifier": "1-0:2.8.0",<br>>            "api": "volkszaehler",<br>>            "middleware": "http://localhost/middleware.php",<br>>            "aggmode": "max",<br>>            "duplicates": 0<br>>          },<br>>          {<br>>            "uuid": "731ef1c0-b139-11e5-91c9-17c1aec912ff",<br>>            "identifier": "1-0:21.7.0",<br>>            "api": "volkszaehler",<br>>            "middleware": "http://localhost/middleware.php",<br>>            "aggmode": "avg",<br>>            "duplicates": 0<br>>          },<br>>          {<br>>            "uuid": "84fd78e0-b139-11e5-88a8-a7f3bbab9e9c",<br>>            "identifier": "1-0:41.7.0",<br>>            "api": "volkszaehler",<br>>            "middleware": "http://localhost/middleware.php",<br>>            "aggmode": "avg",<br>>            "duplicates": 0<br>>          },<br>>          {<br>>            "uuid": "8b59fc60-b139-11e5-ac40-73a927067321",<br>>            "identifier": "1-0:61.7.0",<br>>            "api": "volkszaehler",<br>>            "middleware": "http://localhost/middleware.php",<br>>            "aggmode": "avg",<br>>            "duplicates": 0<br>>          },<br>>          {<br>>            "uuid": "e025cd30-b16c-11e5-8ac5-0d4a872b543a",<br>>            "identifier": "1-0:1.7.0",<br>>            "api": "volkszaehler",<br>>            "middleware": "http://localhost/middleware.php",<br>>            "aggmode": "avg",<br>>            "duplicates": 0<br>>          }<br>>        ],<br>>        "protocol": "d0",<br>>        "device": "/dev/ttyUSB0",<br>>        "baudrate": 9600,<br>>        "parity": "7e1",<br>>        "resolution": 1000<br>>         }<br>>    ]<br>> }<br>> <br>> Die rc.local sollte so aussehen:<br>> <br>> #!/bin/sh -e<br>> #<br>> # rc.local<br>> #<br>> # This script is executed at the end of each multiuser runlevel.<br>> # Make sure that the script will "exit 0" on success or any other<br>> # value on error.<br>> #<br>> # In order to enable or disable this script just change the execution<br>> # bits.<br>> #<br>> # By default this script does nothing.<br>> <br>> # Print the IP address<br>> _IP=$(hostname -I) || true<br>> if [ "$_IP" ]; then<br>>    printf "My IP address is %s\n" "$_IP"<br>> fi<br>> <br>> # Part of DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI deamon'.<br>> echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device<br>> <br>> exit 0<br>> <br>> <br>> Gruß<br>> Udo<br></div></div>                                      </div></body>
</html>