CFenner/MMM-Sonos

node-sonos-http-api got an update and now Module doesnt work

Closed this issue · 8 comments

node-sonos-http-api got an update to accomodate node v6.x and now the module doesnt display any track information.

The module displays speaker/room name but no track or artist name or album art.

Any ideas why this might be?

Marc

same problemsame node version any solutions?

Hey guys, need to do some research here.. no idea. Have the same problem currently..

I found the bug problem is solved when replace line number 35 in sonos.js to

var state = item.coordinator.state.playbackState; //

@pixelecho, so my sonos.js looks like this now

    render: function(data){
        var text = '';
        $.each(data, function (i, item) {
            var room = item.coordinator.roomName;
            var state = item.coordinator.state.playbackState; //
            var artist = item.coordinator.state.currentTrack.artist;
            var track = item.coordinator.state.currentTrack.title;
            var cover = item.coordinator.state.currentTrack.absoluteAlbumArtURI;
            var streamInfo = item.coordinator.state.currentTrack.streamInfo;
            if(item.members.length > 1){
                room = '';
                $.each(item.members, function (j, member) {

this isnt working for me.

instead my mirror now shows this image : click here for image

@CFenner Hi Chris - any ideas why its not working now?

Hello,
i have the same issue. The module only shows the room names. If i change the line 35 in the sonos.js i see no picture but i get the album and artist info.

skpy commented

I hate to pile on, but I have nothing more to add than "me too!". If I modify line 35 as described above, I get only a list of zone names. Interestingly, if I leave lined 35 unmodified I get the same output: simply a list of zone names.

@dinkybluebug @pixelecho @Sillec123 @skpy sorry for the delay, it should work now.