Robert Rozman wrote:
Hi,

Hi.


maybe someone remember me occasionally discussing ways of connecting Freevo
to other programs. I usually cook ideas until they are optimal for
implementation :-)

Sure do!


My last idea is to use xmlrpc. Since it is already in Freevo for record
server maybe this could be optimal way. I'd like to connect Freevo with
Misterhouse. I'd like to transfer following data:
- Misterhouse would send home automation menus for Freevo to show in main
menu under "House Control"
- Freevo could send xmlrpc requests for data for idelbar plugins
(temperatures, status)
- Misterhouse could send live data to Freevo (status of home devices,
temperatures, events, messages to display in mplayer or Freevo OSD,
reminders, email status etc...)
- Misterhouse could make Freevo to do things (like when there is visitor -
Freevo could switch to frontdoor webcam)...

Great ideas here. It sounds like you need both misterhouse and freevo to act like a client AND server, they would both have listen ports for xmlrpc requests. Having a client send an xmlrpc request to a server is the trivial part.


So, does misterhouse listen for xmlrpc requests already? If not, and you would still like the freevo -> misterhouse connection to use xmlrpc you will have to write a misterhouse component for that. If misterhouse already has another way of listening for requests it might be easier to write a python / Freevo component that you can import in a Freevo plugin to talk to misterhouse.

Right now the main Freevo interface does not listen for xmlrpc requests at all. It might be best if there was a Misterhouse daemon plugin for Freevo that did this task, which should be no problem.

Misterhouse would need a method to connect to Freevo, it is able to already send xmlrpc requests or would you need to write a plugin for the Misterhouse side too?

There are probably some other ideas also, but I'm mostly interested in
cleanest and easiest general way to incorporate this into Freevo. Since I'm
more or less newbie to Python and Freevo some additional advice and pointer
where to start (are there some skeleton codes for plugins ?) and probably
some more help on Freevo side of connection would be more than welcome.

I think you are on the right track. There is a plugin tutorial in the docs to help you. If you need help along the way we will be happy to help.


-Rob



-------------------------------------------------------
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