[vz-users] TD-3511
joisey04 at mac.com
joisey04 at mac.com
Sun Apr 27 21:23:11 CEST 2014
So,
ich hab jetzt mal folgendes image installiert: https://www.energie-und-it.de/raspi/2014-03-22-raspbian-vz-05-3G.img.zip
der Zufalls Schreiber funktioniert, und im Log sagt er auch, dass er D0 pull request erledigt hat:
[Apr 27 21:15:33][d0] sending pullsequenz send (len:5 is:5).
kann ich mir irgendwo anschauen, ob da vom Zähler was daherkommt?
vzlogger.conf
pi at raspberrypi ~ $ cat /etc/vzlogger.conf
/**
* vzlogger configuration
*
* use proper encoded JSON with javascript comments
*
* take a look at the wiki for detailed information:
* http://wiki.volkszaehler.org/software/controller/vzlogger#configuration
*/
{
"retry" : 30, /* how long to sleep between failed requests, in seconds */
"daemon": true, /* run periodically */
//"foreground" : true, /* dont run in background (prevents forking) */
"verbosity" : 500, /* between 0 and 15 */
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */
"local" : {
// "enabled" : false, /* should we start the local HTTPd for serving live readings? */
"port" : 8080, /* the TCP port for the local HTTPd */
"index" : true, /* should we provide a index listing of available channels if no UUID was requested? */
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */
"buffer" : 600 /* how long to buffer readings for the local interface, in seconds */
},
"meters" : [
{
"protocol" : "random",
"enabled" : true,
"interval" : 120,
"max" : 40.0, /* has to be double! */
"min" : -5.0, /* has to be double! */
"channel" : {
"uuid" : "a301d8d0-903b-1234-94bb-d943d061b6a8",
"middleware" : "http://localhost/middleware.php"
}
} // meter
,
//
{
"enabled" : true, /* disabled meters will be ignored */
"protocol" : "d0", /* use 'vzlogger -h' for list of available protocols */
"device" : "/dev/ttyUSB0",
"parity" : "7E1",
"baudrate" : 300,
"pullseq" : "2f3f210d0a", // HEX Darstellung der Pullsequenz
"interval" :500, // Wartezeit bis zum nächsten Pull
"channel" : {
"identifier" : "1-0:1.8.0",
"uuid" : "fa53df00-ce3e-11e3-bd96-c186fd7f4720",
"middleware" : "http://localhost/middleware.php"
}
}
,
//
{
"enabled" : false,
"protocol" : "file",
"path" : "/sys/class/thermal/thermal_zone0/temp",
// "format" : "$v", /* 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" : 20, /* of ommitted, we will try to listen on changes with inotify */
"identifier" : "",
"channel" : {
"uuid" : "f6ff48d0-aeac-11e3-b2ed-3bbb8f66a68d",
"middleware" : "http://localhost/middleware.php"
} // channel
} // meter
,
{
"enabled" : false,
"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" : 10, /* of ommitted, we will try to listen on changes with inotify */
"aggtime" : 300, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */
"aggfixedinterval" : true, /* round all timestamps to middleware to nearest aggtime */
"channel" : {
"uuid" : "6b935420-af46-11e3-aea7-f7bf03375759",
"middleware" : "http://localhost/middleware.php",
"aggmode" : "MAX" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAX and NONE */
} // channel
} // meter
]} // end of config
pi at raspberrypi ~ $
On 27.04.2014, at 19:08, Rainer Gauweiler <volkszaehler at moppl.inka.de> wrote:
> Hallo,
>
> Am 27.04.2014 18:57, schrieb joisey04 at mac.com:
>> yep, das ist alles was drin steht, und das sollte ja reichen, damit ich, wenn ich vzlogger -c starte auf der Konsole sehe ob’s funktioniert. oder?
>
> Hm, keine Ahnung, was genau er da loggt bei Verbosity 15. Stell es mal auf 999.
> Und ich würde die fehlenden Zeilen dazu machen. vzlogger ist zickig ohne Ende.
>
> Kannst ja auch das C-Programm aus dem Wiki noch testen.
>
> Gruss
> Rainer
>
>
More information about the volkszaehler-users
mailing list