Page 1 of 5

xPL

Posted: Thu Nov 27, 2008 8:06 pm
by damage
i have written a plugin that adds 2 way xPL control to event ghost. it is a first release w/ some testing so it's probably rough around the edges. more details & dl here: http://doghouselabs.blogspot.com/2008/1 ... _7732.html

updated download link: http://www.doghouselabs.com/downloads/eg-xPL-0.2.1.zip

Re: xPL plugin

Posted: Thu Nov 27, 2008 8:39 pm
by CollinR
This is freaking awesome, thank you much!

Also stick around! This is a great group and great software as I'm sure you have noticed. You would be a valueable addition to the knowledge base.

Re: xPL plugin

Posted: Fri Nov 28, 2008 6:22 pm
by damage
i uploaded a new version. i forgot to add message type to the send message dialog.

Re: xPL plugin

Posted: Sun Nov 30, 2008 5:10 pm
by Bartman
I corrected the link in your first posting.
Just wondering what xPL is :?:

Re: xPL plugin

Posted: Sun Nov 30, 2008 5:41 pm
by damage
thanks. i didn't notice a problem with the link. in any case, xPL is a simple network protocol used for home automation. a more complete write up of xPL can be found here http://wiki.xplproject.org.uk/index.php/FAQ and you can go over to the xPL forum ( http://www.xpl-home.org/forums/index.php ) as well (although right now the forum is down for some reason)

some examples of things you can do with xPL:
- squeeze center ( http://www.slimdevices.com ) has an xPL plugin allowing you to control individual squeezeboxes and receive their status via sending/receiving xPL messages
- medianet ( http://www.xplhal.com/medianet.htm ) is another music server allowing similar control
- bluetooth presence detection - ( http://www.xplhal.com/xpl_software.htm ) - respond to xPL messages when a bluetooth device comes into range (you come home from work - the pc detects your bt enabled cellphone and via TTS tells you the doorbell rang, the mailbox was opened and kicks off some relaxing music on your family room squeezebox)
- send xPL messages from one event ghost pc to another and have that other pc perform some action (like TTS or launch zoom player, etc)
- various other applications http://wiki.xplproject.org.uk/index.php ... ed_Devices

Re: xPL plugin

Posted: Mon Feb 16, 2009 3:40 am
by atz6975
Hi,
thank you for your effort.

I can't get this plugin to load. I created a xPL dir inside eg's plugin directory.
When I check the code (I don't know Py) it seems very different than other plugins (info part + import eg that no other plugin does).
How can I debug this?
Thanks.

Re: xPL plugin

Posted: Mon Feb 16, 2009 5:48 pm
by damage
i used an existing plugin to help me get started & there are 'import eg' and info sections in those as well (such as the x10 plugin). i just installed it on my work pc & it came right up. did you restart eventghost after creating the xpl directory?

Re: xPL plugin

Posted: Mon Feb 16, 2009 8:14 pm
by atz6975
Hi,
thank you for your reply.
I created the xPL sub-dir before starting EG.
I get an xpl (i) icon on the log.
My release of x10 doesn't look like your plugin code, what release of EG do you use?
It has an eg.registerplugin with all the info.
You are right about import eg though.

Thank you.

Re: xPL plugin

Posted: Mon Feb 16, 2009 8:22 pm
by damage
are you running any other xPL apps? what exactly do you mean by 'info sections'? also, i do not have any vista machines so i have not tested on vista...

Re: xPL plugin

Posted: Mon Feb 16, 2009 8:36 pm
by Bitmonster
@damage
You have written the plugin for the outdated 0.3.5c.

0.3.6 (that nearly everybody is using) has a slightly changed plugin interface. I recommend you read http://www.eventghost.org/wiki/Writing_Plugins first.

And another tip: don't use "global" in Python. You nearly never need it. Use instance variables instead.

Re: xPL plugin

Posted: Mon Feb 16, 2009 8:42 pm
by damage
i guess that explains it. i downloaded from the sourceforge link. is that going to get updated?

Re: xPL plugin

Posted: Mon Feb 16, 2009 9:46 pm
by atz6975
Unfair...I was really looking forward in driving Squeezecenter 7 through xPL+EG.
I also use the CM15 plugin.
Would that be too difficult to update the script for the latest EG build?
Anyway thank you and tell me if I can help with some SC7 testing if you find some time to recode.

Re: xPL plugin

Posted: Mon Feb 16, 2009 10:57 pm
by damage
i have updated the plugin. use the same dl link per my first post

Re: xPL plugin

Posted: Tue Feb 17, 2009 7:33 am
by atz6975
That was quick...although nothing changed!!!
I guess you uploaded the wrong files.
Thank you nevertheless :lol:

Re: xPL plugin

Posted: Tue Feb 17, 2009 2:11 pm
by damage
actually you didn't clear your cache...