[vz-dev] vzlogger an raspberry tut nicht

Rainer Gauweiler volkszaehler at moppl.inka.de
Sun Mar 31 22:40:11 CEST 2013


Hallo Dietmar,

 > [Mar 31 22:06:42][mtr0] Reading-THREAD - reading Got an exception : Not
> identifier defined.
> [Mar 31 22:06:42][]     Server stopped.

Das dürfte vom Zufallszähler sein.

> *** glibc detected *** vzlogger: free(): corrupted unsorted chunks:
> 0x00f79dc8 ***
> Aborted

Das habe ich noch nie gesehen.

> "meters" : [{
>      "enabled" : false,    /* disabled meters will be ignored */
>      "protocol" : "sml",    /* see 'vzlogger -h' for list of available
> protocols */
>      "host" : "meinzaehler.dyndns.info:7331",
>      "channels": [{
>          "uuid" : "18377500-9a2b-11e2-84e0-fd8eea56545a0",
>          "middleware" : "http://localhost/middleware.php",
>          "identifier" : "counter" /* alias for '1-0:1.7.ff', see
> 'vzlogger -h' for list of available aliases */
>          }, {
>          "uuid" : "7ac6f6f0-9a2b-11e2-b0d1-2d188cedb11a",
>          "middleware" : "http://localhost/middleware.php",
>          "identifier" : "counter"
>          }
>          ]
>      }, {

Den benutzt Du nicht -> schmeiss ihn raus.

>      "protocol" : "random",
>      "interval" : 2,
>      "max" : 40.0,        /* has to be double! */
>      "min" : -5.0,        /* has to be double! */
>      "channel" : {
>          "uuid" : "bac2e840-f72c-11e0-bedf-3f850c1e5a66",
>          "middleware" : "http://demo.volkszaehler.org/middleware.php"
>          }
>      }, {

Der lässt den vzlogger abstürzen, schmeiss ihn raus.

>      "protocol" : "s0",
>      "device" : "/dev/ttyUSB0",
>      "channel" : {
>          "uuid" : "d495a390-f747-11e0-b3ca-f7890e45c7b2",
>          "middleware" : "http://demo.volkszaehler.org/middleware.php"
>          }
>      },

Das ist vermutlich Dein aktiver Zähler. Aber nur einer?

>      {
>      "protocol" : "file",
>      "path" : "/proc/loadavg",
> //    "format" : "$i $v $t",    /* a format string for parsing complex
> logfiles */
>                  /* arbitrary text and whitespaces are allowed, see
> 'scanf()' */
>                  /* at least $v has to be used */
>                  /* $i => identifier, $v => value, $t => timestamp */
>      "rewind" : true,    /* reset file pointer each interval to the
> beginning of the file */
>      "interval" : 2        /* of ommitted, we will try to listen on
> changes with inotify */
>      },
>      {
>      "protocol" : "fluksov2",
>      "fifo" : "/var/spid/delta/out",
>      "channel" : {
>          "uuid" : "3b4da450-42a8-11e1-8b8d-c526d853edec",
>          "middleware" : "http://demo.volkszaehler.org/middleware.php",
>          "identifier" : "sensor0/power" /* or "sensor2/consumption" e.g. */
>          }
>      }

Noch zwei Beispiele -> raus damit.

In der Vergangenheit ist der vzlogger öfter damit aufgefallen, über 
andere Sensoren zu stolpern, auch wenn er sie garnicht bräuchte. Daher 
würde ich nur die konfigurieren, die wirklich im Einsatz sind.

> [Mar 31 22:06:42][mtr0] Reading: id=NilItentifier/NilItentifier
> value=20.53 ts=1364760402.648

Ja, das ist der Zufallssensor. Der produziert halt Zufallszahlen :-)

> Prinzipiell dürfte der s0-Zähler also gefundn werden und auch Daten liefen
> Beim phpMyAdmin sind in der Tabelle data auch aktuelle Timestamps zu
> sehen, allerdings ist der value immer '1'.

Die sind vom s0 Zähler, das ist normal.

Gruss
      Rainer



More information about the volkszaehler-dev mailing list