Sonos

Posted on
Sat Aug 04, 2012 9:40 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos

Sonos v0.5.3

Download plugin here: https://vulture.lagaros.com/wiki/projects/homeautomation/Home_Automation.html

Sonos is a simple yet powerful audio distribution system. Sonos delivers not only incredible sound but a simple way to synchronize and organize all of your music. Sonos allows you to play any song, in any room, all from the palm of your hand.

Documentation on actions to come...

Posted on
Sat Feb 09, 2013 2:27 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

v0.5.6 - 02/09/2013

  • Changed path to album art URL to: "/Library/Application Support/Perceptive/Automation/images/Sonos/"
  • Adjusted Group Announcement action to suspend ZonePlayer updates during execution. Added 0.5 second pause to allow all ZonePlayer settings to take before speaking announcement.
  • Added "No Selection" to Group Announcement action to allow removal of ZonePlayers.

Posted on
Sun Mar 03, 2013 4:58 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

I would like to thank everyone who has helped me test this plugin over the months. This one was quite challenging - there was a lot of reverse engineering of the Sonos control app required to figure out this thing. There are a few who went above and beyond in both testing and donating to the cause. I thank you all!

Let me know if there are new features that should be considered for the next iteration of the plugin.

Thanks,
Nick

Posted on
Sat Mar 16, 2013 8:21 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.5.7 Update

v0.5.7 - 03/16/2013

  • Corrected logic for repeat and shuffle buttons
  • Added ability to have a variable addressed in an announcement. Precede the variable name by a % in the text configuration box for the Group Announcement.

Posted on
Thu Jul 25, 2013 10:41 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos Plugin Update

v0.5.9 - 07/25/2013
  • Updated SiriusXM module to account for Sonos API changes

v0.5.8 - 05/26/2013
  • Bug fixes to parseMediaInfo function
  • Changed variable in announcement to use Indigo convention: %%v:variable%%. Variable must be the Indigo ID, not name of the variable.

Posted on
Sun Jul 28, 2013 3:37 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.5.10 Update

v.0.5.10 - 07/28/2013
  • Fixed RadioTime Favorite Station action. Sonos is getting picky with their SOAP calls.
  • Added Plugin Update Checker Module developed by travisc. Thank you Travis!

Posted on
Sun Aug 04, 2013 2:57 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.5.11 Update

v0.5.11 - 08/03/2013
  • Prepended actions with "Sonos:" for easier reading in action groups

Posted on
Sun Aug 04, 2013 11:49 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

All,

I'm going to work on some internal improvements to the plugin. Two major objectives on my list:
  • Use a more structured library for XML parsing.
  • Implement a UPNP event handler to take the place of the polling. This will be the more significant change.

I will keep you posted on how I progress.

-Nick

Posted on
Sun Nov 10, 2013 5:07 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.6.0 Update

v0.6.0 - 11/10/2013
  • This is an in-progress experimental release that spawns a separate process to collect events from ZonePlayers. Currently the only user benefit is the addition of next artist/track/album for Pandora and the music library.

I've done minimal testing and just wanted to get something out there. Please use at your own risk. I did leave v0.5.11 out there as well in case anyone needs to go back to the prior version.

Posted on
Sun Dec 01, 2013 4:59 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.6.1 Update

v0.6.1 - 12/01/2013
  • This is a slightly more comprehensive experimental release with better eventing using the coherence toolkit. Just about all of the polling is gone at this point. When complete, this should result in a lighter plugin. Please report any issues - there has been a ton or recoding.
  • Removed ZP_CLASS, ZP_POSITION

A separate process is spawned to collect events and it now uses the 0mq messaging library to send messages to the main Sonos process. All libraries have been compiled for Python 2.5 compatibility.

Please report back any issues. Thanks!

Posted on
Sat Dec 07, 2013 2:13 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.6.2 Update

v0.6.2 - 12/07/2013
  • Corrected the ZeroMQ library path issues. It is now required to run an installation package that places libraries in /usr/local.
    • Unzip Sonos-ZeroMQ
    • From a terminal, type the following in the directory that the file was unzipped to: ./install_zmq.sh
    • You will have to type in the superuser/root password for the files to be copied.
  • Removed ZP_ONNOW, ZP_PERCENT, ZP_TYPE

To be clear, there are now two downloads on the wiki site. The first (Sonos-ZeroMQ) is a messaging library with a script to copy libraries to /usr/local on the Indigo server. This requires entering root password. The second file is the standard plugin that should be run after copying libraries.

Command Line Tools is also a required package on the Mac. I have links for the latest three OS X operating systems on the wiki page.

Let me know if you have any questions.

Posted on
Sun Dec 08, 2013 6:35 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.6.3 Update

v0.6.3 - 12/08/2013
  • Removed polling options from plugin configuration menu. Please re-save plugin configuration.
  • Added action to set Sleep Timer.

Posted on
Sun Dec 15, 2013 3:14 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.6.4 Update

v0.6.4 - 12/15/2013
  • Updated ZeroMQ installation script
  • Updated SonosEvents.py to handle some unicode issues and enabled some terminal output for debugging.

For all that are having issues:
  • Let me know what version of OS X and Indigo you are running.
  • Make sure that the zmq libraries actually install to /usr/local/lib, /usr/local/include, /usr/local/share
  • Turn debugging on in the plugin. As your Sonos states change, you should see Event messages in the Indigo log.
  • If no Event message appear in the Indigo log:
    • Open a terminal
    • Change to the Sonos plugin directory (/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin)
    • kill the current SonosEvents.py process (ps -eaf|grep SonosEvents to get the pid, kill [pid])
    • start a new SonosEvents.py process and report on the output (./SonosEvents.py)

Posted on
Sun Dec 15, 2013 1:31 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.6.5 Update

v0.6.5 - 12/15/2013
  • Bug fixes for next track events
  • Added Channel Up, Channel Down actions for RadioTime favorites and Pandora. The action will move up and down each list alphabetically.

Posted on
Sun Dec 15, 2013 6:49 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.6.6 Update

Last one of the week...

v0.6.6 - 12/15/2013
  • Bug fixes in SonosEvents.py to handle more than 6 ZonePlayers.
  • Eliminated responding to duplicate subscriptions. May add this back in the future if there are reliability issues.

Thanks to chobo997 for discovering the error.

Who is online

Users browsing this forum: No registered users and 3 guests