Skip to content

Instantly share code, notes, and snippets.

@llamafilm
Created October 23, 2024 01:18
Show Gist options
  • Save llamafilm/813699d54db0961766b5bc146b8750f4 to your computer and use it in GitHub Desktop.
Save llamafilm/813699d54db0961766b5bc146b8750f4 to your computer and use it in GitHub Desktop.
-- Qsys Text Controller to print a log message every time an AES67 or Atmos receiver input changes
Components=Component.GetComponents()
for _,v in pairs(Components) do
if v.Type == 'input_box' then
local rx = Component.New(v.Name)
rx['sdp.lan.a'].EventHandler = function(ctl)
print(v.Name .. ' SDP LAN A changed to ' .. ctl.String)
Log.Message(v.Name .. ' SDP LAN A changed to ' .. ctl.String)
end
rx['sdp.lan.b'].EventHandler = function(ctl)
print(v.Name .. ' SDP LAN B changed to ' .. ctl.String)
Log.Message(v.Name .. ' SDP LAN B changed to ' .. ctl.String)
end
rx['stream.name'].EventHandler = function(ctl)
print(v.Name .. ' Stream Name changed to ' .. ctl.String)
Log.Message(v.Name .. ' Stream Name changed to ' .. ctl.String)
end
rx['stream.details'].EventHandler = function(ctl)
print(v.Name .. ' Stream Details changed to ' .. ctl.String)
Log.Message(v.Name .. ' Stream Details changed to ' .. ctl.String)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment