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 8.1k 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.
    • M Offline
      MistriHD
      last edited by

      Hi there!

      I’m developing my own software for my magic mirror from the ground up, and putting it on a Raspberry Pi. I’ve got a good speaker and a good microphone, and I was planning to use a Spotify CLI that I found to control Spotify on my Raspberry Pi and play Spotify music through the speaker, but I recently found out that Spotify is not supported on a Raspberry Pi. I’ve been researching it for the past couple of hours and I can’t find a single way to play music on-demand on a Raspberry Pi, where I can simply tell what song I want and it will play.

      Does anyone know if there’s a way to get Spotify on a Raspberry Pi? I’m willing to do anything (even install a new operating system). If not, what other alternative methods do I have to play music on-demand on a Raspberry Pi? I have access to Spotify Premium and Amazon Prime Music, but I know neither of those have official APIs that I can use to play music on-demand.

      Thanks in advance!

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

        I seen an article of someone doing it, but it was its own project. Unaffiliate with the MagicMirror.

        http://www.pimusicbox.com/

        Not looked into it. I made an AlexaPi and the only dissapointing thing about it is that it doesn’t play Spotify or Prime Music. I was looking into the possibility of using this but it was an after thought about a week ago.

        1 Reply Last reply Reply Quote 0
        • 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
                        • 1
                        • 2
                        • 1 / 2
                        • 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