• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-Spotify having trouble with authentification

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 4 Posters 783 Views 4 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.
  • J Offline
    Jack_Gregorski
    last edited by Jul 19, 2022, 7:26 PM

    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.

    F S 3 Replies Last reply Jul 27, 2022, 12:20 PM Reply Quote 0
    • F Offline
      Fozi Project Sponsor @Jack_Gregorski
      last edited by Jul 27, 2022, 12:20 PM

      @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 Away
        sdetweil @Jack_Gregorski
        last edited by sdetweil Jul 27, 2022, 12:51 PM Jul 27, 2022, 12:51 PM

        @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

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @Jack_Gregorski
          last edited by sdetweil Jul 27, 2022, 2:59 PM Jul 27, 2022, 2:53 PM

          @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

          How to add modules

          learning how to use browser developers window for css changes

          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 Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy