[vz-users] Neueinrichtung Easymeter Q3D-Zähler

Thomas Hümmerich thomas.huemmerich at arcor.de
Sat Jan 2 22:26:11 CET 2016


Danke, Udo.
Ist vielleicht auch schon gefragt worden, aber wo kriege ich die root-Rechte zum ändern der rc.local?Danke und Gruß, Thomas

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


More information about the volkszaehler-users mailing list