0
Завершен

Sonos module

Oksana (expert) 10 лет назад в Готовые скриптовые модули обновлен Moe 5 лет назад 37
You can ask your question about Sonos module here.

Download Sonos Module: http://www.iridiummobile.net/products/module/sonos/

Ответ

Ответ
At the moment Sonos module don't support Sonos expansion.
Excuse me, currently I'm trying to link sonos speaker with iredium mobile, but I have no idea about the way to connect them, maybe I have your guidance please?
I create a button, then, no then already, tried many way but I don't even know which is closer to the answer
Do you use Sonos module from our site? Link: http://www.iridiummobile.net/products/module/sonos/
yes, but it doesn't show the connection to the speaker, maybe I miss something?
What do you see, when you start iRidium with Sonos module from our site?
Hello,

I would like to ask you if it would be pssible to integrate Spotify into Sonos and controle it via Iridium.

Thanks a lot!
Ответ
At the moment Sonos module don't support Sonos expansion.
And would you happen to know it the development is planned?

Please I try to use this module and it works fine but sometimes it doesn't found players, the question is if is possible to config the ip of the sonos players to get always the players

Thanks

In the archive there is a ReadMe file which explains how to register the IP address of your Sonos player.

https://s3.amazonaws.com/iridium2_downloads/Script_Drivers/Sonos.zip

Thanks for your reply, please I have one more question I need to know if is possible to put a button to turn on/off all players


Thanks

You can combine different zones for which you configured receivers Sonos. In this case, you will be able to control all areas and respectively all Sonos players at the same time.




But you will not be able to play different music in each zone. I.e. all areas have the same music and volume.

Thanks for your reply but I am building an GUI with hdl equipments and I I have some scenes and one of that is out home and I want that when I press out of home all lights off, curtain down, etc and all sonos pause with one button and I don't want to group the sonos thanks

Here's an example of such implementation: Sonos.irpz


Button "Start / Stop all "


in JS:


// Start/Stop all Sonos

stopAll = GetItem(gui.stopAll);
IR.AddListener(IR.EVENT_ITEM_PRESS, stopAll, function()
{
for(var ind = 0, len = groups.length; ind < len; ind++){
if(play.Value == 1){
groups[ind].parent.InvokeAction("Pause", "urn:schemas-upnp-org:service:AVTransport:1", {InstanceID: 0} );
}else{
groups[ind].parent.InvokeAction("Play", "urn:schemas-upnp-org:service:AVTransport:1", {InstanceID: 0, Speed: 1} );
}
}
});

you have to manage fixed ip adress through your router.

Thank you very much it works, only have one question I need to know if it is possible to control sonos out of my local network, the idea is I have a office with HDL bus pro, sonos, cameras and iridium gate, when I stay in my local network I can control all perfect and when I go out and use mobil data I can control all except sonos so the question is is possible to control that

Thanks

Base on research I have done before,and reading the posts (on sonos forum) there are some settings that need to be changed in the firewall of the router as the broadcast of the sonos will not be allowed past the router, even via vpn



The Sonos app uses SSDP (UDP port 1900) to destination 239.255.255.250 (broadcast) to detect the Sonos boxes.


So add a firewall rule allowing

Source: VPN Pool IP Address
Service: Any IP
Destination: 239.255.255.250/32


I have not tested this but gives you somewhere to start


cheers

I have project where i am using this sonos module.

Problem is that Track name is always Album name so it is wrong.

Any ideas how to fix this? I REALLY NEED SOME HELP WITH THIS ASAP! :)


Hi

I fixed this a long time ago, but don't recall exactly where sorry


In the GUI check that where you want the track to display, that gui item is called 'Track'


Here is where to look in the Javascript and make sure you have the following:

1. Sonos_main - look for

  track:      "Sonos:main.Track",

2. Sonos_control - check the following

about line 395:
track = GetItem(gui.track);
artist = GetItem(gui.artist);
album = GetItem(gui.album);
art = GetItem(gui.cover);
about line 1571:        
if(group && group.parent == this)
{
track.Text = l_track;
artist.Text = l_artist;
album.Text = l_album;


about line 1685:    
        track.Text = xml2["dc:title"];


Yes I checked and i think all is already in script.It is very important to solve this problem as quick as possible! :)

Yes I checked and i think all is already in script.

It is very important to solve this problem as quick as possible! :)

I was just checking the original version and it seems ok, you can see the Sonos app in blue and iRidium in green, confirming the details are correct:


However, I did find it flicks between the album name and track name when changing songs, but should end up on track name:


Album = Away from the sun

Track = I feel you

[25-02-2016 09:36:38.156]    INFO    ===========line 1497  l_track: Away From The Sun
[25-02-2016 09:36:38.159]    INFO    ===========line 1498  l_artist: 3 Doors Down
[25-02-2016 09:36:38.160]    INFO    ===========line 1499  l_album: Away From the Sun
[25-02-2016 09:36:38.160]    INFO    ===========line 1502  l_track: Away From The Sun
[25-02-2016 09:36:38.160]    INFO    ============line 1512  l_track:Away From The Sun
[25-02-2016 09:36:38.161]    WARNING    XML Construct Error: Error document empty. 0 0
[25-02-2016 09:36:38.172]    WARNING    
[25-02-2016 09:36:38.393]    INFO    ===========line 1497  l_track: Away From The Sun
[25-02-2016 09:36:38.402]    INFO    ===========line 1498  l_artist: 3 Doors Down
[25-02-2016 09:36:38.403]    INFO    ===========line 1499  l_album: Away From the Sun
[25-02-2016 09:36:38.403]    INFO    ===========line 1502  l_track: Away From The Sun
[25-02-2016 09:36:38.404]    INFO    ============line 1512  l_track:Away From The Sun
[25-02-2016 09:36:38.405]    WARNING    XML Construct Error: Error document empty. 0 0
[25-02-2016 09:36:38.416]    WARNING    
[25-02-2016 09:36:38.451]    INFO    ===========line 1497  l_track: I Feel You
[25-02-2016 09:36:38.459]    INFO    ===========line 1498  l_artist: 3 Doors Down
[25-02-2016 09:36:38.459]    INFO    ===========line 1499  l_album: Away From the Sun
[25-02-2016 09:36:38.462]    INFO    ===========line 1502  l_track: I Feel You
[25-02-2016 09:36:38.463]    INFO    ============line 1512  l_track:I Feel You
[25-02-2016 09:36:38.474]    WARNING    XML Construct Error: Error document empty. 0 0
[25-02-2016 09:36:38.486]    WARNING    
[25-02-2016 09:36:38.615]    INFO    ===========line 1497  l_track: I Feel You
[25-02-2016 09:36:38.626]    INFO    ===========line 1498  l_artist: 3 Doors Down
[25-02-2016 09:36:38.637]    INFO    ===========line 1499  l_album: Away From the Sun
[25-02-2016 09:36:38.649]    INFO    ===========line 1502  l_track: I Feel You
[25-02-2016 09:36:38.660]    INFO    ============line 1512  l_track:I Feel You

I guess the next thing would be to install the Sonos app if you have not already, and re-build your Sonos library.

Ok. After I reimported songs to playlist it shows correct names again.

But another problem I discovered is:

iPad goest to sleep mode > after several hours I use my iPad and sonos again in normal mode > Sonos updates itself to current playlist song and current playlist but list of songs has been disappeared. Only way to get sonos function properly again is to reboot whole ipad or upload sonos project to iPad again. Any idea what causes this?

Could it be some kind of playlist update bug?

Sometimes Current Playlist text shows for example 53 of 83 but songs on Playlist wont update.

I would really use some help with this! ;)

Also I have this sonos module in multiple ipads and specific ipad connecting to specific sonos ip adress.

I have disabled Found device listener so it connects only to ip adress i have on SONOS_IP -script but i don't think that is the issue here?


// Found device listener

//IR.AddListener(IR.EVENT_DEVICE_FOUND, 0, FoundDevice);

Is this module compatible with current Sonos devices?  I currently have a Sonos Connect Version 7.3.  

I can see currently playing items, pause and control volume, however when selecting music sources there are no items in the selected source.  The only working music source that is populated is "Radio", where I can navigate through the various options.  Also, there is nothing displayed in the "Current Playlist" column.  

Hello, we not supported modules for V2.2... Use i3pro, please.

Сервис поддержки клиентов работает на платформе UserEcho