Read the statement by Michael Teeuw here.
Spotify
-
Moin moin!
Now I have managed to finally integrate the spotify connect server . Although is probably not an elegant solution but hey , it works… I used an iframe therefore. I can control this with the normal Spotify App

First of all is to install the Spotify Server. I used this tutorial: http://www.forum-raspberrypi.de/Thread-tutorial-spotify-connect-server-headless-standalone
I would recommend that the automatic start is delayed with 120 seconds , as otherwise the scs will launch before the magic mirror and there will no frame. When the server is running i got a new webpage running on the Raspberry with http://localhost:4000
I tried to extract the data for the actual playing title with curl but i am not an app programmer, so i used an frame instead.To change the background of the SCS webpage and get it compatible to the MagicMirror i added the next to
sudo nano ./spotify-connect-web-chroot/usr/src/app/templates/index.html.container{ padding-left: 0px; } .container:after{ background-colour: black!important; padding-left: 0px; } body { width: 450px; background-color: black; font-family:"robot"; font-color: white; } .well{ background-color: black; border: none } .thumbnail{ background-color: black; border: none } .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { font-family: "roboto"; font-weight: 500; line-height: 1.1; color: white; } .thumbnail a>img, .thumbnail>img { margin-right: auto; margin-left: 20px; height: 100px; } .text-center { text-align: left; } .col-sm-6{ padding-left: 0px; } p { margin: 0 0 10px; visibility: hidden; }And at the MagicMirror Index.html i added this:
'<div class="region bottom left"><div class="container"><iframe width="450" height="315" src="http://localhost:4000" frameborder="0" allowfullscreen></iframe></div></div>'et voilà
Maybe someone knows a better solution?
Note from Moderator: Please use Markdown on code snippets for easier reading.
-
I moved this into the general discussion category since it isn’t a real module (yet?).
-
This post is deleted! -
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login