Sonos

Posted on
Fri Feb 20, 2015 12:29 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.8.9 Update

v0.8.9 - 02/20/2015
  • Bug fix in "Add To Group" action.
  • Re-factored announcements code.

I appreciate everyone being patient. It has been a bear to step through the code trying to figure out what has been going on with announcements. I ended up re-writing most of the logic. I've tested with three ZonePlayers and it seems to be working as expected.

Posted on
Tue Mar 24, 2015 12:30 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.8.10 Update

v0.8.10 - 03/24/2015
  • Re-factored Pandora code using "un-official API".

Pandora made changes to their site that seems to have blocked programmatic access to public station lists. This update will authenticate to the site, so you will have to edit the plugin configuration and enter your Pandora password.

Posted on
Sat Mar 28, 2015 6:40 pm
edrabbit offline
User avatar
Posts: 39
Joined: Apr 09, 2014

Re: Sonos

Looks like the "Check for updates" menu action might not be working. 0.8.10 is out and I'm seeing:

Mar 28, 2015, 5:37:15 PM
Indigo Cocoa client connected
Sonos Manually checking for updates
Sonos Your plugin version, v0.8.8, is current.

Posted on
Wed Apr 01, 2015 5:13 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.8.11 Update

v0.8.11 - 04/01/2015
  • Added library to break up calls to Google TTS for announcements. This will allow for announcements over 100 characters.
  • Streamlined some of the announcement code to make less calls to the ZonePlayers.
  • Started implementing logic to play from Sonos Favorites [INCOMPLETE].

Posted on
Thu Apr 02, 2015 7:27 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.8.12 Update

v0.8.12 - 04/02/2015
  • Cleaned up Google TTS in order to support Python 2.5 (OS X 10.9 and below).

For all those that are not running Indigo on Yosemite, v0.8.11 will not work for you. This release strips out Python 2.6 requirements. Beyond this, the release is identical to v0.8.11.

Posted on
Fri Apr 17, 2015 7:01 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.8.13 Update

v0.8.13 - 04/17/2015
  • Bug fix for unicode support in group names.

Posted on
Sun Aug 09, 2015 4:17 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

v0.8.14 - 08/09/2015
  • Google TTS fix.

Note: This version may not work with older installations of Indigo & OS X. I'm testing on OS X 10.10 with Indigo 6.

Posted on
Mon Sep 07, 2015 12:22 am
gabbas offline
Posts: 39
Joined: Jun 22, 2008

Re: Sonos

Thanks for writing the plugin. I tried installing it but got a few errors. Any suggestions please? I was running Indigo 6.1.0 on Mac OS 10.6.8, do I need a newer OS? This is what I was seeing:

Code: Select all
  Sonos                           Your plugin version, v0.8.15, is current.
  Sonos Error                     There was an error reading the plugin preferences. Please check your configuration.
  Sonos                           Restarting Sonos Plugin...
  Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 58, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 192, in runConcurrentThread
  File "plugin.py", line 63, in stopConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 290, in stopConcurrentThread
  File "./lib/SonosEventLib.py", line 93, in ZMQ_Kill
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'close'
and then lots of

Code: Select all
  Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
I tried updating Indigo to 6.1.4, and now it's saying

Code: Select all
  Sonos Error                     Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "plugin.py", line 9, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 32, in <module>
<type 'exceptions.ImportError'>: No module named internet
Does this look familiar to anyone?

Posted on
Mon Sep 07, 2015 12:53 pm
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Re: Sonos

Is there any more than I, who do not get the TTS to work, worked yesterday :(

have 0.8.15 installed, everything else works super...

//Jens

Posted on
Mon Sep 07, 2015 12:58 pm
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Re: Sonos

Have you put in right ip in refferens player??

//Jens

Posted on
Sat Sep 12, 2015 1:13 pm
gabbas offline
Posts: 39
Joined: Jun 22, 2008

Re: Sonos

At this point I can't even get far enough to create a device, because the "No module named internet" happens when I try to start the plugin. So when I try to create a device, Sonos isn't one of the device types in the menu.

Posted on
Sat Sep 12, 2015 3:53 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Sonos

gabbas wrote:
At this point I can't even get far enough to create a device, because the "No module named internet" happens when I try to start the plugin. So when I try to create a device, Sonos isn't one of the device types in the menu.


Disable and delete the plugin and reinstall from scratch. Somehow your copy of the plugin is corrupted.

joe

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Oct 25, 2015 3:14 am
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

Re: Sonos

Google TTS is absolutely unreliable :()


Traceback (most recent call last):
File "plugin.py", line 172, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1112, in actionAnnouncement
File "./lib/gtts/tts.py", line 90, in save
File "./lib/gtts/tts.py", line 108, in write_to_fp
File "./lib/requests/models.py", line 837, in raise_for_status
<class 'requests.exceptions.HTTPError'>: 503 Server Error: Service Unavailable for url: http://translate.google.com/translate_t ... 1&ie=UTF-8

Posted on
Sun Oct 25, 2015 4:14 am
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Re: Sonos

shapa wrote:
Google TTS is absolutely unreliable :()


Traceback (most recent call last):
File "plugin.py", line 172, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1112, in actionAnnouncement
File "./lib/gtts/tts.py", line 90, in save
File "./lib/gtts/tts.py", line 108, in write_to_fp
File "./lib/requests/models.py", line 837, in raise_for_status
<class 'requests.exceptions.HTTPError'>: 503 Server Error: Service Unavailable for url: http://translate.google.com/translate_t ... 1&ie=UTF-8


Why not use an MP3 file with speech instead, always works :D

use this software "Say It Save It v2.1"

//Jens

Posted on
Sun Oct 25, 2015 10:09 am
haavarda offline
User avatar
Posts: 702
Joined: Aug 18, 2012
Location: Norway

Re: Sonos

Mp3 files works fine for static messages, but not for dynamic. It you want a variable value spoken, this does not work with pre made MP3 files...

Håvard

Who is online

Users browsing this forum: No registered users and 13 guests