77 lines
1.9 KiB
TOML
77 lines
1.9 KiB
TOML
# artmap configuration
|
|
# Run with: go run . --config=config.toml [flags]
|
|
#
|
|
# Flags:
|
|
# --artnet-listen=:6454 ArtNet listen address (empty to disable)
|
|
# --artnet-broadcast=auto Broadcast addresses (comma-separated, or 'auto')
|
|
|
|
# Target addresses for output universes
|
|
# ArtNet: target IP (broadcast or unicast), ArtPoll discovery sent to all
|
|
# sACN: unicast targets sent in addition to multicast
|
|
[[target]]
|
|
universe = "artnet:0.0.0"
|
|
address = "2.255.255.255"
|
|
|
|
[[target]]
|
|
universe = "artnet:0.0.5"
|
|
address = "10.50.255.255"
|
|
|
|
[[target]]
|
|
universe = "sacn:1"
|
|
address = "192.168.1.100"
|
|
|
|
# Address format:
|
|
# proto:universe[:channels]
|
|
#
|
|
# Protocol prefix (required):
|
|
# artnet: - ArtNet protocol
|
|
# sacn: - sACN/E1.31 protocol
|
|
#
|
|
# Universe: "net.subnet.universe" or plain number (all 0-indexed, 0-127.0-15.0-15)
|
|
# Channels: 1-indexed (1-512), matching DMX convention
|
|
#
|
|
# From examples:
|
|
# "artnet:0.0.1" - universe 1, all channels (1-512)
|
|
# "sacn:64:50" - universe 64, channel 50 only
|
|
# "artnet:0.0.1:50-" - universe 1, channels 50-512
|
|
# "sacn:1:50-100" - universe 1, channels 50-100
|
|
#
|
|
# To examples:
|
|
# "artnet:0.0.1" - universe 1, starting at channel 1
|
|
# "sacn:1:50" - universe 1, starting at channel 50
|
|
|
|
# Remap entire universe
|
|
[[mapping]]
|
|
from = "artnet:0.0.0"
|
|
to = "artnet:0.0.5"
|
|
|
|
# Channel-level remap for fixture spillover
|
|
# Channels 450-512 from universe 0 -> channels 1-63 of universe 1
|
|
[[mapping]]
|
|
from = "artnet:0.0.0:450-512"
|
|
to = "artnet:0.0.1:1"
|
|
|
|
# Using plain universe numbers
|
|
[[mapping]]
|
|
from = "artnet:2"
|
|
to = "artnet:10"
|
|
|
|
# Multiple outputs from same source
|
|
[[mapping]]
|
|
from = "artnet:0.0.3"
|
|
to = "artnet:0.0.7"
|
|
|
|
[[mapping]]
|
|
from = "artnet:0.0.3"
|
|
to = "artnet:0.0.8"
|
|
|
|
# Output to sACN instead of ArtNet
|
|
[[mapping]]
|
|
from = "artnet:0.0.4"
|
|
to = "sacn:1"
|
|
|
|
# Convert sACN input to ArtNet output
|
|
[[mapping]]
|
|
from = "sacn:5"
|
|
to = "artnet:0.0.5"
|