Sonos - python contoller

Posted on
Fri Dec 10, 2010 2:08 am
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Sonos - python contoller

I know there are few people that have in the past wanted to integrate sonos with indigo.

Not sure if people have seen the thread on the sonos site, but Henkelis has been working on a python/upnp controller. It has an optional browsers front end, but apparently can be directly accessed or controlled from AppleScript.

http://forums.sonos.com/showthread.php? ... post117602

My python is non-existent, but thought someone might be interested. The code is not on line yet, but he is emailing it out on request and it works perfectly on my mac and can be accessed from iPhone/iPod/touch etc.

It's a very early version but it works and seems to me this could provide the link for direct control from indigo

Mat

Late 2018 mini 10.14

Posted on
Fri Dec 10, 2010 7:59 am
jay (support) offline
Site Admin
User avatar
Posts: 18247
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Sonos - python contoller

Cool - maybe it will give a big leg-up to someone that wants to write a Sonos plugin when Indigo 5.0 ships.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Dec 10, 2010 2:20 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Sonos - python contoller

Thanks for sharing that information, mat.

Whenever I think "What's the coolest thing I could add to my Indigo setup this weekend?" Sonos is always on the list. A few kludgy applescripts haven't really made it past my beta test folders, though. This gives new hope. :D

Posted on
Sat Jan 01, 2011 4:40 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - python contoller

Hi

I have now started playing with the above and have volume control from within indigo using apple script to post http requests to the above mentioned python server ...my skills are not up to full integration but mark has pasted the basic http requests on page 12 of the post in the sonos forum.

if you call the http from applescript it give basic functionality. Will post more if anyone is interested. Basically

try
tell application "URL Access Scripting"
download "(insert http request)" to "tmp/sonos.html" replacing yes
end tell
end try

(thanks Charlie for the script)

I've not tried anything complex yet, but its a start - if people want to take it further I would be interested to see what "full" integration can be achieved.
Mat

Late 2018 mini 10.14

Posted on
Wed Jan 12, 2011 3:13 am
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - python contoller

As requested by a few peple here I have posted my AS on page 13 of the above linked thread

Mat

Late 2018 mini 10.14

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests