I have set up the MMM-Sonos module by @Snille , following @cohron’s instructions in this post: MMM-Sonos - To show what your SONOS is playing..
Also, I modified sonos-http-api.js as suggested in case this was a CORS issue.
The issue I’m having is this: When Sonos is playing, the module will show itself, but will not retrieve the now playing info. All that appears is: “Loading music…”.
I’m able to retrieve info when I look at http://192.168.1.xxx:5005/zones. The info looks like this:
[{"uuid":"RINCON_949F3E7458A001400","coordinator":{"uuid":"RINCON_949F3E7458A001400","state":{"volume":16,"mute":false,"equalizer":{"bass":0,"treble":4,"loudness":true},"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"x-sonosapi-radio:ST%3a3884443120794727150?sid=236&flags=8300&sn=2","type":"radio","stationName":"Miles Davis Radio"},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"trackNo":0,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playbackState":"STOPPED","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Living Room","coordinator":"RINCON_949F3E7458A001400","groupState":{"volume":16,"mute":false}},"members":[{"uuid":"RINCON_949F3E7458A001400","state":{"volume":16,"mute":false,"equalizer":{"bass":0,"treble":4,"loudness":true},"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"x-sonosapi-radio:ST%3a3884443120794727150?sid=236&flags=8300&sn=2","type":"radio","stationName":"Miles Davis Radio"},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"trackNo":0,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playbackState":"STOPPED","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Living Room","coordinator":"RINCON_949F3E7458A001400","groupState":{"volume":16,"mute":false}}]},{"uuid":"RINCON_949F3EF6E88801400","coordinator":{"uuid":"RINCON_949F3EF6E88801400","state":{"volume":8,"mute":false,"equalizer":{"bass":-2,"treble":4,"loudness":true},"currentTrack":{"artist":"Ratatat","title":"One","album":"9 Beats","albumArtUri":"/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJPlQepCmmlOPLag0OEDVysofgVDhWO_dbwFdUyzypA43A3qZswL_CkB.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1","duration":162,"uri":"x-sonos-http:_dklxfo-EJPlQepCmmlOPLag0OEDVysofgVDhWO_dbwFdUyzypA43A3qZswL_CkB.mp3?sid=151&flags=8192&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.6:1400/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJPlQepCmmlOPLag0OEDVysofgVDhWO_dbwFdUyzypA43A3qZswL_CkB.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1"},"nextTrack":{"artist":"Ratatat","title":"Two","album":"9 Beats","albumArtUri":"/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJN2rKe7xOc42oFmb88-Mp1hhk_TFXSosX6gpCzOdTGQYBAX9hQGy_mZ.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1","duration":129,"uri":"x-sonos-http:_dklxfo-EJN2rKe7xOc42oFmb88-Mp1hhk_TFXSosX6gpCzOdTGQYBAX9hQGy_mZ.mp3?sid=151&flags=8192&sn=1","absoluteAlbumArtUri":"http://192.168.1.6:1400/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJN2rKe7xOc42oFmb88-Mp1hhk_TFXSosX6gpCzOdTGQYBAX9hQGy_mZ.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1"},"trackNo":1,"elapsedTime":38,"elapsedTimeFormatted":"00:00:38","playbackState":"PLAYING","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Kitchen","coordinator":"RINCON_949F3EF6E88801400","groupState":{"volume":8,"mute":false}},"members":[{"uuid":"RINCON_949F3EF6E88801400","state":{"volume":8,"mute":false,"equalizer":{"bass":-2,"treble":4,"loudness":true},"currentTrack":{"artist":"Ratatat","title":"One","album":"9 Beats","albumArtUri":"/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJPlQepCmmlOPLag0OEDVysofgVDhWO_dbwFdUyzypA43A3qZswL_CkB.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1","duration":162,"uri":"x-sonos-http:_dklxfo-EJPlQepCmmlOPLag0OEDVysofgVDhWO_dbwFdUyzypA43A3qZswL_CkB.mp3?sid=151&flags=8192&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.6:1400/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJPlQepCmmlOPLag0OEDVysofgVDhWO_dbwFdUyzypA43A3qZswL_CkB.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1"},"nextTrack":{"artist":"Ratatat","title":"Two","album":"9 Beats","albumArtUri":"/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJN2rKe7xOc42oFmb88-Mp1hhk_TFXSosX6gpCzOdTGQYBAX9hQGy_mZ.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1","duration":129,"uri":"x-sonos-http:_dklxfo-EJN2rKe7xOc42oFmb88-Mp1hhk_TFXSosX6gpCzOdTGQYBAX9hQGy_mZ.mp3?sid=151&flags=8192&sn=1","absoluteAlbumArtUri":"http://192.168.1.6:1400/getaa?s=1&u=x-sonos-http%3a_dklxfo-EJN2rKe7xOc42oFmb88-Mp1hhk_TFXSosX6gpCzOdTGQYBAX9hQGy_mZ.mp3%3fsid%3d151%26flags%3d8192%26sn%3d1"},"trackNo":1,"elapsedTime":38,"elapsedTimeFormatted":"00:00:38","playbackState":"PLAYING","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Kitchen","coordinator":"RINCON_949F3EF6E88801400","groupState":{"volume":8,"mute":false}}]}]
How do I determine where the problem is? It seems like perhaps the module isn’t receiving the information it needs about the track being played. The state of my Sonos players is being transmitted, as the module will hide/unhide when the the state of a Sonos changes.
Thanks for your input; I’m learning this as I go.