News:

HOT TIP! In the command editor, you can ctrl-click and drag an item to create a copy of it.

Main Menu

Tcp Plugin

Started by claymic, January 15, 2013, 05:25:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

claymic

Hi James, maybe i missed this, but can i send tcp commands with vox ? For now i am using the EventGhost for do this, but will be awesome if i can send a tcp command directly using Vox.
In the EventGhost i am using the phyton code bellow:
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("192.168.0.160", 4998))
s.send('sendir,5:3,1,39000,1,1,230,46,46,46,23,22,23,22,23,45,23,22,23,22,23,45,23,45,23,1152,115,45,46,46,23,22,23,22,23,45,23,22,23,22,23,45,23,45,23,1152,115,45,46,46,23,22,23,22,23,45,23,22,23,22,23,45,23,45,23,780"+"\r\n')
s.close()

I just need to send some commands for the GlobalCache, will be nice can do this using Vox(maybe setting the ip and port for each command, since this will depend of the device)
Thanks
Clayton

jitterjames

sure.  It's a good idea, but I am a bit overwhelmed with other things I need to do.  I will make a note, but please remind me again in a couple of weeks. :)

claymic

Awesome, thanks James. See you here in a couple of weeks then.
Clayton

Mace

Yep, add me to the TCP plugin tester list.

jitterjames

I'll try to post it by tomorrow, and I'll be sure to announce it in this thread.  :)

jitterjames

The first alpha release of the TCP plugin is now available:

http://voxcommando.com/forum/index.php?topic=1053