MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    UNSOLVED MMM-Spotify having trouble with authentification

    Troubleshooting
    3
    4
    237
    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.
    • J
      Jack_Gregorski last edited by

      I am trying to install the MMM-Spotify module onto my magic mirror. I follow the steps on the github page and everything seems to be working up until the authentication stage. The Spotify popup opens after I run the node first_auth.js command in the terminal, but when I click allow in the new webpage I get an error, “This site can’t be reached localhost refused to connect.” Any ideas on how to fix this, any help would be appreciated.

      Fozi S 3 Replies Last reply Reply Quote 0
      • Fozi
        Fozi Project Sponsor @Jack_Gregorski last edited by

        @Jack_Gregorski Are you using a free or premium account? The free account will not work. See https://github.com/skuethe/MMM-Spotify#restrictions

        HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

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

          @Jack_Gregorski on the redirect url in the Spotify config did you use http://localhost:8888/callback

          as per the readme?

          that url should show on the error page

          Sam

          Create a working config
          How to add modules

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

            @Jack_Gregorski ok, i see the same thing…

            workaround
            change Spotify.js
            from

            line 249-250

                let file = path.resolve(__dirname, this.config.TOKEN)
                let waitForFileTimeout = 0
            

            to

                let file = path.resolve(__dirname, this.config.TOKEN)
                let waitForFileTimeout = 60*1000
            

            basically the code sets up the server to listen for the callback, but doesn’t wait for you to interact with the web page

            opened issue
            https://github.com/skuethe/MMM-Spotify/issues/192

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy