<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hallo,<br>
    <br>
    meine rc.local:<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>
    # echo ds2482 0x19 > /sys/bus/i2c/devices/i2c-1/new_device<br>
    # echo ds2482 0x1a > /sys/bus/i2c/devices/i2c-1/new_device<br>
    <br>
    # Register I2C RTC, nur bei großer Erweiterung<br>
    # echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device<br>
    <br>
    # Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon','s0vz',
    nur bei alter große Erweiterung<br>
    # echo 17 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio17/edge<br>
    # echo 18 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio18/edge<br>
    # echo 22 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio22/edge<br>
    # echo 23 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio23/edge<br>
    # echo 24 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio24/edge<br>
    # echo 27 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio27/edge<br>
    <br>
    # Part of S0/Impulse to Volkszaehler 'RaspberryPI
    deamon','s0vz_new', nur bei neuer große Erweiterung<br>
    # echo 4 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio4/edge<br>
    # echo 18 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio18/edge<br>
    # echo 17 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio17/edge<br>
    # echo 23 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio23/edge<br>
    # echo 27 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio27/edge<br>
    # echo 22 > /sys/class/gpio/export && echo "rising" >
    /sys/class/gpio/gpio22/edge<br>
    <br>
    # GPIOs exportieren und Datenrichtung einstellen,
    'Schaltausgang_new'<br>
    # echo 24 > /sys/class/gpio/export<br>
    # echo 25 > /sys/class/gpio/export<br>
    # echo out > /sys/class/gpio/gpio24/direction<br>
    # echo out > /sys/class/gpio/gpio25/direction<br>
    <br>
    # GPIOs exportieren und Datenrichtung einstellen, 'Schaltausgang'<br>
    echo 9 > /sys/class/gpio/export<br>
    echo 11 > /sys/class/gpio/export<br>
    echo out > /sys/class/gpio/gpio9/direction<br>
    echo out > /sys/class/gpio/gpio11/direction<br>
    <br>
    # 1wirevz starten<br>
    #/etc/init.d/1wirevz restart<br>
    <br>
    #s0vz starten<br>
    #sudo s0vz<br>
    #sudo s0vz_new<br>
    <br>
    #vzlogger starten<br>
    sudo vzlogger -d<br>
    <br>
    #Set Systemtime from RTC<br>
    # sudo hwclock -s<br>
    <br>
    exit 0<br>
    <br>
    <br>
    <br>
    <b><big><big>und hier die vzlogger.conf:</big></big></b><br>
    {<br>
      "retry": 0,<br>
      "daemon": true,<br>
      "verbosity": 15,<br>
      "log": "/var/log/vzlogger.log",<br>
    // "push": [],<br>
      "local": {<br>
        "enabled": false,<br>
        "port": 8080,<br>
        "index": false,<br>
        "timeout": 0,<br>
        "buffer": 0<br>
      },<br>
      "meters": [<br>
        {<br>
          "enabled": true,<br>
          "allowskip": false,<br>
          "interval": -1,<br>
          "aggtime": -1,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "uuid": "e6f572e0-56d1-11e5-a2e3-9309764087d9",<br>
              "identifier": "Impulse",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            }<br>
          ],<br>
          "protocol": "s0",<br>
          "gpio": 24,<br>
          "resolution": 1000,<br>
          "configureGPIO": true,<br>
          "debounce_delay": 0<br>
        },<br>
        {<br>
          "enabled": true,<br>
          "allowskip": false,<br>
          "interval": -1,<br>
          "aggtime": -1,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "uuid": "b9a4f840-5607-11e5-bd7e-b5567e690b9d",<br>
             "identifier": "Impulse",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            }<br>
          ],<br>
          "protocol": "s0",<br>
          "gpio": 10,<br>
          "resolution": 1000,<br>
          "configureGPIO": true,<br>
          "debounce_delay": 0<br>
        },<br>
        {<br>
          "enabled": true,<br>
          "allowskip": false,<br>
          "interval": -1,<br>
          "aggtime": -1,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "uuid": "079e4d60-f03a-11e4-a1f2-8ba3458b66ed",<br>
              "identifier": "Impulse",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            }<br>
          ],<br>
          "protocol": "s0",<br>
          "gpio": 17,<br>
          "resolution": 1000,<br>
          "configureGPIO": true,<br>
          "debounce_delay": 0<br>
        },<br>
        {<br>
          "enabled": true,<br>
          "allowskip": false,<br>
          "interval": -1,<br>
          "aggtime": -1,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "uuid": "14d79bd0-f03a-11e4-85e9-edfdbad8043f",<br>
              "identifier": "Impulse",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            }<br>
          ],<br>
          "protocol": "s0",<br>
          "gpio": 23,<br>
          "resolution": 1000,<br>
          "configureGPIO": true,<br>
          "debounce_delay": 0<br>
        },<br>
        {<br>
          "enabled": true,<br>
          "allowskip": false,<br>
          "interval": -1,<br>
          "aggtime": -1,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "uuid": "24ef24a0-f03a-11e4-8653-2f3eb496bfb8",<br>
             "identifier": "Impulse",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://localhost/middleware.php">"http://localhost/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            }<br>
          ],<br>
          "protocol": "s0",<br>
          "gpio": 27,<br>
          "resolution": 1000,<br>
          "configureGPIO": true,<br>
          "debounce_delay": 0<br>
        },<br>
        {<br>
          "enabled": true,<br>
          "allowskip": false,<br>
          "interval": -1,<br>
          "aggtime": -1,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "uuid": "777a37c0-56d2-11e5-b180-2f8252896f04",<br>
              "identifier": "Impulse",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            }<br>
          ],<br>
          "protocol": "s0",<br>
          "gpio": 22,<br>
          "resolution": 1000,<br>
          "configureGPIO": true,<br>
          "debounce_delay": 0<br>
        },<br>
        {<br>
          "enabled": true,<br>
          "allowskip": false,<br>
          "interval": -1,<br>
          "aggtime": -1,<br>
          "aggfixedinterval": false,<br>
          "channels": [<br>
            {<br>
              "uuid": "68102e10-ef7c-11e4-a495-7f0a84de0257",<br>
              "identifier": "28-000004508eec",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            },<br>
            {<br>
              "uuid": "9bee5e60-ef7c-11e4-80af-6b56ff429c5f",<br>
              "identifier": "28-00000450a4cc",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
              "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            },<br>
            {<br>
              "uuid": "c6cb4b20-ef7c-11e4-8fd6-972990841f29",<br>
              "identifier": "28-00000450cbbd",<br>
              "api": "volkszaehler",<br>
              "middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
             "secretKey": "",<br>
              "type": "device",<br>
              "scaler": 1,<br>
              "aggmode": "none",<br>
              "duplicates": 0<br>
            }<br>
          ],<br>
          "protocol": "w1therm"<br>
        }<br>
      ]<br>
    }<br>
    <br>
    Im Frontend habe ich drei S0 Kanäle erstellt die an den eingängen
    3,4 und 5 an der Erweiterung angeklemmt wurden.<br>
    <br>
    <br>
    Gruß<br>
    <br>
    Daniel<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 06.10.2015 um 16:24 schrieb Udo1:<br>
    </div>
    <blockquote cite="mid:5613D985.6070209@gmx.net" type="cite">Hallo
      Daniel,
      <br>
      <br>
      Am 06.10.2015 um 14:18 schrieb News:
      <br>
      <blockquote type="cite">ich bekomme keinen Chart angezeigt. Hier
        mal ein Auszug aus der /var/log/vzlogger.log </blockquote>
      <br>
      Ich wiederhole mich:
      <br>
      <br>
      <blockquote type="cite">Poste mal deine jetzige komplette
        /etc/rc.local und /etc/vzlogger.conf.
        <br>
        Was für einen Typ von Kanäle hast du im Frontend erstellt? </blockquote>
      <br>
      Gruß
      <br>
      Udo
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>