VoxCommando Forum

VoxNastics (User Guides and Mods) => Tips and Tricks => Topic started by: xtermin8r on August 31, 2012, 06:00:33 PM

Title: Xbmc Python Script for VoxCommando
Post by: xtermin8r on August 31, 2012, 06:00:33 PM
Hi everyone

Below is a pic of the xbmc python script to control the features of VoxCommando.

(http://www.freesmileys.org/emoticons/emoticon-looney-toons-001.gif) (http://www.freesmileys.org/emoticons.php)
(http://wm52.inbox.com/thumbs/61_10fe44_1b3f5c2_oJ.jpg.thumb)

Possible uses are as follows :
1. Launch applications from xbmc easily.
2. get the tts engine to speak.
3. Send Growl or other notifications.
4. Home Automation.
5. Enable and disable the microphone.
6.  etc.

I will release the script as soon as i have finished with it.

Questions, comments and your thoughts are always welcome. ::hmm
Title: Re: Xbmc Python Script for VoxCommando
Post by: claymic on August 31, 2012, 07:38:53 PM
Congratulations
I will like to test this. Thanks for all your effort.
Clayton
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on August 31, 2012, 07:48:52 PM
Hi clayton
Quote
Congratulations
I will like to test this. Thanks for all your effort.
Clayton
Thank You.
Long time no see, i hope you are well, i will send you the script by email first, if it works ok then i will upload it into a post.
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on August 31, 2012, 07:56:54 PM
@Clayton

Hi
i don't think i have your email address, PM me, thank you.
Title: Re: Xbmc Python Script for VoxCommando
Post by: claymic on August 31, 2012, 10:17:32 PM
I just send a email for you and put my script on drop.
Let me know wath you think about it too.
Thanks mij.
Title: Re: Xbmc Python Script for VoxCommando
Post by: claymic on September 04, 2012, 07:15:16 AM
Mij
I try your script yestarday, but i have some problems.
I am using xbmc Frodo, version Alpha 3.
I cant access the configurations settings and cant send any commands.
When i click in a button (like VC ON) the dialog open, i choose yes but nothing happnes.
I search in the log to see if there is a error to put here, but there is no message  about this issue.
Thanks man
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on September 04, 2012, 06:07:52 PM
Hi Clayton

QuoteI am using xbmc Frodo, version Alpha 3.
I cant access the configurations settings and cant send any commands.

There are some  configuration settings look at settings.xml

QuoteWhen i click in a button (like VC ON) the dialog open, i choose yes but nothing happnes.
I search in the log to see if there is a error to put here, but there is no message  about this issue.

try this :

1. edit default.py.
2. Search for     sock.sendto(command, ('<broadcast>', 33000))
3. Change to     sock.sendto(command, ('xxxxxxxxxxxx', 33000))

xxxxxxxxxxx = your ip address for pc where VoxCommando is installed.
e.g     sock.sendto(command, ('192.168.1.92', 33000))

4. Save default.py.
5. Run default.py.

Good luck.
Title: Re: Xbmc Python Script for VoxCommando
Post by: claymic on September 04, 2012, 08:34:08 PM
Thanks Mij, i will try your suggestions.
Clayton
Title: Re: Xbmc Python Script for VoxCommando
Post by: vulcanjedi on September 05, 2012, 03:39:35 AM
I like the idea of beyond able to remotely completely turn off/on the mic possibly if needed, particularly since I'm running a remote VC. This does work on a remote VC right? From subsequent comments sounds like using UDP?
Hard to tell just from the screen shot, but Im sure i could think of more eventually:)
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on September 05, 2012, 06:53:57 PM
Quote from: vulcanjedi on September 05, 2012, 03:39:35 AM
I like the idea of beyond able to remotely completely turn off/on the mic possibly if needed, particularly since I'm running a remote VC. This does work on a remote VC right? From subsequent comments sounds like using UDP?
Hard to tell just from the screen shot, but Im sure i could think of more eventually:)


Hi

i also like being able to control voxcommando and being able to launch programs remotely.
It should work on a remote vc installation.
Yes, the script is using the udp protocol.
Title: Re: Xbmc Python Script for VoxCommando
Post by: vulcanjedi on September 05, 2012, 07:30:52 PM
This is cool cause during some things or really noisy environments I think I may want to turn the VC mic off completely and if I could map that script to my remote button that'd be rather helpful.
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on September 05, 2012, 07:34:23 PM
Hi

Quoteand if I could map that script to my remote button that'd be rather helpful.

Defiinately possible.
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on September 05, 2012, 07:40:49 PM
@vulcanjedi

If you want to try out the script PM me your email, if you like.
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on September 05, 2012, 07:51:23 PM
@vulcanjedi

you have email. let me know how you get on.
cheers.
Title: Re: Xbmc Python Script for VoxCommando
Post by: vulcanjedi on September 07, 2012, 06:26:25 PM
Just to affirm, we just manually drop this on XBMC & execute @ the moment and don't 'install' it perse correct?
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on September 08, 2012, 04:52:17 PM
Quote from: vulcanjedi on September 07, 2012, 06:26:25 PM
Just to affirm, we just manually drop this on XBMC & execute @ the moment and don't 'install' it perse correct?

Correct, extract it in the addons directory.
Title: Re: Xbmc Python Script for VoxCommando
Post by: Hellow on August 20, 2013, 07:35:09 AM
Where can I find the script?
Title: Re: Xbmc Python Script for VoxCommando
Post by: jitterjames on August 20, 2013, 11:54:29 AM
If anyone has it, it might be xtermin8r so you could try to PM him.  I don't know if he ever finished it though.

With the xjson plugin we can also use events from XBMC to know when some things happen such as play/pause.  A new song or video starts playing etc.
Title: Re: Xbmc Python Script for VoxCommando
Post by: xtermin8r on November 15, 2013, 02:07:39 AM
Quote from: Hellow on August 20, 2013, 07:35:09 AM
Where can I find the script?

so sorry for the delay, I must have missed your post.

(http://www.freesmileys.org/emoticons/emoticon-looney-toons-001.gif) (http://www.freesmileys.org/emoticons.php)
Here it is http://www.mediafire.com/download/pyk0d0w4n2lpwsc/script.control.vc.zip