XReceive plugin : send command to Xlobby

Xlobby plugin development

Re: XReceive plugin : send command to Xlobby

Postby hjackson on Mon Jan 12, 2009 2:05 am

I haven't ben able to get XSend to work at all. I downloaded the plugin (latest ver) to both PCs. On the HTPC I configured the conf file (I used a new IP address [192.168.1.103] but kept the default port [8000]). My first goal is to change the screen on the HTPC to the "movies" screen from my tablet PC/Xlobby remote. In the "Events" screen I entered this line in the Setup>Events>Commands>Plugin windows:
Plugin window [XReceive]
Command window [XSend.exe "command:xlobby:goto screen:movies" 8000 192.168.1.103]
Variable window is blank

I'm not clear if I still need to use symbols for the blanks within the quotes, add the ampersand (&), what to do with the "Variable window" or the line " plugin>XReceive>received ".
Thanks in advance.

hjackson
hjackson
 
Posts: 371
Joined: Sat Nov 29, 2003 7:12 am
Location: Tampa, Florida

Re: XReceive plugin : send command to Xlobby

Postby Marbles_00 on Mon Jan 12, 2009 2:28 am

On the sending computer, you should setup an OS command like this:

Code: Select all
File:
*Location of the XSend.exe file*
Arguments:
"xlobby event on the XReceive computer" port IP


Example (from my HTPC to control KX volume on my music-server)
File:
C:\Program Files\xlobby\plugins\XReceive\XSend.exe
Arguments:
"music:volume:10" 7750 192.168.0.11

For changing screens or performing functions, all that is needed on the receiving computer is Xreceive with the proper port and IP define (which it looks like you have already done).

You can also display things on an Xreceiving screen by using the following text vaiable:
plugin>XReceive>received

The only thing with that is that it will display the last command received. I used this to display zone (source) information from my music-server onto my HTPC.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: XReceive plugin : send command to Xlobby

Postby hjackson on Mon Jan 12, 2009 9:15 am

Thanks for the reply Marbles. I had also downloaded your Mirage skin as a guide. (your codes for the MusicServer events seem vastly different from what you showed me...) I still can't get it to work. I checked the status of the HTPC and it had port 8002 instead of port 8000, so I changed the config file to 8002. For the line in Arguements I used [ "goto screen:movies" 8002 192.168.1.103 ] - didn't work. Then I tried [ "xlobby:goto screen:movies" 8002 192.168.1.103 ] - didn't work. Then I tried various placements of the "&", and it didn't work. Then I tried a different PC as the send PC, it didn't work. Something is obviously fundamentally wrong, but I don't know what.

hjackson
hjackson
 
Posts: 371
Joined: Sat Nov 29, 2003 7:12 am
Location: Tampa, Florida

Re: XReceive plugin : send command to Xlobby

Postby Marbles_00 on Mon Jan 12, 2009 11:15 am

Actually, I'm surprised your second example didn't work, as that appears to be the proper format. The one thing is that your using port 8002. Make sure that port isn't being used by anything else. That's one reason I started to use odd-ball port numbers. I figured ports like 7750 would not be used by any other service or program. For example, if your running XNET or the webserver, by default they are using ports 8000 and 8002 respectively...so if you have your webserver on, and your trying to send an XSend command to port 8002, well, I guess you can wonder what's going to happen...or not happen.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: XReceive plugin : send command to Xlobby

Postby hjackson on Tue Jan 13, 2009 8:57 am

Success! I had a space at the end of my IP address in the config file and I changed my port to 7750 (hmmmm, where did I get THAT number from...). My Xlobby product is kicking even more ass now! Thanks for all the help Marbles.
BTW, it WAS the second code that worked [ "xlobby:goto screen:movies" 7750 192.168.1.103 ]

hjackson
hjackson
 
Posts: 371
Joined: Sat Nov 29, 2003 7:12 am
Location: Tampa, Florida

Re: XReceive plugin : send command to Xlobby

Postby Marbles_00 on Tue Jan 13, 2009 3:25 pm

Success! I had a space at the end of my IP address in the config file and I changed my port to 7750 (hmmmm, where did I get THAT number from...). My Xlobby product is kicking even more ass now! Thanks for all the help Marbles.
BTW, it WAS the second code that worked [ "xlobby:goto screen:movies" 7750 192.168.1.103 ]


Yeah, that command appeared to be the proper format, so it had to be something in the setup...never realized that extra "space" would do that though...good info to know.

Glad you got it working. XSend/XReceive is so powerful, its awesome. Wish the guys from the French Team who worked on it, could come back to see if the more recent requests could be implimented.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: XReceive plugin : send command to Xlobby

Postby scottw on Wed Jan 14, 2009 2:03 pm

One really cool thing about Xsend is you don't have to "send" from an XL machine, meaning you don't have to have XL on the machine you are sending from.

I too really wish it was updated!!!!
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: XReceive plugin : send command to Xlobby

Postby vicom on Fri Jan 16, 2009 7:22 pm

How can i trigger events instead of commands?
if it can't be done, then how do i execute the IR commands
vicom
 
Posts: 206
Joined: Tue Apr 20, 2004 6:16 am
Location: South Africa

Re: XReceive plugin : send command to Xlobby

Postby Marbles_00 on Fri Jan 16, 2009 11:56 pm

Setup a xlobby/"run event" command to run a particular event, then use XSend to run that "run event" command.

That should work.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: XReceive plugin : send command to Xlobby

Postby vicom on Sat Jan 17, 2009 6:10 pm

Thanx Marbles.. works like charm... wasn't aware of this event :o
vicom
 
Posts: 206
Joined: Tue Apr 20, 2004 6:16 am
Location: South Africa

Previous