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.

    node generate_token_v2 error

    Scheduled Pinned Locked Moved Solved Troubleshooting
    16 Posts 5 Posters 2.7k Views 5 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.
    • S Offline
      sdetweil @Crimson0087
      last edited by

      @Crimson0087 no, just ignore that message

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Crimson0087 @sdetweil
        last edited by

        @sdetweil

        That’s a hard stop…it doesn’t perform the action. According to tutorial when I type node generate_tokenv2 it should open a new window for me to log in to Google account and that doesn’t happen… nothing happens

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

          @Crimson0087 you ARE doing this ON the system console of the MagicMirror system, right… not over ssh or (maybe vnc, don’t use)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            Crimson0087 @sdetweil
            last edited by

            @sdetweil yes

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

              @Crimson0087 and you did put the downloaded creendtial json file in this folder with the name ‘credentials.json’

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Crimson0087 @sdetweil
                last edited by

                @sdetweil

                Yes I did.

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

                  @Crimson0087 ok, that has exhausted my experience here

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  BKeyportB 1 Reply Last reply Reply Quote 0
                  • BKeyportB Offline
                    BKeyport Module Developer @sdetweil
                    last edited by

                    @sdetweil Google did change their login experience anyway, so if the module’s not being maintained, it’s a hard stop, likely.

                    The "E" in "Javascript" stands for "Easy"

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

                      @BKeyport this is GoogleAssistant…

                      @bugsounet any help?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      bugsounetB 1 Reply Last reply Reply Quote 0
                      • bugsounetB Offline
                        bugsounet Banned @sdetweil
                        last edited by

                        Hi,
                        I haven’t noticed any issues creating tokens.
                        I don’t use the same method (mine is web app) and I use one credentials file (MMM-GoogleAssuistant credentials) for generate any token (Google Photo, Youtube, …)

                        This is my Terminal return:

                        bugsounet@PC-Bugsounet:~/MagicMirror/modules/EXT-GooglePhotos$ npm run token
                        
                        > EXT-GooglePhotos@1.4.4 token
                        > installer/token.sh
                        
                        Welcome to EXT-GooglePhotos Token generator!
                        
                        Do you want to install/reinstall EXT-GooglePhotos token? [Y/n] 
                        Your choice: y
                        [GPHOTOS] Check credentials.json...
                        [GPHOTOS] credentials.json found in /home/bugsounet/MagicMirror/modules/MMM-GoogleAssistant/credentials.json
                        [GPHOTOS] config: {
                          CREDENTIALS: '/home/bugsounet/MagicMirror/modules/MMM-GoogleAssistant/credentials.json',
                          TOKEN: '/home/bugsounet/MagicMirror/modules/EXT-GooglePhotos/tokenGP.json'
                        }
                        (node:3839) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
                        (Use `node --trace-deprecation ...` to show where the warning was created)
                        [GPHOTOS:AUTH] Opening OAuth URL.
                        
                        https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fphotoslibrary%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fphotoslibrary.sharing&prompt=consent&response_type=code&client_id=XXXX&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr
                        
                        Return here with your code.
                        > Paste your code: 4/0ATx3LY7fxmvgcDJ2qZrx...........
                        
                        [GPHOTOS:AUTH] Token is refreshed.
                        [GPHOTOS] TokenGP is generated.
                        

                        So I think author have to review his token generator

                        @bugsounet

                        BKeyportB 1 Reply Last reply Reply Quote 0
                        • 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