Youtube tokenYT.json error
-
Hello everyone,
Trying to setup Youtube but I this issue :
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 !
-
Hi,
Are you really sure ? Do you think there is a no manual or no wiki somewhere ? -
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? -
Did you try clicking on the link in the terminal itself Opening OAuth URL? Hover over the link left-click.
-
@djb1966 Hello, the text is not clicable, neither right right
-
just to orient myself: should I keep digging the youtube token option or the answer is otherwhere else?
thank you ! -
Did you enable API in google cloud console??
-
@djb1966 Yes it’s enabled
-
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 -
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/YouTube2 - 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
-
euh … it’s writed…
In a terminal on the RPI desktop (NOT in SSH)
maybe in red it better ?
-
@bugsounet we can’t miss it now :-)))
Thank you for this amazing job