MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    On-Demand Music

    Scheduled Pinned Locked Moved Development
    18 Posts 8 Posters 9.7k Views 14 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • yawnsY Offline
      yawns Moderator
      last edited by

      Spotify is not supported? About 2 weeks ago when I last played around with my mirror components spotify was still working and I could use my phone or my laptop to select music to be played on my mirror.

      M 1 Reply Last reply Reply Quote 1
      • M Offline
        MistriHD @yawns
        last edited by

        @yawns What software did you use? I’ve been researching for hours and couldn’t find a way to get Spotify on my RPI. Where did you install it from?

        yawnsY 1 Reply Last reply Reply Quote 0
        • C Offline
          Chiumanfu
          last edited by

          I use Volumio to play Spotify on a RPi and the MMM-Volumio plugin to display Now Playing info from Volumio.

          https://volumio.org
          https://forum.magicmirror.builders/topic/2515/mmm-volumio

          1 Reply Last reply Reply Quote 1
          • M Offline
            MistriHD
            last edited by

            Hey guys, I ended up using mopidy (mopidy.com) which works great, but it requires Spotify premium.

            1 Reply Last reply Reply Quote 0
            • yawnsY Offline
              yawns Moderator @MistriHD
              last edited by

              @MistriHD

              I use spotify-connect-web: https://github.com/Fornoth/spotify-connect-web
              There is a MagicMirror frontend available: https://github.com/CatoAntonsen/MMM-SpotifyConnectUI
              You don’t need the frontend, it just helps you seeing your spotify status on your mirror. And the installation instructions are helpful.

              The biggest issue is getting the app-key. I completed the request form 3 times and it took 2-3 weeks but I received my app-key and went on.

              This is my spotifyconnect.sh file. Of course you need to add your spotify premium username and password. And you might need to play around with playback devices. The -n switch defines the name you see when browsing for Spotify devices.

              #!/bin/bash
              cd /home/pi/spotify-connect-web
               ./spotify-connect-web --username IWONTTELLYOU --password WONTTELLEITHER --bitrate 320 --n MagicMirror --playback_device sysdefault:CARD=ALSA
              

              After everything is set, the connect service is running on your pi and you should be able to select it on your smartphone, your tablet, the browser frontend or your computer, if you are on the same network.

              schlachtkreuzer6S 1 Reply Last reply Reply Quote 1
              • schlachtkreuzer6S Offline
                schlachtkreuzer6 @yawns
                last edited by schlachtkreuzer6

                A pretty easy an fast way is by installing this: https://discourse.osmc.tv/t/howto-spotify-connect-support-via-raspotify-librespot/38348?source_topic_id=15818&source_topic_id=15818

                the best things are: works instantly , works instantly with justboom amp hat etc; stream from different profiles

                but there is no frontend yet,…

                1 Reply Last reply Reply Quote 0
                • lavolp3L Offline
                  lavolp3 Module Developer @Guest
                  last edited by

                  @Lisa-Brown Haha, well Lisa, that’s not exactly what I would call “on demand” music playback . I guess the OT had something different in mind.
                  However with the ample possibilities with Spotify on a Raspberry Pi nowadays I wonder why you would go through such an extensive workaround.

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  ? 1 Reply Last reply Reply Quote 1
                  • ? Offline
                    A Former User @lavolp3
                    last edited by

                    @lavolp3
                    I have been reading tons of topics about spotify music converter or downloader nowadays in this forum. I doubt its a kind of Adv. or spam.

                    Anyway, Any kind of downloading or storing Spotify music stream is violation of EULA. It would be illegal attempt.

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      MistriHD @Guest
                      last edited by

                      @Sean So you’re saying that it’s illegal to use the Spotify client? We’re downloading music to temporarily stream it, so it’s a violation of the EULA, right?

                      Spotify has an API for developers, and it is meant to be used to stream music to other platforms using Spotify. I figured out how to do it 2 years ago, and posted the answer in this thread. Thanks for your input though!

                      lavolp3L ? 3 Replies Last reply Reply Quote 0
                      • lavolp3L Offline
                        lavolp3 Module Developer @MistriHD
                        last edited by lavolp3

                        @MistriHD it is as it is. Ripping is against their eula. Sean is of course right. The songs you download through their app have a protection so you can’t use them elsewhere. If you download and save an mp3 it’s against the terms. Obviously.
                        And I for myself would never do such thing.
                        Never!!!

                        How to troubleshoot modules
                        MMM-soccer v2, MMM-AVStock

                        1 Reply Last reply Reply Quote 0
                        • lavolp3L Offline
                          lavolp3 Module Developer @MistriHD
                          last edited by

                          @MistriHD said in On-Demand Music:

                          So you’re saying that it’s illegal to use the Spotify client?

                          No he didn’t say that.

                          How to troubleshoot modules
                          MMM-soccer v2, MMM-AVStock

                          1 Reply Last reply Reply Quote 0
                          • ? Offline
                            A Former User @MistriHD
                            last edited by A Former User

                            @MistriHD
                            well, I respect your efforts but terms and condition says like this;

                            The following is not permitted for any reason whatsoever:

                            copying, redistributing, reproducing, “ripping,” recording, transferring, performing or displaying to the public, broadcasting, or making available to the public any part of the Spotify Service or the Content, or otherwise making any use of the Spotify Service or the Content which is not expressly permitted under the Agreements or applicable law or which otherwise infringes the intellectual property rights (such as copyright) in the Spotify Service or the Content or any part of it;

                            and developer guideline also says;

                            Restrictions
                            General restrictions. You agree that you will follow the restrictions set out below and will not encourage or facilitate others to violate these restrictions. (…)
                            d. Do not facilitate unauthorized access to the Spotify Service or Spotify Content, including
                            …
                            (iii) facilitating “stream ripping” or other functionalities that make it easier for users to capture or otherwise make permanent copies of Spotify Content.


                            Downloading and storing(or caching) spotify stream to DRM free MP3 is violation of that [“ripping” to make available to the public is not allowed]. This rule is also applied generally to Netflix, youtube or any other commercial streaming services.

                            Literally, streaming data is stored(cached) in your pc already, but that is under official application. When you extract it out of official app, hmmm… it might not be ILLEGAL but at least IMMORAL. You are breaking the agreement.

                            As far as I know, The only allowed open sdk for playing spotify songs outside official app/web is “web playback SDK” but including that, there is no SDK API to reuse streaming data cached or streamed in your device directly. All other attempts are not allowed.

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              MistriHD
                              last edited by

                              When you extract it out of official app, hmmm… it might not be ILLEGAL but at least IMMORAL. You are breaking the agreement.

                              Yes, but you see, that’s where you are wrong. If you read my original post, you would see that I’m not downloading it from the “official app”, which doesn’t exist on Raspberry Pi, nor am I downloading it at all — I’m using the Spotify Web API to stream music, which is explicitly allowed. If you think that’s illegal, then you’re wrong, and you should go report mopidy-spotify instead of trying to convince me that I’m an immoral person.

                              ? 1 Reply Last reply Reply Quote 0
                              • ? Offline
                                A Former User @MistriHD
                                last edited by

                                @MistriHD
                                Ok, there be some confusing. I’m talking about ‘Spotify Music Converter’ or ‘Downloader’ of @Lisa-Brown 's reply, not original works of yours. Your uncomfortable might be my faults, sorry.

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MistriHD @Guest
                                  last edited by

                                  @Sean I see, thanks for letting me know. Sorry for the misunderstanding.

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil
                                    last edited by

                                    @jhoney maybe look at raspotify

                                    https://github.com/dtcooper/raspotify

                                    https://medium.com/@pugillum/spotify-connect-with-raspberry-pi-a3280893a076

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0

                                    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
                                    • 1 / 1
                                    • First post
                                      Last post
                                    Enjoying MagicMirror? Please consider a donation!
                                    MagicMirror created by Michael Teeuw.
                                    Forum managed by Sam, technical setup by Karsten.
                                    This forum is using NodeBB as its core | Contributors
                                    Contact | Privacy Policy