• 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

Scheduled Pinned Locked Moved Entertainment
242 Posts 50 Posters 179.6k Views 53 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.
  • ? Offline
    A Former User
    last edited by A Former User Jun 5, 2020, 5:56 PM Jun 5, 2020, 5:56 PM

    @mmmmh :

    ec2c8523-54a4-4a39-a78a-db4e95a007de-image.png

    now idleInterval is set to 30000 (scan is Spotify is playing every 30 sec)
    if playing : updateInterval is set by default to 1000 (1sec)

    Attention it’s means that with idleInterval : when Spotify is playing to take 30 sec to display it in mirror !by default !

    1 Reply Last reply Reply Quote 0
    • M Offline
      mmmmh Project Sponsor
      last edited by Jun 6, 2020, 2:07 PM

      @Bugsounet Thanks. Do I understand this correctly. As long as the module is idle it will only check for updates every 30 seconds and when it is active (music is being played) it updates every second?

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by Jun 6, 2020, 2:10 PM

        Right,

        I hope this suits you, because it starts to take head ;)

        1 Reply Last reply Reply Quote 0
        • S Offline
          sbonn13
          last edited by sbonn13 Jun 7, 2020, 1:42 PM Jun 7, 2020, 1:42 PM

          Somehow the authorization process does not work.

          ...node first auth.js
          [SPOTIFY] Initialized
          

          Browser opened and the log in was succesful as well as accepting the app, but then instead of creating the token.js I receive an error:

          [SPOTIFY] Error in authentication flow!
          [SPOTIFY] ERROR: undefined
          [SPOTIFY] Authorization process finished!
          

          In spotify I can see that I have the mirror app available in approved apps, but there is not token in the modules folder. Therefore the connection does not work.

          Does anybody have an idea?
          Thanks

          S 1 Reply Last reply Jun 7, 2020, 1:45 PM Reply Quote 0
          • S Offline
            sdetweil @sbonn13
            last edited by sdetweil Jun 7, 2020, 1:58 PM Jun 7, 2020, 1:45 PM

            @sbonn13 there will be a message popup on the browser with a code (press the copy icon)
            then return to the terminal window and paste the code in at the little app prompt, and hit enter
            (make sure u don’t hit enter on that window before the browser opens, as the little app will take you enter key as the ‘token’ and not wait)

            you run the node auth… app
            and see

            Opening OAuth URL. Return here with your code.
            Paste your code: 
            

            then the browser opens, you pick your userid, then it asks for allow, then presents this screen

            Screenshot at 2020-06-07 08-54-43.png

            where u need to copy that and then return to app

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Jun 7, 2020, 3:35 PM Reply Quote 0
            • S Offline
              sbonn13 @sdetweil
              last edited by Jun 7, 2020, 3:35 PM

              @sdetweil
              Thanks unfortunately probably I do it completely wrong, I do not get it. Is there any instruction? OAuth was working fine for google services, but not with this Spotify solution :-(
              My procedure:
              1.) node first_auth.js as described in MMM-Spotify instruction.
              -> [SPOTIFY] Initialized appeared in terminal window
              2.) Browser opens with Spotify login, after having entered, spotify requesting access
              -> No code yet, no additional terminal window, also no change in existing terminal window
              3.) Click on accept access in browser (spotify)
              -> callback localhost:8888 appeared in domain and shows ?code=**** in parameter.
              But in the meantime the mentioned error has appeared immediately in the terminal window. No time or place to paste the code somewhere else. Where shall I put this code and at what point in the procedure?

              S 1 Reply Last reply Jun 7, 2020, 4:10 PM Reply Quote 0
              • S Offline
                sdetweil @sbonn13
                last edited by Jun 7, 2020, 4:10 PM

                @sbonn13 said in MMM-Spotify:

                callback localhost:8888 appeared in domain

                what does ‘appeared in domain’ mean?? sorry

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Jun 7, 2020, 6:39 PM Reply Quote 0
                • S Offline
                  sbonn13 @sdetweil
                  last edited by sbonn13 Jun 7, 2020, 6:40 PM Jun 7, 2020, 6:39 PM

                  @sdetweil
                  Following address is opened in browser: https://accounts.spotify.com/de/authorize?response_type=code&client_id=XXXXX&scope=user…

                  -> Press Agree button in Browser in order to agree access to spotify

                  Afterwards address in browser is changed to:
                  http://localhost:8888/callback?code=XXXXX&state=XXXXX…

                  I assume the code (anonymized XXXXX) in this address is the relevant one. But how to proceed with that? Because at the time I have received this code I already have the errors in my terminal window.

                  S 1 Reply Last reply Jun 7, 2020, 8:22 PM Reply Quote 0
                  • S Offline
                    sdetweil @sbonn13
                    last edited by Jun 7, 2020, 8:22 PM

                    @sbonn13 i do not know … @Bugsounet will have to help here

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by Jun 7, 2020, 10:52 PM

                      I’m going to inspect the first_auth script. there is too much problem, I think.
                      a little patience within a few days this should be fixed

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 15
                      • 16
                      • 17
                      • 18
                      • 19
                      • 24
                      • 25
                      • 17 / 25
                      17 / 25
                      • First post
                        163/242
                        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