[REQUEST] Sonos integration via Python Script or Plugin?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bbaldino Offline
Junior Member
Posts: 39
Joined: Sep 2008
Reputation: 0
Lightbulb  [REQUEST] Sonos integration via Python Script or Plugin? Post: #1
Feel free to move if this belongs in feature requests rather than scripts/plugins...

I've got a sonos system at home which I use for music, but I would love the ability to control my sonos system from within my XBMC as well.

I found Sonos Web (http://www.purple.org/sonos/) which is a skinnable web interface which shows the sonos queue, current and upcoming song information, zone management, volume, etc...

Any reason something like this couldn't be worked into an XBMC plugin/script?
find quote
d4rk Offline
Team-XBMC Developer
Posts: 500
Joined: May 2007
Reputation: 1
Location: Albuquerque
Post: #2
Definitely looks like plugin / script material.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


[Image: badge.gif]
find quote
bbaldino Offline
Junior Member
Posts: 39
Joined: Sep 2008
Reputation: 0
Post: #3
Hey d4rk,
I'm a developer by trade but not all too familiar with the XBMC code base/scripting. What kind of integration make the most sense for this...simply embedding the webpage inside an XBMC screen? Have XBMC issue the UPnP commands directly? I'd also have to look into parsing the response to display the relevant information. Unfortunately I doubt I'll have much time to look into this for a while, but maybe someone else will tackle it in the meantime.
find quote
d4rk Offline
Team-XBMC Developer
Posts: 500
Joined: May 2007
Reputation: 1
Location: Albuquerque
Post: #4
XBMC doesn't have a built in HTML renderer. So you won't be able to feed any of its controls raw HTML. On the other hand, you can parse the HTML in the script or plugin and extract the useful data and feed that to XBMC's controls.

Whether you want to use of plugin or script depends what you want to achieve. If you want a full fledged interface to control your Sonos players from within XBMC, then a script makes sense (a script is much more flexible than a plugin). An example is the Apple Movie Trailers script (as opposed to the Apple Movie Trailers II plugin).

A plugin is basically just a virtual directory, in that it returns a bunch of files or virtual files that XBMC renders in its file view. So it makes sense to use a plugin if all you want to do is stream media from your Sonos players (dependent of course on whether or not XBMC supports the media format).

You might have a hard time finding someone to write the plugin though unless they have a similar interest as yours, but no harm in asking around or posting a feature request for said functionality. Lotta skilled Python coders in the forum.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


[Image: badge.gif]
find quote
michaeldecharon Offline
Senior Member
Posts: 141
Joined: May 2009
Reputation: 0
Location: Netherlands
Post: #5
Dear XBMC-users,

Shortly i changed form Meedio to XBMC.

Recently i bought a Sonos setup and browsing around on the internet and this forum i really get the idea that a integration between Sonos and XBMC must be done...

I know that Homeseer can "talk" with Sonos and i also read that the XBMC upnp can connect with Sonos.

But how can i extract the datafeed from sonos to my XBMC:

Simple coverart with nowplaying-feed in the homemenu like playing a regular mp3 file would make my very happy!!!!

The bad thing is that i'm new to XBMC and already tried to edit some xml files with no result.

Can anyone please help me out?
find quote
Cecilia
Unregistered

Post: #6
I was just thinking of something similar. I, too, have both Sonos and XBMC. There was a recent discussion on the Sonos forum about displaying Sonos information (song information) on a screen. Would XBMC be the way to do that, and how?
quote
michaeldecharon Offline
Senior Member
Posts: 141
Joined: May 2009
Reputation: 0
Location: Netherlands
Post: #7
I now reduced my wishes since nobody has a idea:

I take the webserver from sonos and use the rss xml output to import the rss feed onto my xbmc.

The only problem with the rss feed is that it doesn't change when i change to another song....

So work to.... anybody got some suggestions?
find quote
michaeldecharon Offline
Senior Member
Posts: 141
Joined: May 2009
Reputation: 0
Location: Netherlands
Post: #8
michaeldecharon Wrote:I now reduced my wishes since nobody has a idea:

I take the webserver from sonos and use the rss xml output to import the rss feed onto my xbmc.

The only problem with the rss feed is that it doesn't change when i change to another song....

So work to.... anybody got some suggestions?

Ok so the first steps has been set...

[Image: screenshot000r.th.png]

I little rss-feed from my sonosplayer showing "now playing"

Next adding a submenu with playercontrols for sonos Laugh
(This post was last modified: 2009-05-16 16:22 by michaeldecharon.)
find quote
bbaldino Offline
Junior Member
Posts: 39
Joined: Sep 2008
Reputation: 0
Post: #9
Hey! That's an awesome first step...glad to hear that someone has been able to make some progress on bringing these awesome apps together Smile

Is there any documentation on the sonos webserver? I haven't used it much myself.
find quote
michaeldecharon Offline
Senior Member
Posts: 141
Joined: May 2009
Reputation: 0
Location: Netherlands
Post: #10
bbaldino Wrote:Hey! That's an awesome first step...glad to hear that someone has been able to make some progress on bringing these awesome apps together Smile

Is there any documentation on the sonos webserver? I haven't used it much myself.

The documentation is with the installationfiles....
find quote
Post Reply