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.

    MMM-NowPlayingOnSpotify no longer working?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    21 Posts 3 Posters 6.4k Views 3 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.
    • D Offline
      droidus
      last edited by

      I followed the instructions, and even deleted/created a new app in spotify dev, but after submitting step 2, the step 2 fields go away, and step 3 says it is waiting for step 2 to complete.

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

        @droidus sorry, we(I) don’t know what steps you are talking about

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          droidus @sdetweil
          last edited by

          @sdetweil The steps are listed here: https://github.com/raywo/MMM-NowPlayingOnSpotify

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

            @droidus are you doing this
            “When the app is running you can access it by opening localhost:8888 in your browser. Provided you are doing this directly on your Raspberry Pi”

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              droidus @sdetweil
              last edited by

              @sdetweil said in MMM-NowPlayingOnSpotify no longer working?:

              “When the app is running you can access it by opening localhost:8888 in your browser. Provided you are doing this directly on your Raspberry Pi”

              No, I am accessing via the 192. address.

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

                @droidus did u try on the pi?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  droidus @sdetweil
                  last edited by

                  @sdetweil No, this is a LXC container.

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

                    @droidus so are the ports mapped? 8888 on the container to something on the host?

                    unless u did that, that is not accessible

                    the request will cause a callback to that system

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      droidus @sdetweil
                      last edited by

                      @sdetweil I don’t see port 8888 running on the container.

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

                        @droidus

                        the authorization , step 2

                        cd authorization
                        node app
                        

                        should run forever

                        and app.js uses port 8888
                        so u have to run this IN the container, right?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          droidus @sdetweil
                          last edited by

                          @sdetweil Yes, it looks like the ports are mapped. I can reach the IP/port from my laptop.

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

                            @droidus ip:8888 right?

                            so when u open that with your laptop browser, you should see
                            this page https://github.com/raywo/MMM-NowPlayingOnSpotify/authorization/public/index.html

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            D 1 Reply Last reply Reply Quote 0
                            • D Offline
                              droidus @sdetweil
                              last edited by

                              @sdetweil Correct. I see that.

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

                                @droidus and u fill in the fields from the spotify dev account
                                what did you do for this step in the doc?

                                u had to do the host address, right?

                                Click on “Edit Settings” and add http://localhost:8888/callback to the Redirect URIs and save your settings.

                                I just did this on my spotify account and it brought up the auth page as expected… and authorize click brought the page with the code in

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                D 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  droidus @sdetweil
                                  last edited by

                                  @sdetweil so before for the ip, I was using my 192. address, but I tried localhost, and it errors saying: “INVALID_CLIENT: Invalid redirect URI”.

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

                                    @droidus I did that, forgot to add the /callback on the redirect on the Spotify page and the mapped port is 8888 on both sides, yes?

                                    http://localhost:8888

                                    on the host opens the auth page from the container

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    D 1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      droidus @sdetweil
                                      last edited by

                                      @sdetweil This is what I am seeing after entering those fields:

                                      2022-01-31_14-31.png

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

                                        @droidus so , is there any info on the node app running in the container?

                                        also open the developers window on the auth page before login, ctrl-shift-i on the keyboard, select the console tab

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        D 1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          droidus @sdetweil
                                          last edited by

                                          @sdetweil Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.spotify.com/v1/me. (Reason: CORS request did not succeed). Status code: (null).

                                          karsten13K S 2 Replies Last reply Reply Quote 0
                                          • karsten13K Offline
                                            karsten13 @droidus
                                            last edited by

                                            @droidus

                                            https://github.com/raywo built some nice modules but they are now unmaintained since 4 years. So there will be no fixes, may you find a fork which is still maintained.

                                            You could may fix it using a cors proxy (google will help) or you could use the built in cors proxy of mm which is not released yet (you have to use the develop branch for this).

                                            You find the url to proxy in this line.

                                            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
                                            • 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