Skip to content

Commit

Permalink
meterExec support
Browse files Browse the repository at this point in the history
  • Loading branch information
mbehr1 committed Mar 30, 2015
1 parent 2a5857a commit 913495e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 17 additions & 1 deletion etc/vzlogger_generic.schema.json
Expand Up @@ -190,13 +190,28 @@
]
},

"meterExec": {
"title": "meter extracting data from the output of a shell command/executable",
"allOf": [
{ "$ref": "#/definitions/meter" },
{ "properties": {
"protocol": { "type": "string", "enum": ["exec"] },
"command": { "type": "string", "description": "Command to be executed. Only possible if running as non root. Output will be parsed." },
"format": { "type": "string", "description": "optional format string. Supports $v for value, $i for identifier and $t for timestamp. E.g. $i:$v. If empty just a value is read from each line of the file." }
},
"required": [ "command" ]
}

]
},

"meterFluksoV2": {
"title": "fluksov2 meter",
"allOf": [
{ "$ref": "#/definitions/meter" },
{ "properties": {
"protocol": { "type": "string", "enum": ["fluksov2"] },
"fifo": { "type": "string", "description": "fifo to be used. E.g. /var/spid/delta/out" }
"fifo": { "type": "string", "description": "fifo to be used.", "default": "/var/run/spid/delta/out" }
},
"required": [ "fifo" ]
}
Expand All @@ -221,6 +236,7 @@
{"$ref": "#/definitions/meterSML"},
{"$ref": "#/definitions/meterRandom"},
{"$ref": "#/definitions/meterFile"},
{"$ref": "#/definitions/meterExec"},
{"$ref": "#/definitions/meterFluksoV2"}
]}
}
Expand Down
2 changes: 0 additions & 2 deletions etc/vzlogger_generic.schema.json.todo
Expand Up @@ -9,7 +9,5 @@
}
todo: "meters" can be called "sensors" as well
todo: add regex for uuid (see config_validate_uuid())
todo: enum for api (mysmartgrid, null, volkszaehler)
todo: enum for protocol (d0, sml, fluksov2, file, exec, s0)
todo: meterD0 needs device or host
*/

0 comments on commit 913495e

Please sign in to comment.