bitfocus / companion-module-cisco-roomos

MIT License
5 stars 2 forks source link

custom xCommand Preset button #5

Open nottooloud opened 3 years ago

nottooloud commented 3 years ago

xConfig button works great and will be very handy. I assume the xCommand button just isn't wired up yet? I'd guess layout of that is a bit of a puzzle, since you can pack a lot of parameters into one command.

AlexMPopov commented 3 years ago

Hello. Here is a 2 examples that worked for me:

Screenshot 2021-05-21 at 09 12 51 Screenshot 2021-05-21 at 09 12 24

`xCommand/Video/Selfview/Set {"FullscreenMode":"On","OnMonitorRole":"Second","Mode":"On"}

xCommand/Video/Matrix/Assign {"Output":3,"SourceID":2,"Mode":"Add"} `

jruys commented 3 years ago

Adding another example. I was tinkering with the local layout - this works for me:

image

nottooloud commented 3 years ago

Spaces work in the Method, same as is noted in the xConfig Preset. Screen Shot 2021-05-25 at 1 33 07 PM

nottooloud commented 3 years ago

The all cameras Preset Store xCommand uses Method Preset Store and Params {"PresetID":1,"Type":"Camera","Description":"your preset name"}

bwentzel commented 3 years ago

xCommand

@AlexMPopov can you confirm it worked on your side with method set to “xCommand …” Seems others only get it to work when leaving xCommand out. Example working: UserInterface Extensions Panel Clicked

not working: xCommand UserInterface Extensions Panel Clicked

AlexMPopov commented 3 years ago

@bwentzel you are correct in that it worked with xcommand. The screenshot I posted is from a working setup.

nottooloud commented 3 years ago

My commands don't work if I include xCommand. What codec and firmware are you controlling? I'm on a C20 running TC 7.3.

rgischig commented 2 years ago

Hi nottooloud,

I've worked at Cisco when TC 7.3 was new.. this was many many moon's ago. If you can get your hands on a new device wich would run a CE software, like a SX20 or later, I would argue that it should work. The TC series software is really old, so I don't think there is even support for webhooks. You might can use a TCL script from a Raspi to telnet into the C20, and execute the comand like that (similar to the example I've done with some PoE switches, which don't offer an API.. https://gischig.com/controling-my-cisco-sg300-switch-with-the-streamdeck-paspi/ )

roman

SveinTerje commented 1 year ago

This issue should be closed. The feature works perfectly on CE and RoomOS software. TC Software should be out of scope as it is end of support.