Sonos - The Beginning

Posted on
Mon Feb 20, 2012 5:48 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - The Beginning

No hurry.

I've tried increasing the timing up to 5 seconds and it doesn't help.

Tried increasing the 1 second wait to 10 seconds, but no change.

I also tried adding a pause between where you set the renderer and call the data, but no change.

Would be nice if we can get terry or reading123 up and running to see if they can replicate.

Also emailed mark, so will let you know if I get a reply. Edit - about line-in.

Regards

mat

Late 2018 mini 10.14

Posted on
Mon Feb 20, 2012 5:58 pm
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Sonos - The Beginning

Hope this is what you wanted. It is out of the event log as I could not find a debug log? If there is another log, please point me to it. Sorry to be so dense.

Terry

[code] Enabling plugin "Sonos 0.2.1"
Starting plugin "Sonos 0.2.1" (pid 618)
Plugin "Sonos" connected
Plugin "Sonos 0.2.1" started
Sonos Debug Getting Plugin Configuration Settings
Sonos Debug Connection Type: Socket
Sonos Debug Socket IP: 192.168.1.202
Sonos Debug Socket Port: 8500
Sonos Saved Plugin Configuration
Sonos Debug Resetting States for zone: Office
Sonos Debug Updating Device: Office, State: ZP_ALBUM, Value:
Sonos Debug Updating Device: Office, State: ZP_ART, Value:
Sonos Debug Updating Device: Office, State: ZP_ARTIST, Value:
Sonos Debug Updating Device: Office, State: ZP_CLASS, Value:
Sonos Debug Updating Device: Office, State: ZP_DURATION, Value:
Sonos Debug Updating Device: Office, State: ZP_INFO, Value:
Sonos Debug Updating Device: Office, State: ZP_MUTE, Value:
Sonos Debug Updating Device: Office, State: ZP_ONNOW, Value:
Sonos Debug Updating Device: Office, State: ZP_PERCENT, Value:
Sonos Debug Updating Device: Office, State: ZP_POSITION, Value:
Sonos Debug Updating Device: Office, State: ZP_STATE, Value:
Sonos Debug Updating Device: Office, State: ZP_STATION, Value:
Sonos Debug Updating Device: Office, State: ZP_TRACK, Value:
Sonos Debug Updating Device: Office, State: ZP_TYPE, Value:
Sonos Debug Updating Device: Office, State: ZP_VOLUME, Value:
Sonos Debug Updating Device: Office, State: ZP_VOLUME_FIXED, Value:
Sonos Debug Message: http://192.168.1.202:8500/data/renderer ... 20%28ZP%29
Sonos Debug Error getting ZonePlayer data: Office%20%28ZP%29
Sonos Debug Message: http://192.168.1.202:8500/data/renderer ... 20%28ZP%29
Sonos Debug Error getting ZonePlayer data: Office%20%28ZP%29
Sonos Debug Parsing:Office:None
Sonos Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 46, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 55, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 88, in checkForMessages
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 109, in parseMessage
<type 'exceptions.IndexError'>: list index out of range

Sonos Error plugin runConcurrentThread function returned or failed; will attempt again in 10 seconds
Sonos Debug Method: runConcurrentThread
Sonos Debug Running Concurrent Thread
Sonos Debug Message: http://192.168.1.202:8500/data/renderer ... 20%28ZP%29
Sonos Debug Error getting ZonePlayer data: Office%20%28ZP%29
Sonos Debug Message: http://192.168.1.202:8500/data/renderer ... 20%28ZP%29
Sonos Debug Error getting ZonePlayer data: Office%20%28ZP%29
Sonos Debug Parsing:Office:None
Sonos Error Error in plugin execution runConcurrentThread:
/code]

Posted on
Mon Feb 20, 2012 6:00 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

It is encouraging thy you cranked up the delays so much and the issue persists. There has to be some logic problem. My parents have more than one Sonos so will try to borrow one to replicate the issue more directly. We will get to the bottom if it!

Posted on
Mon Feb 20, 2012 6:34 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - The Beginning

Terry,

Is the ip address of the mac your running sonospy on fixed?

If not, and you have rebooted, you might want to check the ipaddress is correct.

Yes that's the correct log, there is only one as far as I know.

Try pasting this into safari and see if you get a response

Replace (your ip address) with the ip address of the machine running sonospy

http://(your ip address):8500/data/rendererData?R::Office%20%28ZP%29"

If you get a response, please can you paste it

Thanks

Late 2018 mini 10.14

Posted on
Mon Feb 20, 2012 6:38 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - The Beginning

The zone name will also be case sensitive, so please check you have the same zone name in indigo as shows up in the sonos controller (or idevice).

Mat

Late 2018 mini 10.14

Posted on
Mon Feb 20, 2012 6:41 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

Shouldn't the port be 50101? No need to interact directly with the web server. I use 50101 - Mat are you using 8000?

Posted on
Mon Feb 20, 2012 6:43 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - The Beginning

I'm using the default. I thought I read terry was using 8500?

Late 2018 mini 10.14

Posted on
Mon Feb 20, 2012 6:48 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

He is using 8500 for the webserver, but the back channel should still be 50101 unless changed in the sosnospy config. I use 50101.

Posted on
Mon Feb 20, 2012 6:50 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - The Beginning

A little knowlege ..... :oops:

Right off to bed! Have a good week at work.

Terry try using 50101 in the sonos plugin rather than 8500

Late 2018 mini 10.14

Posted on
Mon Feb 20, 2012 7:30 pm
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Sonos - The Beginning

Got "Invalid Request" in response to entering http://192.168.1.202:8500/data/renderer ... 28ZP%29%22 in Safari.

Yes I am using a fixed IP for the mac mini that runs all my home automation.

Tried 50101 in plugin config and no change

I can still access http://192.168.1.202:8500/sonospy/default/index. Attached is screen shot of what I get:
Attachments
sonospy screen shot.tiff
sonospy screen shot.tiff (139.29 KiB) Viewed 4673 times

Posted on
Mon Feb 20, 2012 7:37 pm
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Sonos - The Beginning

Don't know if it means anything but I ran a port scan using the network utility and it did not show ports 50101 or 50102 in use.

Posted on
Tue Feb 21, 2012 2:14 am
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Sonos - The Beginning

it doesn't look like sonospy is running. The first time i ran it, it had to index my library and took a few hours. if you have a big library it may be worth leaving it running for a while (which I presume it has been).

try restarting sonospy from terminal...(from the sonospy folder)

Code: Select all
sudo ./sonospy_stop


and then restart

Code: Select all
sudo ./sonospy_web


for the plugin, you should still be using port 50101 (port 8000 - or 8500 on your machine - is only the web server). The plugin uses 50101 to connect to sonospy.

Late 2018 mini 10.14

Posted on
Tue Feb 21, 2012 6:17 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

If sonospy is running correctly, you should at the very least see the names of your ZonePlayers on the left side of the web page under Renderers. So I agree with Mat that it looks like sonospy is not running. I forced it to use python 2.6 by changing the sonospy_web startup script and simply adding a 2.6 in front of each python call.

Posted on
Tue Feb 21, 2012 9:43 am
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Sonos - The Beginning

Not sure I understand the comment as to Pyhton. I did not download anything other than the Sonospy bundle you referenced. Should I have downloaded a new python? Would having a more recent python affect Indigo?

Do you have to index sonospy for it to work with the plugin?

While researching sonospy I came across this site http://www.purple.org/sonos/. It is in pearl, but it looks like he had the line in working so thought it might be helpful.

I will work today to get sonospy working as I agree that is my problem now that I know you should see the zones on the web page.

Posted on
Tue Feb 21, 2012 10:00 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

You will have python2.6 on your Mac. I think it defaults to v2.7, so that is why I made the change. I'm not sure it is necessary - was just following guidance from the documentation. I'm sure you will be ok as is and you do not have to index your music. I did not - just started it up to use as a proxy for this plugin.

Page 4 of 37 1, 2, 3, 4, 5, 6, 7 ... 37

Who is online

Users browsing this forum: No registered users and 4 guests

cron