Store and display artmap mappings on nodes in flow view

This commit is contained in:
Ian Gulliver
2026-01-30 22:59:58 -08:00
parent d63b8192d2
commit 587049616b
4 changed files with 115 additions and 7 deletions

View File

@@ -99,6 +99,11 @@ func (s SACNUniverseSet) MarshalJSON() ([]byte, error) {
return json.Marshal(s.Universes())
}
type ArtmapMapping struct {
From string `json:"from"`
To string `json:"to"`
}
type MulticastGroupID int
const (
@@ -452,6 +457,7 @@ type Node struct {
ArtNetOutputs ArtNetUniverseSet `json:"artnet_outputs,omitempty"`
SACNUnicastInputs SACNUniverseSet `json:"sacn_unicast_inputs,omitempty"`
SACNOutputs SACNUniverseSet `json:"sacn_outputs,omitempty"`
ArtmapMappings []ArtmapMapping `json:"artmap_mappings,omitempty"`
Unreachable bool `json:"unreachable,omitempty"`
errors *ErrorTracker
pollTrigger chan struct{}