You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To pass the published data (json args array) to the command, use `{args[0]}` and `{args[1]}` which then gets replaced. Message looks like `'{ "args": ["' + temp + '","' + room + '"] }'` for `fritzctl`.
1308
-
outgoing_topic is constructed by parts of incoming topic or as full_incoming topic.
1309
-
1310
-
Note, that for each message targeted to the `launch` service, a new process is
1311
-
spawned (fork/exec), so it is quite "expensive".
1312
-
1313
1289
### `log`
1314
1290
1315
1291
The `log` service allows us to use the logging system in use by _mqttwarn_
@@ -1448,6 +1424,71 @@ This shows the currently full configuration possible. Global values from the
1448
1424
authentication (`auth`) or (`tls`) you may omit those sections. (The `defaults`
1449
1425
section must exist.)
1450
1426
1427
+
### `mqtt_filter`
1428
+
1429
+
The `mqtt_filter` target executes the specified program and its arguments. It is similar
1430
+
to `pipe` but it doesn't open a pipe to the program. It provides stdout as response
1431
+
to a configured queue.
1432
+
Example use cases are f.e. IoT buttons which publish a message when they are pushed
1433
+
and the execute an external program. It is also a clone of [mqtt-launcher](https://github.com/jpmens/mqtt-launcher).
1434
+
With no response configured it acts like `execute` with multiple arguments.
1435
+
1436
+
To pass the published data (json args array) to the command, use `{args[0]}` and `{args[1]}` which then gets replaced. Message looks like `'{ "args": ["' + temp + '","' + room + '"] }'` for `fr
1437
+
itzctl`.
1438
+
1439
+
outgoing_topic is constructed by parts of incoming topic or as full_incoming topic.
0 commit comments