<p dir="ltr">Sudo nano /etc/rc.local </p>
<p dir="ltr">Mfg</p>
<div class="gmail_quote">Am 02.01.2016 22:26 schrieb "Thomas Hümmerich" <<a href="mailto:thomas.huemmerich@arcor.de">thomas.huemmerich@arcor.de</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><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: <a href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank">volkszaehler-users@demo.volkszaehler.org</a><br>> From: <a href="mailto:udo1@gmx.net" target="_blank">udo1@gmx.net</a><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": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",<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": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",<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": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",<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": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",<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": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",<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": "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",<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></div>
</blockquote></div>