mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-20 12:29:05 +00:00
Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b38fbdaab4 | |||
| 8d680aa922 | |||
| eba857b324 | |||
| a33c05373f | |||
| a90a74650c | |||
| 212259fc4d | |||
| 3a35b7241d | |||
| c08561a58f | |||
| 402f14ca27 | |||
| 88b455d86b | |||
| 181b3c75d8 | |||
| 0146750efa | |||
| f1ed9c0600 | |||
| d6d8353709 | |||
| 1e02bfc4da | |||
| 477862e73c | |||
| c98ed11bae | |||
| 6a9a418bf5 | |||
| 69cf0949d2 | |||
| dc7bbc6c93 | |||
| ea0b05bbdc | |||
| 5bd3c68fc2 | |||
| b17e00bdb3 | |||
| ea6370644f | |||
| d6d8e7b532 | |||
| bb1517ca73 | |||
| 6935a7d969 | |||
| 98f36a9a46 | |||
| 6d191eaa1d | |||
| e614f31478 | |||
| 7371ac9f8f |
@@ -1,10 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "npm"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "weekly"
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "weekly"
|
|
||||||
@@ -8,10 +8,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ jobs:
|
|||||||
build-docs:
|
build-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|||||||
Generated
+1747
-950
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@showbridge/docs",
|
"name": "@showbridge/docs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.4.0",
|
"version": "0.5.1",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
@@ -14,10 +14,10 @@
|
|||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/check": "0.9.9",
|
"@astrojs/check": "0.9.10",
|
||||||
"@astrojs/starlight": "^0.39.2",
|
"@astrojs/starlight": "0.41.7",
|
||||||
"astro": "^6.3.8",
|
"astro": "7.2.3",
|
||||||
"sharp": "0.34.5",
|
"sharp": "0.35.3",
|
||||||
"typescript": "6.0.3"
|
"typescript": "6.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:recommended"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -10,5 +10,6 @@ Processors are anything that create or manipulate messages. They are configured
|
|||||||
|
|
||||||
A processor YAML block has the following properties
|
A processor YAML block has the following properties
|
||||||
|
|
||||||
|
- **id**: a unique identifier for the processor (auto generated when using the web interface)
|
||||||
- **type**: the processor type
|
- **type**: the processor type
|
||||||
- **params**: optional map for processor configuration values. The valid values will depend on the processor type
|
- **params**: optional map for processor configuration values. The valid values will depend on the processor type
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ Routes take the messages coming from a module and push them through a list of [p
|
|||||||
|
|
||||||
## YAML Definition
|
## YAML Definition
|
||||||
|
|
||||||
|
- **id**: a unique identifier for the route (auto generated when using the web interface)
|
||||||
- **input**: the id of the [module](/concepts/modules) that will provide messages to this route
|
- **input**: the id of the [module](/concepts/modules) that will provide messages to this route
|
||||||
- **processors**: (optional) array of [processors](/concepts/processors) that will be called in order and the result of the previous will be fed to the next processor.
|
- **processors**: (optional) array of [processors](/concepts/processors) that will be called in order and the result of the previous will be fed to the next processor.
|
||||||
- an error in a processor step will result in the individual route being terminated
|
- an error in a processor step will result in the individual route being terminated
|
||||||
|
|||||||
@@ -23,13 +23,17 @@ modules:
|
|||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 53000
|
port: 53000
|
||||||
routes:
|
routes:
|
||||||
- input: sip
|
- id: sip-to-osc
|
||||||
|
input: sip
|
||||||
processors:
|
processors:
|
||||||
- type: osc.message.create
|
- id: create-osc-message
|
||||||
|
type: osc.message.create
|
||||||
params:
|
params:
|
||||||
address: "/cue/{{.Payload.To}}/go"
|
address: "/cue/{{.Payload.To}}/go"
|
||||||
- type: osc.message.encode
|
- id: encode-osc-message
|
||||||
- type: module.output
|
type: osc.message.encode
|
||||||
|
- id: send-osc
|
||||||
|
type: module.output
|
||||||
params:
|
params:
|
||||||
module: udp
|
module: udp
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -23,13 +23,17 @@ modules:
|
|||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 8000
|
port: 8000
|
||||||
routes:
|
routes:
|
||||||
- input: http
|
- id: http-to-osc
|
||||||
|
input: http
|
||||||
processors:
|
processors:
|
||||||
- type: osc.message.create # create OSC message
|
- id: create-osc-message
|
||||||
|
type: osc.message.create # create OSC message
|
||||||
params:
|
params:
|
||||||
address: "{{.Payload.URL.Path}}" # template the address from the incoming message
|
address: "{{.Payload.URL.Path}}" # template the address from the incoming message
|
||||||
- type: osc.message.encode # turn OSC message into bytes
|
- id: encode-osc-message
|
||||||
- type: module.output # output to the udp module
|
type: osc.message.encode # turn OSC message into bytes
|
||||||
|
- id: send-osc
|
||||||
|
type: module.output # output to the udp module
|
||||||
params:
|
params:
|
||||||
module: udp
|
module: udp
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -14,5 +14,6 @@ This processor will decode incoming bytes into an ArtNet packet. This processor
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: artnet.packet.decode
|
- id: decode
|
||||||
|
type: artnet.packet.decode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -14,5 +14,6 @@ This processor will encode an ArtNet packet into an array of bytes. This process
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: artnet.packet.encode
|
- id: encode
|
||||||
|
type: artnet.packet.encode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ This processor will return an error if any of the required parameters are missin
|
|||||||
Issue a `SELECT` statement to a module with id `sqlite`.
|
Issue a `SELECT` statement to a module with id `sqlite`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: db.query
|
- id: query
|
||||||
|
type: db.query
|
||||||
params:
|
params:
|
||||||
module: sqlite
|
module: sqlite
|
||||||
query: "SELECT * from users;"
|
query: "SELECT * from users;"
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will log information about the message being processed to the con
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: debug.log
|
- id: log
|
||||||
|
type: debug.log
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will only pass messages through if the value of the message has c
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: filter.change
|
- id: filter
|
||||||
|
type: filter.change
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `filter.expr` processor evaluates an [Expr expression](https://expr-lang.org
|
|||||||
Match a payload great than or equal to 0
|
Match a payload great than or equal to 0
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: filter.expr
|
- id: filter
|
||||||
|
type: filter.expr
|
||||||
params:
|
params:
|
||||||
expression: "Payload >= 0"
|
expression: "Payload >= 0"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `filter.regex` processor matches incoming string payload against a regular e
|
|||||||
Match strings starting with `hello`
|
Match strings starting with `hello`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: filter.regex
|
- id: filter
|
||||||
|
type: filter.regex
|
||||||
params:
|
params:
|
||||||
pattern: "^hello.*"
|
pattern: "^hello.*"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `float.parse` processor takes a string and parses it as a float with the spe
|
|||||||
This would parse the string payload as a 32 bit float and set the payload to that value.
|
This would parse the string payload as a 32 bit float and set the payload to that value.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: float.parse
|
- id: parse
|
||||||
|
type: float.parse
|
||||||
params:
|
params:
|
||||||
bitSize: 32
|
bitSize: 32
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `float.random` processor will set the payload to a random float between the
|
|||||||
This would generate a random 64-bit float between 1.1 and 1.5 and set the payload to that value.
|
This would generate a random 64-bit float between 1.1 and 1.5 and set the payload to that value.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: float.random
|
- id: random
|
||||||
|
type: float.random
|
||||||
params:
|
params:
|
||||||
bitSize: 64
|
bitSize: 64
|
||||||
min: 1.0
|
min: 1.0
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ This processor will create a new FreeD message with the specified parameters.
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: freed.create
|
- id: freed-message
|
||||||
|
type: freed.create
|
||||||
params:
|
params:
|
||||||
id: "1"
|
id: "1"
|
||||||
pan: "45"
|
pan: "45"
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will decode incoming bytes into a FreeD message. This processor w
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: freed.decode
|
- id: decode
|
||||||
|
type: freed.decode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will encode a FreeD message into an array of bytes. This processo
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: freed.encode
|
- id: encode
|
||||||
|
type: freed.encode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ This process will make an HTTP request to the specified URL using the specified
|
|||||||
Make a GET request to `https://example.com`
|
Make a GET request to `https://example.com`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: http.request.do
|
- id: make-request
|
||||||
|
type: http.request.do
|
||||||
params:
|
params:
|
||||||
method: GET
|
method: GET
|
||||||
url: https://example.com
|
url: https://example.com
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ This processor will create a new HTTP response with the specified status code an
|
|||||||
This would create an HTTP response with a status code of `200` and a body of `OK`
|
This would create an HTTP response with a status code of `200` and a body of `OK`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: http.response.create
|
- id: create-response
|
||||||
|
type: http.response.create
|
||||||
params:
|
params:
|
||||||
status: 200
|
status: 200
|
||||||
bodyTemplate: "OK"
|
bodyTemplate: "OK"
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `int.parse` processor takes a string and parses it as an integer with the sp
|
|||||||
This would parse the string payload as a 32 bit, base 10 integer and set the payload to that value.
|
This would parse the string payload as a 32 bit, base 10 integer and set the payload to that value.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: int.parse
|
- id: parse
|
||||||
|
type: int.parse
|
||||||
params:
|
params:
|
||||||
bitSize: 32
|
bitSize: 32
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ The `int.random` processor will set the payload to a random integer between the
|
|||||||
This would generate a random integer between -127 and 127 and set the payload to that value.
|
This would generate a random integer between -127 and 127 and set the payload to that value.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: int.random
|
- id: random
|
||||||
|
type: int.random
|
||||||
params:
|
params:
|
||||||
min: -127
|
min: -127
|
||||||
max: 127
|
max: 127
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ This processor will scale an integer value from one range to another. This proce
|
|||||||
Scale an integer value from the range 0-255 to the range 0-100
|
Scale an integer value from the range 0-255 to the range 0-100
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: int.scale
|
- id: scale
|
||||||
|
type: int.scale
|
||||||
params:
|
params:
|
||||||
inMin: 0
|
inMin: 0
|
||||||
inMax: 255
|
inMax: 255
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ Convert an incoming byte array or raw string into a JSON object. This processor
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: json.decode
|
- id: decode
|
||||||
|
type: json.decode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will encode an incoming object into a JSON byte array. This proce
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: json.encode
|
- id: encode
|
||||||
|
type: json.encode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ The output payload is the value if the key is found.
|
|||||||
This will attempt to get the value for the `counter` key from the module with an id of `redis`
|
This will attempt to get the value for the `counter` key from the module with an id of `redis`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: kv.get
|
- id: get
|
||||||
|
type: kv.get
|
||||||
params:
|
params:
|
||||||
module: redis
|
module: redis
|
||||||
key: counter
|
key: counter
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `kv.set` processor sets the value of the configured key to the incoming payl
|
|||||||
This will attempt to set the key `hello` using the module with an id of `redis`
|
This will attempt to set the key `hello` using the module with an id of `redis`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: kv.set
|
- id: set
|
||||||
|
type: kv.set
|
||||||
params:
|
params:
|
||||||
module: redis
|
module: redis
|
||||||
key: hello
|
key: hello
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ This processor will create a MIDI Control Change message with the specified chan
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: midi.control_change.create
|
- id: create
|
||||||
|
type: midi.control_change.create
|
||||||
params:
|
params:
|
||||||
channel: "1"
|
channel: "1"
|
||||||
control: "64"
|
control: "64"
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will decode incoming bytes into a MIDI message. This processor wi
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: midi.message.decode
|
- id: decode
|
||||||
|
type: midi.message.decode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will encode a MIDI message into an array of bytes. This processor
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: midi.message.encode
|
- id: encode
|
||||||
|
type: midi.message.encode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ This processor will unpack a MIDI message into its individual components. This p
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: midi.message.unpack
|
- id: unpack
|
||||||
|
type: midi.message.unpack
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ This processor will create a MIDI Note Off message with the specified channel, n
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: midi.note_off.create
|
- id: create
|
||||||
|
type: midi.note_off.create
|
||||||
params:
|
params:
|
||||||
channel: "1"
|
channel: "1"
|
||||||
note: "60"
|
note: "60"
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ This processor will create a MIDI Note On message with the specified channel, no
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: midi.note_on.create
|
- id: create
|
||||||
|
type: midi.note_on.create
|
||||||
params:
|
params:
|
||||||
channel: "1"
|
channel: "1"
|
||||||
note: "60"
|
note: "60"
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ This processor will create a MIDI Program Change message with the specified chan
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: midi.program_change.create
|
- id: create
|
||||||
|
type: midi.program_change.create
|
||||||
params:
|
params:
|
||||||
channel: "1"
|
channel: "1"
|
||||||
program: "10"
|
program: "10"
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `module.output` processor takes any payload and outputs to the specified mod
|
|||||||
Output whatever payload comes through this processor to the `osc-out` module.
|
Output whatever payload comes through this processor to the `osc-out` module.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: module.output
|
- id: output
|
||||||
|
type: module.output
|
||||||
params:
|
params:
|
||||||
module: osc-out
|
module: osc-out
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ This processor will create an OSC message from the provided parameters. This pro
|
|||||||
Create an OSC message with the address `/test/message` and two integer arguments from the payload of the message being processed.
|
Create an OSC message with the address `/test/message` and two integer arguments from the payload of the message being processed.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: osc.message.create
|
- id: create
|
||||||
|
type: osc.message.create
|
||||||
params:
|
params:
|
||||||
address: "/test/message"
|
address: "/test/message"
|
||||||
args: ["{{.Payload[0]}}", "{{.Payload[1]}}"]
|
args: ["{{.Payload[0]}}", "{{.Payload[1]}}"]
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ The `osc.message.decode` processor takes a array of bytes and turn it into OSC m
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: osc.message.encode
|
- id: decode
|
||||||
|
type: osc.message.decode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ The `osc.message.encode` processor takes an OSC message and turns it into an arr
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: osc.message.encode
|
- id: encode
|
||||||
|
type: osc.message.encode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The payload is unchanged so whatever is received by this payload is output unles
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: pubsub.publish
|
- id: publish
|
||||||
|
type: pubsub.publish
|
||||||
params:
|
params:
|
||||||
module: mqtt-out
|
module: mqtt-out
|
||||||
topic: "test"
|
topic: "test"
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The processor will execute the provided Expr expression and return the result as
|
|||||||
This example will add 1 to the wrapped payload.
|
This example will add 1 to the wrapped payload.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: script.expr
|
- id: expr
|
||||||
|
type: script.expr
|
||||||
params:
|
params:
|
||||||
expression: "Payload + 1"
|
expression: "Payload + 1"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ This run your JavaScript program in a [sandboxed environment](https://gitlab.com
|
|||||||
Replace all occurrences of `|` with `,` in the payload
|
Replace all occurrences of `|` with `,` in the payload
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: script.js
|
- id: javascript
|
||||||
|
type: script.js
|
||||||
params:
|
params:
|
||||||
program: |
|
program: |
|
||||||
payload = payload.replaceAll('|',',');
|
payload = payload.replaceAll('|',',');
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ This processor will load and execute a WASM plugin using the [Extism](https://ex
|
|||||||
This example will load the plugin at `./test.wasm` and execute the `test` function
|
This example will load the plugin at `./test.wasm` and execute the `test` function
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: script.wasm
|
- id: wasm
|
||||||
|
type: script.wasm
|
||||||
params:
|
params:
|
||||||
path: "./test.wasm"
|
path: "./test.wasm"
|
||||||
function: "test"
|
function: "test"
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ This processor will create a SIP response message with an audio file as the payl
|
|||||||
This example will create a SIP response that will wait 1 second then play `response.wav` then wait another second before completing the response.
|
This example will create a SIP response that will wait 1 second then play `response.wav` then wait another second before completing the response.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: sip.response.audio.create
|
- id: create-audio-response
|
||||||
|
type: sip.response.audio.create
|
||||||
params:
|
params:
|
||||||
preWait: 1000
|
preWait: 1000
|
||||||
audioFile: "response.wav"
|
audioFile: "response.wav"
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ This processor will create a SIP DTMF response from the provided parameters. If
|
|||||||
This example will create a SIP response that will wait 1 second then play the DTMF digits "1234" then wait another second before completing the response.
|
This example will create a SIP response that will wait 1 second then play the DTMF digits "1234" then wait another second before completing the response.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: sip.response.dtmf.create
|
- id: create-dtmf-response
|
||||||
|
type: sip.response.dtmf.create
|
||||||
params:
|
params:
|
||||||
preWait: 1000
|
preWait: 1000
|
||||||
digits: "1234"
|
digits: "1234"
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `string.create` processor creates a string based on the provided template. T
|
|||||||
This would create a string using the `Address` property of the incoming message like and OSC message
|
This would create a string using the `Address` property of the incoming message like and OSC message
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: string.create
|
- id: create
|
||||||
|
type: string.create
|
||||||
params:
|
params:
|
||||||
template: "{{.Address}}
|
template: "{{.Address}}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ The `string.decode` processor takes a array of bytes and turn it into string. Th
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: string.decode
|
- id: decode
|
||||||
|
type: string.decode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ The `string.encode` processor takes a string and turns it into an array of bytes
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: string.encode
|
- id: encode
|
||||||
|
type: string.encode
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `string.split` processor takes a string and turns it into an array of string
|
|||||||
Split incoming string on `,` i.e `"one,two,three"` -> `["one","two","three"]`
|
Split incoming string on `,` i.e `"one,two,three"` -> `["one","two","three"]`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: string.split
|
- id: split
|
||||||
|
type: string.split
|
||||||
params:
|
params:
|
||||||
separator: ","
|
separator: ","
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ The `time.sleep` processor will sleep for the specified `duration` in millisecon
|
|||||||
This would sleep for 5 seconds before passing the message to the next processor.
|
This would sleep for 5 seconds before passing the message to the next processor.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: time.sleep
|
- id: sleep
|
||||||
|
type: time.sleep
|
||||||
params:
|
params:
|
||||||
duration: 5000
|
duration: 5000
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user