Any way to return what template is active on layer?

I was looking at AMCP Documentation, and noticed that we have CG INFO, but I’ve tried using and doesn’t return anything.

I’m creating some automations, and would be good to know if the Template is active already, so I don’t CG PLAY again.

There’s some way to do this?

INFO 1 will return all the info on the producers of channel 1

Thanks! That definetly works, I’m build my automations using GitHub - SuperFlyTV/casparcg-connection: node.js Javascript/TypeScript library for CasparCG connection and commands. but when I try to use infoChannel, it doesnt get any response.

Do you have any ideas on how to retrieve the INFO 1? Or how would you do it?


Just in case anyone need

const caspar = new CasparCG({host: '127.0.0.1', port:5250})
const info = await caspar.infoChannel({
            channel:1
        })
        
        console.log('------------')
        console.log(info.request)
        return info.request

I wasn’t using .request at the end

But I would still appreciate other ways to retrieve data from Caspar Server in case anyone knows

Have you tried just caspar.info({ channel: 1 })?

.info doesn’t work with the channel parameter, but that’s fine, since I was able to use infoChannel! :slight_smile: