Check if a source is "No Signal"

Is there a way of checking if a video source is getting “no signal,” perhaps though API. I’m looking to program something, so it’ll alert us not to switch to that camera.

Hello!

You can use

http://192.168.0.17/api/sources/status

so via curl:

curl -X GET -u admin: http://192.168.0.17/api/sources/status

Parsed result (Pearl-2):

{“status”:“ok”,“result”:[{“id”:“D2P490182.hdmi-a”,“name”:“HDMI-A”,“status”:{“video”:{“state”:“active”,“resolution”:“0x0”,“actual_fps”:0,“vrr”:0,“interlaced”:false}}}

Notice the 0x0 bolded. When this is present, the No Signal image will be displayed in the input.