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

Missing token.json issue in MMM-Spotify

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 871 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.
  • R Offline
    Rags
    last edited by May 15, 2023, 3:33 AM

    Firstly, my screen is not touch screen. I just need this module to display the songs currently being played on spotify. Will it work only for display?

    After installing the module successfully and configuring, spotify.config.json with the client id and client secret, the module is not working. The spotify image appears on the screen but nothing else.
    While trying to debug, After running npm start , the error shown is token.json file missing.

    [SPOTIFY - xxxxxgrxqe4xps01xxxxxxx] Token file not found! /home/pi/MagicMirror/modules/MMM-Spotify/USERNAME_token.json
    [15.05.2023 08:09.37.724] [ERROR] [SPOTIFY - xxxxxxps01uyt6kxxxxxx] Token error! ./USERNAME_token.json ( (I entered the random chars of USERNAME))

    When i checked the module folder, I could not find the token.json file in MMM-Spotify folder. Does it get generated automatically when the code runs?

    I have two queries. on the spotify.config.json file that needs to be configured prior to running MMM-Spotify.
    [
    {
    “USERNAME”: “A_NAME_TO_IDENTIFY_YOUR_ACCOUNT”,
    “CLIENT_ID”: “PUT_YOUR_SPOTIFY_APP_CLIENT_ID”,
    “CLIENT_SECRET”: “PUT_YOUR_SPOTIFY_APP_CLIENT_SECRET”,
    “TOKEN”: “./USERNAME_token.json”
    }
    ]

    Is the USERNAME required to be the one on spotify account? Can the name be anything else? (my username in spotify is some random characters, can it be replaced with display name or email account)
    In the “TOKEN” config line is the “./USERNAME to be replaced with the username mentioned above or has it to be left as it is? (”./USERNAME_token.json")

    I have raised an isue in the Github repo.
    Thanks

    S 1 Reply Last reply May 15, 2023, 11:39 AM Reply Quote 0
    • R Offline
      Rags @sdetweil
      last edited by May 15, 2023, 3:20 PM

      @sdetweil OOPS !!!
      I missed doing the auth step. It works now Sir.
      What does this Forum do without you. Thanks for all you help.
      Just to answer my own questions;
      Yes this works in screens without touch, and displays the song currently being played.

      1. The username can be any name you want.
      2. In the “TOKEN” config line you can replace the name used as Username.
        Thanks Sam, once again for this,
      S 1 Reply Last reply May 15, 2023, 3:49 PM Reply Quote 0
      • S Offline
        sdetweil @Rags
        last edited by sdetweil May 15, 2023, 11:41 AM May 15, 2023, 11:39 AM

        @Rags did you run the auth pgm as part of the install? it creates the token.json file

        Screenshot_20230515_064117_Chrome.jpg

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply May 15, 2023, 3:20 PM Reply Quote 0
        • R Offline
          Rags @sdetweil
          last edited by May 15, 2023, 3:20 PM

          @sdetweil OOPS !!!
          I missed doing the auth step. It works now Sir.
          What does this Forum do without you. Thanks for all you help.
          Just to answer my own questions;
          Yes this works in screens without touch, and displays the song currently being played.

          1. The username can be any name you want.
          2. In the “TOKEN” config line you can replace the name used as Username.
            Thanks Sam, once again for this,
          S 1 Reply Last reply May 15, 2023, 3:49 PM Reply Quote 0
          • S Offline
            sdetweil @Rags
            last edited by May 15, 2023, 3:49 PM

            @Rags I don’t know how most of the modules work, but install and update is a consistent thing.

            and checking for errors.

            and I’m a geek… so all this is fun

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • C Offline
              Capt.Jib
              last edited by Nov 29, 2023, 2:34 PM

              I entered the first-auth.js. However, I kept on getting error in my authentication.

              S 1 Reply Last reply Nov 29, 2023, 3:36 PM Reply Quote 0
              • S Offline
                sdetweil @Capt.Jib
                last edited by Nov 29, 2023, 3:36 PM

                @Capt-Jib and what is the error?

                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