Page 1 of 1

Sonos plugin errors

Posted: Tue Oct 03, 2017 2:38 pm
by eirik226
Hello,

When using the 0.5 version Sonos plugin throws a few errors.

Code: Select all

C:\Program Files (x86)\EventGhost\plugins\SONOS\__init__.py:237: DeprecationWarning: AsyncRequesting.getsockname is deprecated. Use AsyncRequesting.socket.getsockname instead.
           self.portused = self.getsockname()[1]
It's also working rather poorly, I often have to restart EG to get it working again. I've contacted the plugin developer but I don't think he is active anymore.

Anyone got time to take a look at this?

Re: Sonos plugin errors

Posted: Wed Oct 04, 2017 7:17 pm
by kgschlosser
I dropped the original author a line to see if he is still maintaining this and to let him know of the errors. I would rather have the original author take care of it due to the complexities of the plugin..

Re: Sonos plugin errors

Posted: Wed Oct 04, 2017 10:33 pm
by eirik226
Yeah I tried to contact him myself a few days ago, PM still in outbox tho.

Re: Sonos plugin errors

Posted: Sat Oct 07, 2017 10:13 am
by yokel22
Chase, the author of this plugin is probably still active. I think he just doesn't have pm's forwarded to his email & doesn't stop by much. I have his google hangouts # around. I'll drop him a line today with a link to this thread.

Re: Sonos plugin errors

Posted: Sat Oct 07, 2017 2:10 pm
by kgschlosser
@ yokel22

I beat ya to it.

I have already spoken with him and he said he doesn't have must in the way of free time these days. and he would be more then willing to explain to someone how the plugin works. But he also stated that it would probably be better to rewrite the thing due to the newer version of python being used in EG.

I started on it and I have a basic framework down If someone wants to grab the reins on this They can take over. it's on my github page. or if they want to contribute to it that would help also. I do not have a means to test this thing out but I wanted to get a starting point on it so if someone wanted to they could go from there.

Re: Sonos plugin errors

Posted: Sat Oct 07, 2017 5:56 pm
by yokel22
Cool, I won't bother then. Wish I could say I had the time to do it. Sadly, I to have too many projects @ the moment.

Re: Sonos plugin errors

Posted: Wed Oct 25, 2017 4:33 pm
by dequi
Damn, I had testing the sonos plugin marked as a project this weekend. :( to bad it doesn't work anymore . I have a bunch of them around the house, but always going trough the app bugs me, wanted to connect them up on the Niko Easywave switches I installed around the house last weekend.

Re: Sonos plugin errors

Posted: Wed Oct 25, 2017 6:19 pm
by eirik226
it does work - just gives out a few errors on the beta release of EG. It can also hang a bit from my experience.

As a workaround you can use the soco python library created for controlling Sonos. I find it a bit hard to use but manged to get the play, stop, volume events down. Favorites i'm still working on, and subscribing to the sonos so you get a notification on changes.

KG is working on creating a new plugin, he is a busy man so if you wait a bit i'm sure he'll get around to it.

Re: Sonos plugin errors

Posted: Wed Oct 25, 2017 8:14 pm
by kgschlosser
hey if someone port forwarded their Sonos on their router this could be a whole lot easier for me to work on. this way I could bounce things against a working unit.

Re: Sonos plugin errors

Posted: Wed Oct 25, 2017 11:12 pm
by eirik226
I can probably do that - sent you a PM.