[vz-users] VZLogger GPIO4

king-six at arcor.de king-six at arcor.de
Wed Apr 5 21:01:31 CEST 2017


Hallo Udo,

Danke für die schnelle Antwort. Ich habe die betreffenden Zeilen aus der rc.local gelöscht. Leider ist die Fehlermeldung immer noch da. Ich habe mal die komplette config angehängt. Müsste es bei dem GPIO "04" heißen, oder ist das egal?

Viele Grüße!

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170405/529deee4/attachment.html>
-------------- next part --------------
{
  "retry": 0, // http retry delay in seconds
  "daemon": true, // true=läuft als Dienst im Hintergrund
  "verbosity": 0, // log verbosity (0=log_error and log_warning, 5=log_info, 10=log_debug, 15=log_finest)
  "log": "/tmp/vzlogger.log", // Pfad zur Log-Datei
  "local": { // Build-in HTTP server
  "enabled": false, // enable local HTTPd for serving live readings
  "port": 8080, // TCP port for local HTTPd
  "index": false, // provide index listing of available channels if no UUID was requested
  "timeout": 0, // timeout for long polling comet requests in seconds (0 disables comet)
  "buffer": 0 // HTTPd buffer configuration for serving readings, default -1
                               // >0: number of seconds of readings to serve
                               // <0: number of tuples to server per channel (e.g. -3 will serve 3 tuples)
  },
  
  "meters": [
    { //#########################################################
      //############## Gasverbrauch #########################
      //#########################################################
      "enabled": true, // disabled meters will be ignored
      "allowskip": false,
      "aggtime": -1, // aggregate meter readings and send middleware update after <aggtime> seconds
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "xxx",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://127.0.0.1/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "s0",
      "gpio": 18, // Entspricht S0-1
      "resolution": 100,
      "configureGPIO": true,
      "debounce_delay": 5000
    },
    
    { //#########################################################
      //############## Stromverbrauch #######################
      //#########################################################
      "enabled": true,
      "allowskip": false,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "xxx",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://127.0.0.1/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "s0",
      "gpio": 17, // Entspricht S0-2
      "resolution": 75,
      "configureGPIO": true,
      "debounce_delay": 1000
    },
    
    { //#########################################################
      //############## Impulszähler Heizung #####################
      //#########################################################
      "enabled": true,
      "allowskip": false,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "xxx",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://127.0.0.1/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "s0",
      "gpio": 23, // Entspricht S0-3
      "resolution": 75,
      "configureGPIO": true,
      "debounce_delay": 1000
    },

    { //#########################################################
      //############## Impulszähler xxx #########################
      //#########################################################
      "enabled": true,
      "allowskip": false,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "xxx",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://127.0.0.1/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "s0",
      "gpio": 4, // Entspricht S0-0
      "resolution": 1000,
      "configureGPIO": true,
      "debounce_delay": 1000
    },
    
    
    { //#########################################################
      //############## Temperatursensoren 30 min #############
      //#########################################################
      "enabled": true,
      "allowskip": true,
      "interval": 1800,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        { // ####### Außentemperatur #######
          "uuid": "xxx",
          "identifier": "28-8000001ebc0a",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        },
        { // ####### Kellertemperatur #######
          "uuid": "471d7ac0-3334-11e6-ba37-6f78b1d35917",
          "identifier": "28-041643b5aaff",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "w1therm"
    },
    
    { //#########################################################
      //############## Temperatursensoren 5 min ##############
      //#########################################################
      "enabled": true,
      "allowskip": true,
      "interval": 300,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        { // ####### Heizung Vorlauf #######
          "uuid": "xxxx",
          "identifier": "28-04165000d5ff",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        },
        { // ####### Warmwasserspeicher #######
          "uuid": "xxxx",
          "identifier": "28-031644bc66ff",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        },
        {// ####### Heizung Rücklauf #######
          "uuid": "xxxx",
          "identifier": "28-031644830cff",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "w1therm"
    }
  ] //Ende meters
}       //Ende vzlogger.conf


More information about the volkszaehler-users mailing list