Bugsounet Coding

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Youtube tokenYT.json error

    Issues
    3
    12
    214
    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.
    • C
      cheun last edited by

      Hello everyone,
      Trying to setup Youtube but I this issue :
      7dc9389d-450b-4eff-8777-dd4a626b445a-image.png

      In the logs I see :
      [18.06.2021 20:55.15.196] [LOG] [GA] Error: ENOENT: no such file or directory, open ‘/home/pi/MagicMirror/modules/MMM-GoogleAssistant/tokens/tokenYT.json’
      [18.06.2021 20:55.15.197] [LOG] [GA][ERROR][FATAL] Youtube: tokenYT.json file not found !

      I guess I have to create a youtube token but I didn’t see any information about this in the forum. May be I’m missing something?

      Any help will be very appreciated !

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi,
        Are you really sure ? Do you think there is a no manual or no wiki somewhere ?

        1 Reply Last reply Reply Quote 0
        • C
          cheun last edited by

          Humm… I tried to install/reinstall the tokens with “npm run tokens” command.
          For GoogleAssistant token it’s Ok.
          For Youtube I get this :

          Do you want to install/reinstall YouTube token? [Y/n]
          Your choice: Y
          Opening OAuth URL. Return here with your code.

          That is werd because no url is diplayed (like GoogleAssistant token does)
          At this point sould I try to follow the same procedure for GoogleAssistant to generate un json file?

          1 Reply Last reply Reply Quote 0
          • D
            DJB1966 Helpers last edited by

            Did you try clicking on the link in the terminal itself Opening OAuth URL? Hover over the link left-click.

            C 1 Reply Last reply Reply Quote 0
            • C
              cheun @DJB1966 last edited by

              @djb1966 Hello, the text is not clicable, neither right right

              1 Reply Last reply Reply Quote 0
              • C
                cheun last edited by

                just to orient myself: should I keep digging the youtube token option or the answer is otherwhere else?
                thank you !

                1 Reply Last reply Reply Quote 0
                • D
                  DJB1966 Helpers last edited by

                  Did you enable API in google cloud console??
                  Capture.PNG

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cheun @DJB1966 last edited by

                    @djb1966 Yes it’s enabled

                    1 Reply Last reply Reply Quote 0
                    • C
                      cheun last edited by cheun

                      In the Wiki https://github.com/bugsounet/MMM-GoogleAssistant/wiki/Before-the-first-start
                      It’s mentionned to create the token for Google Assistant only and not for others (Youtube, Spotify…)
                      I followed the procedure carefully but I don’t understand not to generate a token for Youtube as requested in this Wiki

                      1 Reply Last reply Reply Quote 0
                      • C
                        cheun last edited by cheun

                        Ok 2 things :
                        1 - I was reading the procedure from the wrong wiki which not gives accurates informations about Youtube config.
                        The good wiki : http://wiki.bugsounet.fr/en/MMM-GoogleAssistant/YouTube

                        2 - I used to configure the mirror over a SSH console. When the Youtube token was created, a web browser was supposed to launch, that is impossible when the command line “npm run tokens” is sent via SSH.

                        Problem solved.
                        It would may be interresting de precise this point in the Wiki.

                        Thanks every body for the help

                        1 Reply Last reply Reply Quote 0
                        • bugsounet
                          bugsounet Main Coder last edited by

                          euh … it’s writed… In a terminal on the RPI desktop (NOT in SSH)

                          maybe in red it better ?

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            cheun @bugsounet last edited by

                            @bugsounet we can’t miss it now :-)))
                            Thank you for this amazing job

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Powered by NodeBB | @bugsounet ©2022