I'm hoping someone here is able to help me.
I have a video multiplexer that provides the following combined JSON output for input and output names, input selection and output power status to name a few.
Is it possible in a single pass to get device names, the name of the input being sent to it and the power status?
Input Name = inputs
Output Name = outputs
input number being directed to output = sstr
Output powered on = orsense
I have been able to pull any 1 of the items but what I would like is
Device based on Outputs, so from below
I would like to get the results to indicate that Device "Left" has Source "1" named "Pi TV 1" and is powered On. Likely a device with multiple features?
Device "Left" - (outputs[1])
Source "4" - (Split(JSON(input, "sstr"), ",")[1])[0]). ...used on the next line....
named "Pi TV 4" (inputs[4])]
powered On (if(orsense[1]))
{
"opol":["N/A","N/A","N/A","N/A","N/A","N/A","N/A","N/A"],
"inputs": ["Pi TV 1","Pi TV 2","Pi TV 3","Pi TV 4","Mac","AppleTV","INPUT7","INPUT8"],
"inputboards": ["N/A","N/A","N/A","N/A"],
"outputboards": ["N/A","N/A","N/A","N/A"],
"outputs": ["Left ","Center","Right","Tap","ATM","BarSeat","Cash","Barber"],
"presetlist": ["Normal","Karaoke","StreamTV","All Pi 1","All Pi 2","All Pi 3","All Pi 4","All Mac"],
"banks": ["Bank 1","Bank 2","Bank 3","Bank 4","Bank 5","Bank 6","Bank 7","Bank 8"],
"matrixlock": 0,
"fststr": "11111111",
"hdcpstr": [00001000],
"sstr": "1,2,3,4,4,2,3,4",
"orsense": [1,1,1,0,0,0,1,1],
"ohpd": [1,1,1,1,1,0,1,1],
"omask": ["Off","Off","Off","Off","Off","Off","Off","Off"],
"ohdcp": [0,0,0,0,0,0,0,0],
"icd": ["8bit","-","-","-","10bit","-","-","-"],
"ics": ["RGB","-","-","-","YUV","-","-","-"],
"ihdcp": [0,0,0,0,1,0,0,0],
"i3d": ["No","No","No","No","No","No","No","No"],
"iactive": [1,0,0,0,1,0,0,0],
"ivr": ["1080","-","-","-","1080","-","-","-"],
"ivh": ["1920","-","-","-","1920","-","-","-"],
"ipi": ["p","-","-","-","p","-","-","-"],
"irr": ["60Hz","-","-","-","60Hz","-","-","-"]
}
I have a video multiplexer that provides the following combined JSON output for input and output names, input selection and output power status to name a few.
Is it possible in a single pass to get device names, the name of the input being sent to it and the power status?
Input Name = inputs
Output Name = outputs
input number being directed to output = sstr
Output powered on = orsense
I have been able to pull any 1 of the items but what I would like is
Device based on Outputs, so from below
I would like to get the results to indicate that Device "Left" has Source "1" named "Pi TV 1" and is powered On. Likely a device with multiple features?
Device "Left" - (outputs[1])
Source "4" - (Split(JSON(input, "sstr"), ",")[1])[0]). ...used on the next line....
named "Pi TV 4" (inputs[4])]
powered On (if(orsense[1]))
{
"opol":["N/A","N/A","N/A","N/A","N/A","N/A","N/A","N/A"],
"inputs": ["Pi TV 1","Pi TV 2","Pi TV 3","Pi TV 4","Mac","AppleTV","INPUT7","INPUT8"],
"inputboards": ["N/A","N/A","N/A","N/A"],
"outputboards": ["N/A","N/A","N/A","N/A"],
"outputs": ["Left ","Center","Right","Tap","ATM","BarSeat","Cash","Barber"],
"presetlist": ["Normal","Karaoke","StreamTV","All Pi 1","All Pi 2","All Pi 3","All Pi 4","All Mac"],
"banks": ["Bank 1","Bank 2","Bank 3","Bank 4","Bank 5","Bank 6","Bank 7","Bank 8"],
"matrixlock": 0,
"fststr": "11111111",
"hdcpstr": [00001000],
"sstr": "1,2,3,4,4,2,3,4",
"orsense": [1,1,1,0,0,0,1,1],
"ohpd": [1,1,1,1,1,0,1,1],
"omask": ["Off","Off","Off","Off","Off","Off","Off","Off"],
"ohdcp": [0,0,0,0,0,0,0,0],
"icd": ["8bit","-","-","-","10bit","-","-","-"],
"ics": ["RGB","-","-","-","YUV","-","-","-"],
"ihdcp": [0,0,0,0,1,0,0,0],
"i3d": ["No","No","No","No","No","No","No","No"],
"iactive": [1,0,0,0,1,0,0,0],
"ivr": ["1080","-","-","-","1080","-","-","-"],
"ivh": ["1920","-","-","-","1920","-","-","-"],
"ipi": ["p","-","-","-","p","-","-","-"],
"irr": ["60Hz","-","-","-","60Hz","-","-","-"]
}
Comment