How send TCP command via URL in lua
I currently have a network device I'd like to send commands to. Those commands are sent via a URL to a TCP port. For example:
How can I setup my custom remote button to send the url to that network device. I don't want it to open a browser, or give any kind of response, I just want the button to send the url to initiate the command.
Take a look at the HTTP lib https://github.com/unifiedremote/Docs/blob/master/libs/http.md I think the post method should work for you.
Thanks, but I've looked at that Lib. C:\ProgramData\Unified Remote\Remotes\Bundled\Unified\Core\HTTP this folder contains an example lua including the HTTP lib.
local http = libs.http;
but when I enter my URL in the there to look like this:
It doesn't let me upload my remote into unified remote with that modification. I can't find any example anywhere of how the lua should be edited to accommodate a URL in the button. It appears very straight forward, but it isn't for some reason.
the closest I can find is in pandora which is:
but that opens a browser which is not what I want.
I also can't find a windows command that'll let me achieve the desired result. Telnet will work for me but I can only send commands when logged into a telnet session and I have no idea how to initiate a telnet session in Universal Remote and have it send commands on top of that. That sounds even harder to do, but maybe I'm wrong.
I got it working. For anyone interested in how it was done, here is my remote.lua example
#This refers to the library and must be included in the file
local http = libs.http;
#This is the command being called out. Replace the url with whatever url you require. Make required actions references in layout.xml
Jason VAughan 00
This may be late to the plate but I just saw your posts. Here's how I recall via web browser:
I was wondering if perhaps you've found a way to send a TCP command to the unified remote server to produce the same functionality? I have a remote control system we use in the A/V industry to launch queues on different devices, i.e.; video playback, screen switching etc. I'm looking to do a simple "space" bar emulation but we use a system that doesn't allow for http protocol. I have to use tcp or udp packets directly.
I was playing around with cygwin thinking I might be able to do it via an SSH connection to the windows machine. I do have it working using terminal and applescript on OS X but I haven't been able to do it yet on windows.
Any pointers or help would be most appreciated...!