Keyboard Shortcuts
Likes
- Crestron
- Messages
Search
REST API for Crestron Virtual Control
#simplsharppro
G'day all,
Has anyone successfully added or modified a program file on a VC4 using curl and the REST API from a command line? I've tried but have been unable to make it work. I can query the existing programs using the following; curl -k -X GET "http://10.0.0.222/VirtualControl/config/api/ProgramLibrary" -H "accept: application/json" -H "Authorization: [#####]"
I can't work out how to send the program file. When I try to send the following; curl -k -X PUT "http://10.0.0.222/VirtualControl/config/api/ProgramLibrary" -d {"ProgramId":23,"AppFile":"D:\CrestronCode\Code\bin\Debug\test.cpz"} -H "accept: application/json" -H "Authorization: [#####]"
I receive the following message. {
"Actions": [
{
"Operation": "set partial",
"Results": [
{
"path": "Device.Programs.ProgramLibrary",
"object": "NULL",
"StatusInfo": "ProgramId: Missing required parameter in the JSON body or the post body or the query string",
"StatusId": 6
}
],
"TargetObject": "ProgramLibrary",
"Version": "2.0.1"
}
]
}
?
Thanks in advance. |
AP4 Control Subnet
I'm using an AP4 processor and a program needs to configure the processer with a control subnet. External 3073 to internal 3073 and the control subnets IP address ? How do I go about doing the mapping in AP4? I don't seem to be able to find any information nor documentation for it. Appreciate any pointer, thank you in advanced! ? |
Re: Access RMC Scaler (via DM-MD) from SSH or Telnet
#programming
Yes, Lincoln is correct.? You want to use the? "uprogcmd" symbol.? Not the "console" symbol as I incorrectly stated.? That's what I get by doing thing from memory rather than looking at what I actually have done in the past.
|
Re: Access RMC Scaler (via DM-MD) from SSH or Telnet
#programming
¿ªÔÆÌåÓýYou could route the output of the UCMD symbol to a SIO ¨C you could then match something like ¡°PROJON¡± (without the quotes) in the SIO and the corresponding digital would go high when you sent UCMD ¡°PROJON¡± (with the quotes) ¨C tying that to something like a stepper that hit the projector on command (note that the SIO has a floating buffer and the digital output for a match will stay high as long as the buffer content matches¡it is not pulsed. ? -- Lincoln King-Cliby, CTS, DMC-E-4K/T/D ? From: [email protected] [mailto:[email protected]]
On Behalf Of patrickgi@...
Sent: Saturday, October 15, 2022 5:45 PM To: [email protected] Subject: Re: [crestron] Access RMC Scaler (via DM-MD) from SSH or Telnet #programming ? Thanks for answering, I was pretty sure by now that it wasn't possible.? |
Re: VC-4 lack of console for printing msgs
Tim's code from Masters 2022 MSS-431 has a VirtualConsole class suited to this purpose.? You can telnet in and even have it re-print the previous debug messages.? You can find it linked from his presentation in OLH 2015. On Fri, Oct 14, 2022 at 9:36 AM jeff via <jeff.mackie=[email protected]> wrote: Yes sorry... Program Instance. In our case we use a spare room license for debugging, and stop that program when we are done. You could actually do something similar by creating a program/cron that runs on the linux server. |
Re: Access RMC Scaler (via DM-MD) from SSH or Telnet
#programming
You most certainly can use the USRPROGCMD command to send serial data out of the RMC comport with a little bit of SIMPL and/or SIMPL+.? I use USERPROGCMD all the time to check the status of of something or to issue a command.? Done it both with Telnet and SSH via a VPN from my host Linux laptop without opening a Windows VM. ? The easiest way to do it is make a SIMPL module that controls all the functions you want to do on your projector -- in most case, you will already have a module for this.?? Put a Console symbol in your SIMPL program and your USRPROGCMD signals will come out of the Console symbol.? Then run the Console symbol to a SIO and put all the commands you want to do in the parameter list.? For example, one of those commands may be "projector on".? Route each digital signal from the? SIO to a MMV or stepper and then pulse the proj_ON signal on your SIMPL module for the projector.? It is a good ideal to feed the SIO digital output of the SIO back to the digital inputs of the SIO and in the parameter list, give it a descriptive name such as "Sending Power On to projector/n" so you know you have spelled the command correctly. On Sat, Oct 15, 2022 at 04:50 PM, <patrickgi@...> wrote: My next curiosity is this: I have been playing around with the 'User Program Commands' module, to see if I can have a user send a terminal command TO the control system, and trigger functionality that way. I'm not totally understanding how the module works. There is a single [rs$] output on it, which corresponds to the command in USERPROGCMD "<command>". How would one route a serial command like this to, lets say, a digital input that turns a projector on? How can one convert a serial commnd to a digital process in module? |
Re: Access RMC Scaler (via DM-MD) from SSH or Telnet
#programming
Thanks for answering, I was pretty sure by now that it wasn't possible.?
I have a few goals. One, was a simple curiosity what/how much can be accomplished from my VPN, without having my Windows VM opened up, and just using my Mac. I was hoping to build a some documentation for my IT team to be able to do some remote triage on our legacy systems, if I am on vacation or otherwise not available. So for example, I was going thourgh the process of what a full system shutdown without a processor online could be.? My next curiosity is this: I have been playing around with the 'User Program Commands' module, to see if I can have a user send a terminal command TO the control system, and trigger functionality that way. I'm not totally understanding how the module works. There is a single [rs$] output on it, which corresponds to the command in USERPROGCMD "<command>". How would one route a serial command like this to, lets say, a digital input that turns a projector on? How can one convert a serial commnd to a digital process in module? |
Re: Access RMC Scaler (via DM-MD) from SSH or Telnet
#programming
¿ªÔÆÌåÓýAFAIK, there isn¡¯t a way to access a serial port on an endpoint in that way ¨C passto /passthru have been historically used to access the console of devices (and in a very modal method ¨C e.g. while a passto session is active basically everything else stops). The IO ports are really architected to be under programmatic control ? What problem are you trying to solve? ? -- Lincoln King-Cliby, CTS, DMC-E-4K/T/D ? From: [email protected] <[email protected]> On Behalf Of
patrickgi@...
Sent: Friday, October 14, 2022 11:20 AM To: [email protected] Subject: [crestron] Access RMC Scaler (via DM-MD) from SSH or Telnet #programming ? I'm wondering if I can access an RMC-Scaler-C's RS 232 port from SSH or Telnet.
|
Re: Off Topic: Epson 5050UB Trigger
¿ªÔÆÌåÓýGet a Niles APC-2 from eBay, plug the projector into the "Current Sensing" outlet, and use the 12v output or relay output to drive the projector lift.
|
Re: Off Topic: Epson 5050UB Trigger
Thanks John.
At this point, no Crestron control, just manual. AV Receiver trigger controls lift (old Panasonic projector melted from being sent up too early from AV Receiver trigger...trying to avoid repeating issue.) Also, there is an IR receiver in room, so threat of someone/house cleaner, etc. accidentally turning projector on with its native remote. I want the lift to be controlled from projector.? If that projector is on, I want lift down, no matter what and how. |
Access RMC Scaler (via DM-MD) from SSH or Telnet
#programming
I'm wondering if I can access an RMC-Scaler-C's RS 232 port from SSH or Telnet.
I'm starting first with textconsole. I'm looking at the PASSTHRU and PASSTO commands, but having trouble with the syntax that gets me to the slot I need, and then the RS-232. The 3-Series programming manual mentions creating an address book entry with the 'indirect' option. But that will give me connections to RS-232 out of a COM port, or let me access a card slot. So, for example, I can access card slot 17, but not 17.1.? Is what I'm trying to do possible? And if so, am I on the right track with either of these commands? What would be the syntax if so? Or, is there a better way? Thanks |
Hdmi Matrix IR Driver
#crestronhome
Hi!
I would like you to help me with creating an IR driver for a
Matrix HDMI in Crestron Home, the procedure for creating it in ToolBox I can do, my question is which type of device is most suitable
to do this function. In the Device Type list I know I should choose
among the options with a yellow asterisk. I already have the IR codes.
You will only need 3 inputs and 1 output.
Which device type would you choose?
Thanks! |
Hdmi Matrix IR Driver
¿ªÔÆÌåÓýHi!
I would like you to help me with creating an IR driver for a
Matrix HDMI in Crestron Home, the procedure for creating it in ToolBox I can do, my question is which type of device is most suitable
to do this function. In the Device Type list I know I should choose
among the options with a yellow asterisk. I already have the IR codes.
You will only need 3 inputs and 1 output.
Which device type would you choose?
Thanks!
|