changed example configuration to new format

This commit is contained in:
Steffen Vogel 2011-12-05 21:38:35 +01:00
parent b998412f06
commit f0f36ab142

View file

@ -26,7 +26,7 @@
"meters" : [{
"enabled" : false, /* disabled meters will be ignored */
"protocol" : "sml", /* use 'vzlogger -h' for list of available protocols */
"connection" : "meinzaehler.dyndns.info:7331",
"host" : "meinzaehler.dyndns.info:7331",
"channels": [{
"uuid" : "fde8f1d0-c5d0-11e0-856e-f9e4360ced10",
"middleware" : "http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php",
@ -34,7 +34,8 @@
}, {
"uuid" : "a8da012a-9eb4-49ed-b7f3-38c95142a90c",
"middleware" : "http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php",
"identifier" : "voltage"
"identifier" : "counter",
"counter" : true /* send only delta between to values (simluate impulses) */
}, {
"uuid" : "d5c6db0f-533e-498d-a85a-be972c104b48",
"middleware" : "http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php",
@ -43,17 +44,25 @@
}, {
"protocol" : "random",
"interval" : 2,
"connection" : "40",
"max" : 40.0, /* has to be double! */
"min" : -5.0,
"channel" : {
"uuid" : "bac2e840-f72c-11e0-bedf-3f850c1e5a66",
"middleware" : "http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php"
}
}, {
"protocol" : "s0",
"connection" : "/dev/ttyUSB0",
"port" : "/dev/ttyUSB0",
"channel" : {
"uuid" : "d495a390-f747-11e0-b3ca-f7890e45c7b2",
"middleware" : "http://localhost/workspace/volkszaehler.org/volkszaehler.org/htdocs/middleware.php"
}
},
{
"protocol" : "file",
"path" : "/proc/loadavg",
// "format" : "$i $v $t", /* $i => identifier, $v => value, $t => timestamp, arbitrary text and whitespaces are allowed */
"rewind" : true, /* reset file pointer each interval to the beginning of the file */
"interval" : 2
}
]}