The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => Sonos Plugin => Topic started by: lolodomo on February 28, 2014, 02:14:01 pm

Title: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 02:14:01 pm
A new update of the Sonos plugin is now available.
You can download the ZIP file at the bottom of this page: http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/tags/beta4#
Please note that the "services" subdirectory in this archive is unnecessary.

Here are the changes:

Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 02:16:56 pm
@jimpapa or @ericonvera: please confirm that the new TTS tab is working well, meaning switching between Google and OSX TTS server is working well.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: hek on February 28, 2014, 02:32:34 pm
Great! thanks lolodomo,

Installed! I'll feedback if any problems is found during the next days.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 04:27:06 pm
I forgot to update the "Proxy is in use" rather than "Proxy is used".
That's now committed and will be included only in the next version.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: hek on February 28, 2014, 04:41:04 pm
I forgot to update the "Proxy is in use" rather than "Proxy is used".
That's now committed and will be included only in the next version.

???   

Sorry, don't understand. Should I update again?
Title: Re: Beta 4 version of the Sonos plugin released
Post by: jimpapa on February 28, 2014, 04:46:33 pm
I'm d/l it now... Will report back!
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 04:56:16 pm
I forgot to update the "Proxy is in use" rather than "Proxy is used".
That's now committed and will be included only in the next version.

???   

Sorry, don't understand. Should I update again?

No, I have not updated the beta 4. You will just have the "bad english" text, that's all.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: jimpapa on February 28, 2014, 04:56:26 pm
TTS server Tab is "opening Sonos_showTTS"  but stays on it and never opens..
.. Multiple browsers.. same results

Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 05:02:41 pm
TTS server Tab is "opening Sonos_showTTS"  but stays on it and never opens..
.. Multiple browsers.. same results

You probably forgot to upload the new JS file ?

And of course, you have to free your WEB browser cache (Ctrl+F5 in general).
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 05:05:08 pm
It has been tested with IE9 on Win7, Firefox on Win7 and Chrome on Android.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: jimpapa on February 28, 2014, 05:06:15 pm
 :P  ... Yeah.. I guess you need all the files ... :)

Works great yes!!
Title: Re: Beta 4 version of the Sonos plugin released
Post by: jimpapa on February 28, 2014, 05:08:01 pm
And you can add Chrome and Safari on OXS!
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 05:10:00 pm
Works great yes!!

So swithing engine in the window and pushing button "Say" is working well in the two cases ?
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 05:13:13 pm
And you can add Chrome and Safari on OXS!

No presentation problem with Safari in the Player tab ? Buttons should be at the right of each pick-list (radio, queue, ...).
Title: Re: Beta 4 version of the Sonos plugin released
Post by: jimpapa on February 28, 2014, 05:33:51 pm
Is this what is expected? 
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on February 28, 2014, 05:37:49 pm
Yes, that is what is expected.
You have defined no Sonos playlist and no favorite radio ?
Title: Re: Beta 4 version of the Sonos plugin released
Post by: jimpapa on February 28, 2014, 05:54:50 pm
I just added a play list and it showed up right away.

I listen to Sirius and have those stations in my Sonos Favorites. Should those show up ?
Title: Re: Beta 4 version of the Sonos plugin released
Post by: Cor on March 02, 2014, 07:53:00 am
I updated yesterday to the latest version and I deleted the old devices and created new. But I saw I had double devices , so i don't think deleting the old ones was neccesary.

So ... I have to recreate and repair all my scenes again.    There is an issue with playing a radiostation from a scene. Attached a screenshot  from my settings, this worked with beta2 , but now it doesn't.

KRONEHIT is in my favourites.

many thanks,
Cor
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on March 03, 2014, 02:59:45 pm
I updated yesterday to the latest version and I deleted the old devices and created new. But I saw I had double devices , so i don't think deleting the old ones was neccesary.

So ... I have to recreate and repair all my scenes again.    There is an issue with playing a radiostation from a scene. Attached a screenshot  from my settings, this worked with beta2 , but now it doesn't.

KRONEHIT is in my favourites.

many thanks,
Cor

if your station is named "KRONEHIT", you have to use FR:KRONEHIT and not FR:<KRONEHIT>.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: Cor on March 03, 2014, 06:58:54 pm
Thanks , That worked :-)
Title: Re: Beta 4 version of the Sonos plugin released
Post by: dinochronos on March 26, 2014, 04:39:48 pm
Lodomo, any chance you can provide me instructions for loading beta 4 release. I have already the sonos plug-in installed ( woth assistance from mi casa verde tech support ) and would like to update it per your latest release myself and iin the future. Much appreciated great plugin !
Title: Re: Beta 4 version of the Sonos plugin released
Post by: jimpapa on March 26, 2014, 04:55:11 pm
The install is outlined here,  http://code.mios.com/trac/mios_sonos-wireless-music-systems

It is pretty simple. You will need WINSCP if your a windows user or if you are MAC you have the Terminal.

About 1/2 way down the page if you follow the docs exactly you will be in business. 
Title: Re: Beta 4 version of the Sonos plugin released
Post by: limkopi78 on March 31, 2014, 04:19:25 am
Hi,

I've never manage to get TTS work for my Sonos since the earlier plugins. I've tried at least 2-3 versions but the most I can do it to start and stop Sonos.

May I know if it helps to delete all the previous files for this plugin before trying this version again? I've been simply overwriting the previous versions. In some versions, my Sono is not even detected by the plugin.

I'm running on Vera 2 running UI5.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: kpeson on April 18, 2014, 05:20:00 am
Hi

Finally got me a Sonos Play1 and decided to install this app.

Can?t get it to work.I have followed the instructions from
http://code.mios.com/trac/mios_sonos-wireless-music-systems

Installed UPnp Event Proxy which seem to work.
Used WinSCP to download the icons to icons folder.

I downloaded the zip archive from both Trunk@171 and beta4@171 (don?t know the difference,tryed both).

When i create the device i think something goes wrong.

I get no buttons at all and no icons.
It?s exactly as described by Rich in
http://forum.micasaverde.com/index.php/topic,23312.15.html   post 29

but i did download the zipfiles.

tried several times but no luck.

Any ideas whats wrong...
Title: Re: Beta 4 version of the Sonos plugin released
Post by: futzle on April 18, 2014, 05:28:31 am
Two more screenshots might help:
- Apps > Develop > Luup files (scroll to where the D_Sonos* files you uploaded are).
- Advanced tab of the Sonos device you created (scroll to the top if it doesn't all fit).
Title: Re: Beta 4 version of the Sonos plugin released
Post by: kpeson on April 18, 2014, 05:37:20 am
Ok here they are...


If i try to use it in a scene i get invalid JSON for device.

I tried to reupload D_Sonos1.json file but no sucsess..

btw,i use Vera lite with UI5
Title: Re: Beta 4 version of the Sonos plugin released
Post by: kpeson on April 18, 2014, 07:43:01 am
Ok..problem solved,my mistake.
I have created devices many times before ,but this time for an unknown stupid reason i put the D_Sonos1.xml file as device type!!!
Now i?m ready to start playing with this nice app.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: dinochronos on April 25, 2014, 09:27:52 am
I just downloaded the Beta version 4 files and I am trying to upload the .png files using WinSCP and would like some guidance on how to do that as this is first time for me.

The  WinSCP screen requires the following ;
File Protocol : SFTP is this correct?
Host Name:--
Port No. : 22 is this correct?
Username: ?
Password: ?

Also assuming right parameters inserted and login successful  what is the next screen step to load all of the 8 .png files?

I think I will be ok with loading these files in Vera through the apps side in UI5 and following the rest of the instrucitons

D_Sonos1.xml
D_Sonos1.json
I_Sonos1.xml
J_Sonos1.js
L_Sonos1.lua
L_SonosTTS.lua
S_Sonos1.xml

Is there any thing else that I need to be following other than this.

Thanks for your help!


Title: Re: Beta 4 version of the Sonos plugin released
Post by: RexBeckett on April 25, 2014, 10:23:30 am
I've attached some notes on using WinSCP.

To transfer the png files, navigate in the right panel to /www/cmh/skins/default/icons. Now navigate in the left panel to the folder containing the files. Select all the png files then drag onto the right panel. Confirm to copy the files.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: tomgru on April 25, 2014, 11:40:01 am
The install is outlined here,  http://code.mios.com/trac/mios_sonos-wireless-music-systems

It is pretty simple. You will need WINSCP if your a windows user or if you are MAC you have the Terminal.

About 1/2 way down the page if you follow the docs exactly you will be in business.

Since I have the older plugin installed... is there any reason I need to WinSCP in to upload the png's?  Can I just reload the new files through the apps tab in Mios?  Should I delete the current devices first? 
Title: Re: Beta 4 version of the Sonos plugin released
Post by: dinochronos on April 26, 2014, 07:03:42 am
RExBeckett thank you for the very well detailed instructions to use WINSCP, everything worked perfect as detailed in your instructions!
Title: Re: Beta 4 version of the Sonos plugin released
Post by: dinochronos on April 26, 2014, 07:12:20 am
Lodomo, I uploaded the 7 files listed in the code mios document from the  beta 4 zip files

D_Sonos1.xml
D_Sonos1.json
I_Sonos1.xml
J_Sonos1.js
L_Sonos1.lua
L_SonosTTS.lua
S_Sonos1.xml

Although I noticed there is one more file I was not sure to load as was not listed in the instructions:

D_Sonos1_UI4.json

Should this be uploaded too via Vera Apps ...

Thanks !
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on April 26, 2014, 07:47:00 am
Lodomo, I uploaded the 7 files listed in the code mios document from the  beta 4 zip files

D_Sonos1.xml
D_Sonos1.json
I_Sonos1.xml
J_Sonos1.js
L_Sonos1.lua
L_SonosTTS.lua
S_Sonos1.xml

Although I noticed there is one more file I was not sure to load as was not listed in the instructions:

D_Sonos1_UI4.json

Should this be uploaded too via Vera Apps ...

Thanks !

It is explained in the wiki that this file is for users running UI4. In this case D_Sonos1_UI4.json has to be renamed into D_Sonos1.json. This file has to be ignored for UI5 users.

PS: your list of files is incomplete. Some services files are missing. All details relative to installation process are described here: http://code.mios.com/trac/mios_sonos-wireless-music-systems#
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on April 26, 2014, 07:50:09 am
The install is outlined here,  http://code.mios.com/trac/mios_sonos-wireless-music-systems

It is pretty simple. You will need WINSCP if your a windows user or if you are MAC you have the Terminal.

About 1/2 way down the page if you follow the docs exactly you will be in business.

Since I have the older plugin installed... is there any reason I need to WinSCP in to upload the png's?  Can I just reload the new files through the apps tab in Mios?  Should I delete the current devices first?

If you already have all the PNG files, no need to upload them another time with WinSCP. It depends on the age of your previous version, but in the last versions, I remember I have added a new icon for the Play:1.

No need to delete the current devices.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: tomgru on April 26, 2014, 10:37:28 am
The install is outlined here,  http://code.mios.com/trac/mios_sonos-wireless-music-systems

It is pretty simple. You will need WINSCP if your a windows user or if you are MAC you have the Terminal.

About 1/2 way down the page if you follow the docs exactly you will be in business.
perfect, thanks!
Since I have the older plugin installed... is there any reason I need to WinSCP in to upload the png's?  Can I just reload the new files through the apps tab in Mios?  Should I delete the current devices first?

If you already have all the PNG files, no need to upload them another time with WinSCP. It depends on the age of your previous version, but in the last versions, I remember I have added a new icon for the Play:1.

No need to delete the current devices.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: tomgru on April 26, 2014, 02:04:43 pm
awesome... looks great!!!!!
Title: Re: Beta 4 version of the Sonos plugin released
Post by: tomgru on April 27, 2014, 02:28:06 am
awesome... looks great!!!!!

Ah... I think i'm confused.  Looks like "beta 4" is not the same version you are testing with the Alpha of Authomation, correct? 
Title: Re: Beta 4 version of the Sonos plugin released
Post by: tomgru on April 27, 2014, 03:09:15 pm
:P  ... Yeah.. I guess you need all the files ... :)

Works great yes!!

I seem to have the right TTS tab... have tried to input text and "say".  I can actually see via my sonos desktop app that something is happening, but I don't hear anything, even with the volume turned up.   Sure i'm just missing something. 
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on April 28, 2014, 04:35:56 am
awesome... looks great!!!!!

Ah... I think i'm confused.  Looks like "beta 4" is not the same version you are testing with the Alpha of Authomation, correct?

Yes, for the alpha version of AutHomationHD, you have to use my development version (trunk). There is not a lot of differences with the beta 4 but one is important for AutHomationHD (change of the device type).
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on April 28, 2014, 04:38:00 am
:P  ... Yeah.. I guess you need all the files ... :)

Works great yes!!

I seem to have the right TTS tab... have tried to input text and "say".  I can actually see via my sonos desktop app that something is happening, but I don't hear anything, even with the volume turned up.   Sure i'm just missing something.

Please read the topics relative to TTS, same advices were given several times.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on May 02, 2014, 06:10:43 am
I fixed a little bug to have a correct behaviour in the Settings tab just after a device creation (+ free browser cache).
That will be included in coming version 1.0.
Title: Re: Beta 4 version of the Sonos plugin released
Post by: Svstud86 on May 05, 2014, 06:25:45 pm
hi long time lurker.  The Plugin seems to be working great except I can not get the TTS to work.  When you click play tts, I get "unable to play 'Say.63.mp3' access is denied"
Title: Re: Beta 4 version of the Sonos plugin released
Post by: lolodomo on May 06, 2014, 04:27:12 am
Check you have not secured your Vera unit (Setup => Unit Settings)