[vz-dev] Ferraris-Zähler-Lesekopf

Andreas Goetz cpuidle at gmail.com
Tue Aug 5 07:54:36 CEST 2014


Hier ist die komplette conf- danke für Eure Hilfe:

/**
 * 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,        /* run in background */
    "verbosity": 5,            /* between 0 and 15 */
    //"log" : "/var/log/vzlogger.log",    /* path to logfile, optional */

    "local": {
//        "enabled" : true,    /* 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": [{
            "enabled": true,
            "protocol": "s0",
            "device": "/dev/ttyUSB0",
            "resolution": 1,    /* number of impulses per kWh, feature of
the meter */
            "aggtime": 5,        /* aggregate all signals and give one
update to middleware every 'aggtime' seconds */
            "aggfixedinterval": false,        /* round all timestamps to
middleware to nearest aggtime, reduces accuracy, use only when needed, e.g.
SolarAnalyser */
            "channel": {
                "uuid": "30cd1f60-1bed-11e4-b68a-f1311b4831d4",
                "middleware": "http://127.0.0.1/middleware.php",
                "identifier": "Impulse",    /* counts the S0 impulses. Can
also supply "Power" readings */
                "aggmode": "SUM"            /* add all s0 intervals in the
aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/
            }
        },

        {
            "enabled": false,
            "protocol": "file",
            "path": "/proc/loadavg",
            "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": 2,        /* of ommitted, we will try to listen on
changes with inotify */
            "channel": {
                "uuid": "0bfe6f80-1bf2-11e4-ba0a-35ffeef6a412",
                "middleware": "http://127.0.0.1/middleware.php",
                "identifier": "Power",    /* counts the S0 impulses. Can
also supply "Power" readings */
                "aggmode": "AVG" /* add all s0 intervals in the
aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/
            }
        }
    ]
}

Der zweite Kanal ist zum zum testen da, tatsächlich helfen mir die
Kommentare bei format aber nicht das Richtige für den raspi zu finden (auch
die scanf Doku nicht). Ist aber nur ein Nebenkriegsschauplatz...

vg
Andreas



2014-08-04 20:17 GMT+02:00 Udo1 <udo1 at gmx.net>:

> Hallo Andreas,
>
> Am 04.08.2014 20:01, schrieb Andreas Goetz:
>
>  nd hänge am logger (cpp Version):
>>
> zeig mal die komplette vzlogger.conf
>
> Gruß
> Udo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-dev/attachments/20140805/8db377ca/attachment.html>


More information about the volkszaehler-dev mailing list