Read the statement by Michael Teeuw here.
MMM-Sonos - To show what your SONOS is playing.
-
All right, love trial and error. Got it all up and running on my MM rPI!!!
Through ssh pi@192.168.0.207 (my MM ip address)cd ~ //which puts me at /home/pi
pi@magicpi:~ $ git clone https://github.com/jishi/node-sonos-http-api.gitcd node-sonos-http-api
npm install --production
npm startverify, open a browser, point to your MM’s IP like so:
http://192.168.0.207:5005/zones
you should see a page full of sonos related text, if so the hard part is done…create another pm2 script named sonos.sh in ~ directory
cd ~
sonos.sh file contents:
cd ~/node-sonos-http-api
DISPLAY=:0 npm startpm2 start sonos.sh
pm2 start mm
pm2 savenow just do the normal git for the sonos module
pi@magicpi:~/MagicMirror/modules $ git clone https://github.com/Snille/MMM-Sonos.gitfill in your config, this is mine:
{
module: ‘MMM-Sonos’,
header: “Playing on SONOS”,
position: “top_center”, // This can be any of the regions, best results in center regions
classes: “default everyone”,
config: {
// See ‘Configuration options’ for more information.
showStoppedRoom: false,
showAlbumArt: true
}
},I also copied your awsome custom css content!
-
@cohron So it’s working now? Congrats! Great work! :)
-
This post is deleted! -
Great module! I am new to all of this and have the module working as intended. I listen to SiriusXM, Google Play and Spotify through Sonos.
Google Play looks great and pulls the Artist and Track Title correctly. However, SiriusXM is sending everything together. Is there a way to format what SiriusXM sends me?
For example, if I go to http://IP_Address:5005/zones when using Google Play, I see… {“currentTrack”:{“artist”:“Aretha Franklin”,“title”:“Respect”,“album”:“I Never Loved A Man The Way I Love You”,“albumArtUri”
But if I put on a SiriusXM channel, it looks like this… {“currentTrack”:{“title”:“BR P|TYPE=SNG|TITLE Cold Little Heart|ARTIST Michael Kiwanuka|ALBUM”,“albumArtUri”
As a result, the SiriusXM channel shows nothing for the Artist and “BR P|TYPE=SNG|TITLE Cold Little Heart|ARTIST Michael Kiwanuka|ALBUM” for the Track. Would love to get it to show something like “Cold Little Heart, Michael Kiwanuka” instead.
Any help is appreciated. Thanks!
-
Hi! Hm… Looks like the SiriusMX information is not coming out in JSON format correctly from the SonosAPI.
I think you may have to contact Jimmi about this. Open an issue here: https://github.com/jishi/node-sonos-http-api/issues and describe your problem. As soon as the “output” is in correct JSON format, it should be working. Usually hes quick in fixing things. :)Good luck.
-
Hello,
I got two sonos (for now) but on my mirror i only want to show one of this two. I don’t find how to do that, is ti possible ?
-
@Desaydrone
I don’t have any Sonos devices. According to the read me, you can exclude zones, I guess that’s what you are after, right?Just follow the download link in first post and scroll down to the bottom for options
-
Thaanks i didn’t see this options !!
THanks a lot -
Thank you for your work @Snille! Got it working on my mirror yesterday. Works great!
-
Hello,
Can you please explian how and where to create the sonos.sh file?
And how to then add the rest into that file?I’m having trouble understanding what you mean by placing a script in ~ directory…
And the next part cd~sonos.sh file contents:Thanks
create another pm2 script named sonos.sh in ~ directory cd ~ sonos.sh file contents: cd ~/node-sonos-http-api DISPLAY=:0 npm start pm2 start sonos.sh pm2 start mm pm2 save