Configure Web User Interface Device

Hi,
I am using Televic Voting device.,its work in web Server .. This device having separate Window Screen ., I want to display that Device screen in my touch panel .,How can i make an code using button event .

Comments

  • HARMAN_ChrisHARMAN_Chris Harman Professional University Posts: 300
    edited February 4

    Do you have a G5 panel? If so, you can launch a browser window via netlinx.

    SEND COMMAND Panel,'^APP-0,0,Browser,URI,string,http://www.amx.com'
    
  • KarthikKarthik Posts: 25

    sorry, Am using G4 Panel., and its not a browser . The device its working on Http . I want to send an ' http:// IP_Address/Cocon/Connect ' to that device and wants to Display that device screen in my MST-1001 Touch panel. . Please Provide the Programming syntax

  • HARMAN_icraigieHARMAN_icraigie Technical Trainer II, Harman Professional University Posts: 495

    For a Roku but shows minimum requirement for building http 1.1. Roku implements GET and POST modes.

    define_function sendRokuHttp(char iMode[20], char iCmd[50])
    {
        stack_var char iPacket[500];
    
        // Minimum HTTP 1.1 Requirement
        iPacket = "iMode,' ',iCmd,' HTTP/1.1',$0D,$0A,
              'Host: ',uRokuIpConnection.address,':',itoa(uRokuIpConnection.port),$0D,$0A,
              $0D,$0A";// HTTP terminates with the empty line
    
        amx_log(AMX_INFO,"'sendRokuHttp(',iMode,',',iCmd,')'");
    
        if(uRokuIpConnection.isConnected == TRUE)
        {
          amx_log(AMX_INFO,"'send_string dvIP_ROKU,',iPacket");
          send_string dvIP_ROKU,iPacket;
        }
        else
        {
          sRokuIpQueue = "sRokuIpQueue,iPacket";
          ip_client_open(dvIP_ROKU.PORT, uRokuIpConnection.address, uRokuIpConnection.port, uRokuIpConnection.mode);
        }
    }
    
    data_event[dvIP_ROKU]
    {
        online:
        {
            uRokuIpConnection.isConnected = TRUE;
        // Empty the Queue
          while(find_string(sRokuIpQueue, "$0D,$0A,$0D,$0A", 1)) // Standard HTTP terminator
           {
              stack_var char iMessage[500];
    
              iMessage = remove_string(sRokuIpQueue, "$0D,$0A,$0D,$0A", 1);
              amx_log(AMX_INFO,"'send_string dvIP_ROKU,',iMessage");
              send_string data.device,iMessage;
          }
        }
    }
    
    timeline_event[TL_ROKU_CONNECT]
    {
        sendRokuHttp('GET', '/query/active-app');
    }
    
    button_event[dvTP_1_ROKU, BTN_MEDIADB_LIST] // BTN_MEDIADB_LIST from G4API
    {
        push:
        {
          stack_var integer iBtn
    
          iBtn = get_last(BTN_MEDIADB_LIST);
          sendRokuHttp('POST', "'/launch/',sRokuAppList[iBtn]" );
          sActiveApp = sRokuAppList[iBtn]; // Fake feedback
        }
    }
    
Sign In or Register to comment.