"Robert Rozman" wrote:
> Hello,
>
> I'm now going to put some effort in plugin for connection to Misterhouse
> (great home automation programme: www.misterhouse.com). Since I'm more or
> less newbie to Freevo and python would kindly ask for some guidance in my
> work.

If you know a different programming language, Python is very easy to
learn. There is a nice tutorial at www.python.org

> For a start I'd like to discuss few technical things:
>
> About connection:
>     Misterhouse has already built in remote client functionality. It
> basically goes like this: connection is done throught TCP port. At the start
> Misterhouse sends all its commands organized in menus. Later Misterhouse can
> report on events/receive commands through this port.
>
> Freevo side:
>   I wonder what would be best to do:
>             - how can I easily implement tcp port client (maybe through
> twisted) ?

Make a plugin that starts a thread to talk to MisterHouse.

>             - I'd like to have:
>                     - special "idlebar like" plugin at the bottom of screen
> to display more important info from                             Misterhouse

Take a look at the idlebar plugin. You may want to copy some code.

> (probably idlebar plugin is best start....

than take a look at the other idlebar plugins. 

>                     - special plugin that should listen/talk to TCP port and
> update some sort of local data                             structure that
> holds local copy of all data sent by Misterhouse. What are possibilities
> for that and for making global data structure ?
>                     - separate menu group, that could also have item plugins
> (for instance for light to switch
> on/off/dim). How to do that as easy as possible ? Where to put item plugins
> if                                     they are possible at all for custom
> menu groups.

Not ItemPlugins, MainMenuPlugins. I started to write a Plugin Writing
HOWTO. It's in CVS. Download the latest snapshot and start
./autogen.sh. Than you should have the howto in
Docs/plugin_writing/html. 


Dischi

-- 
Beat me, whip me, make me use Windows!


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to