Facility Control

 View Only
  • 1.  HTTP Get Request to Control 3rd party gear

    Posted 03-07-2019 21:51
    Hey everyone,

    Im pretty new to the Ross Custom Control panel and im trying POC some control of external 3rd party gear for use on a new project. Currently trying to change the source of a KVM with an HTTP Get Request.

    The equipment requires that a fire an HTTP Get Request as follows:

    /cgi-bin/channel?km=3

    I was able to make this work through a command line on my computer connected to the system using the following:

    curl -g /cgi-bin/channel?km=3

    In Dashboard i am attempting to do the same using the pre built OgScript HTTP ASync Message (this may not be the write way to do this) with the below inputs:

    url: /cgi-bin/channel?km=3
    method: GET
    content: text/plain (i have tried all options in this dropdown)
    data: (nothing)
    callback: null

    I would appreciate any input or experience anyone has had in this area. As i said i'm new to this and learning as i go so any input would be Awesome!


  • 2.  RE: HTTP Get Request to Control 3rd party gear

    Posted 03-08-2019 16:29
    Hi @kierenm@fb.com
    If your KVM is specifically looking for a GET request with no output, try the visual logic block again with the following changes to your arguments:

    url: http:///cgi-bin/channel?km=3
    method: GET
    content: text/plain
    data: null
    callback: null

    If that doesn't work, we can debug further.

    Cheers.

    James

    #DashBoard


  • 3.  RE: HTTP Get Request to Control 3rd party gear

    Posted 03-08-2019 19:14

    Hey James,

    Thanks for the advise. Your idea unfortunately did not work but this could be due to the following data i found after making the post. After writing this post i found that i was able to get a "reaction" form the device by adding the http:// and removing the "/channel?km=3" portion of the URL and adding "anything" to the data section. Mostly attempting to add the "command" /channel?km=3. This seemed to rest the device back to comp 1 no matter what was in the data section. Web looking at the web GUI the http://10.26.1.245/cgi-bin lands in the URL and Channel and KM are changeable parameters. Below is where i have hit a dead end which seems to reset all parameters to 1. I have attached a picture of the web GUI

    url: http:///cgi-bin/
    method: GET
    content: text/plain
    data: /channel?km=3
    callback: null


    #DashBoard


  • 4.  RE: HTTP Get Request to Control 3rd party gear

    Posted 03-08-2019 20:13
    Some further troubleshooting and inspection of the GUI code i found that it needed to be a "text/xml". That coupled with the info you provided on data: null and http:// i was able to make this work.
    Appreciate all the help James!

    Final config:

    url: http:///cgi-bin/channel?km=3
    method: GET
    content: text/xml
    data: null
    callback: null
    #DashBoard