mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
http > osc example config
This commit is contained in:
22
config.json
22
config.json
@@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
"modules": [
|
"modules": [
|
||||||
{
|
{
|
||||||
"id": "tcp",
|
"id": "http",
|
||||||
"type": "net.tcp.server",
|
"type": "net.http.server",
|
||||||
"params": {
|
"params": {
|
||||||
"port": 8000,
|
"port": 3000
|
||||||
"framing": "LF"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -13,13 +12,24 @@
|
|||||||
"type": "net.udp.client",
|
"type": "net.udp.client",
|
||||||
"params": {
|
"params": {
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
"port": 8888
|
"port": 8000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"input": "tcp",
|
"input": "http",
|
||||||
|
"processors": [
|
||||||
|
{
|
||||||
|
"type":"osc.message.create",
|
||||||
|
"params": {
|
||||||
|
"address": "{{.URL.Path}}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "osc.message.encode"
|
||||||
|
}
|
||||||
|
],
|
||||||
"output": "udp"
|
"output": "udp"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user