mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-08 07:03:39 +00:00
rename router.output processor
This commit is contained in:
+5
-5
@@ -236,6 +236,11 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Module",
|
||||
collapsed: true,
|
||||
items: [{ autogenerate: { directory: "processors/module" } }],
|
||||
},
|
||||
{
|
||||
label: "MQTT",
|
||||
collapsed: true,
|
||||
@@ -275,11 +280,6 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Router",
|
||||
collapsed: true,
|
||||
items: [{ autogenerate: { directory: "processors/router" } }],
|
||||
},
|
||||
{
|
||||
label: "Script",
|
||||
collapsed: true,
|
||||
|
||||
@@ -29,7 +29,7 @@ routes:
|
||||
params:
|
||||
address: "/cue/{{.Payload.To}}/go"
|
||||
- type: osc.message.encode
|
||||
- type: router.output
|
||||
- type: module.output
|
||||
params:
|
||||
module: udp
|
||||
`;
|
||||
|
||||
@@ -29,7 +29,7 @@ routes:
|
||||
params:
|
||||
address: "{{.Payload.URL.Path}}" # template the address from the incoming message
|
||||
- type: osc.message.encode # turn OSC message into bytes
|
||||
- type: router.output # output to the udp module
|
||||
- type: module.output # output to the udp module
|
||||
params:
|
||||
module: udp
|
||||
`;
|
||||
|
||||
@@ -5,7 +5,7 @@ sidebar:
|
||||
order: 2
|
||||
---
|
||||
|
||||
This processor will create a new HTTP response with the specified status code and body template. The created response will be passed through to the next processor in the chain. If the response is subsequently sent to an HTTP server module using the [router.output](../router/output.md) processor, the status code and body template set by this processor will be used for the response sent to the client. This processor will return an error if there is an issue executing the body template.
|
||||
This processor will create a new HTTP response with the specified status code and body template. The created response will be passed through to the next processor in the chain. If the response is subsequently sent to an HTTP server module using the [module.output](../module/output.md) processor, the status code and body template set by this processor will be used for the response sent to the client. This processor will return an error if there is an issue executing the body template.
|
||||
|
||||
- **type**: `http.response.create`
|
||||
- **params**:
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: Output to module
|
||||
sidebar:
|
||||
label: Output
|
||||
order: 1
|
||||
---
|
||||
|
||||
The `module.output` processor takes any payload and outputs to the specified module.
|
||||
|
||||
- **type**: `module.output`
|
||||
- **params**:
|
||||
- **module**: the id of the [module](/concepts/modules) to output to.
|
||||
|
||||
### Example
|
||||
|
||||
Output whatever payload comes through this processor to the `osc-out` module.
|
||||
|
||||
```yaml
|
||||
- type: module.output
|
||||
params:
|
||||
module: osc-out
|
||||
```
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
title: Output from Router
|
||||
sidebar:
|
||||
label: Output
|
||||
order: 1
|
||||
---
|
||||
|
||||
The `router.output` processor takes any payload and outputs to the specified module.
|
||||
|
||||
- **type**: `router.output`
|
||||
- **params**:
|
||||
- **module**: the id of the [module](/concepts/modules) to output to.
|
||||
|
||||
### Example
|
||||
|
||||
Output to the `osc-out` module.
|
||||
|
||||
```yaml
|
||||
- type: router.output
|
||||
params:
|
||||
module: osc-out
|
||||
```
|
||||
@@ -5,7 +5,7 @@ sidebar:
|
||||
order: 1
|
||||
---
|
||||
|
||||
This processor will create a SIP response message with an audio file as the payload. If this message is output to a SIP module using the [router.output](/processors/router/output) processor, then the SIP module will send the response to the caller and play the audio file included in the response.
|
||||
This processor will create a SIP response message with an audio file as the payload. If this message is output to a SIP module using the [module.output](/processors/module/output) processor, then the SIP module will send the response to the caller and play the audio file included in the response.
|
||||
|
||||
- **type**: `sip.response.audio.create`
|
||||
- **params**:
|
||||
|
||||
@@ -5,7 +5,7 @@ sidebar:
|
||||
order: 1
|
||||
---
|
||||
|
||||
This processor will create a SIP DTMF response from the provided parameters. If this message is output to a SIP module using the [router.output](/processors/router/output) processor, then the SIP module will send the response to the caller and play the DTMF tones specified.
|
||||
This processor will create a SIP DTMF response from the provided parameters. If this message is output to a SIP module using the [module.output](/processors/module/output) processor, then the SIP module will send the response to the caller and play the DTMF tones specified.
|
||||
|
||||
- **type**: `sip.response.dtmf.create`
|
||||
- **params**:
|
||||
|
||||
Reference in New Issue
Block a user