Solved When i run "npm run tokens" i get only the token for GA but not for Youtube data v3 API or the Google Photos API
-
Hi,
I followed the instruction from your video :https://www.youtube.com/watch?v=xVhqP3fBnVMGOOGLE ASSISTANT V3 SMART MIRROR | UPDATED SEPT 2021
and i recreated the hole process , amazing work you did by the way by far one of the best instructional videos i 've ever seen , i did my project in a raspberry pi 3b+ , everything works perfectly i just cannot register the tokens for the 2 api’s that we all installed through the
video :Youtube data v3 API and Google Photos. Even though i enabled those 2 API’s in google cloud when i download and install the credentials file in the GA directory and i run it with “npm run tokens” i get only the token for the GA and then the tokens.sh stops and the 2 API remain without a token !!! Please o please help me install my youtube data v3 API in my MMM-google assistant. I do not have the knowledge to write a program on my own to oath2 the youtube data v3 api , because i even checked them out… Please help me rewrite a correct tokens.sh or please tell me what to do , i dont understand what i did wrong everything else works perfectly. Thank you very much in advance Bugsounet. -
This is the current Content i have inside my Tokens.sh :
#!/bin/bash
±--------+
| Tokens |
±--------+
get the installer directory
Installer_get_current_dir () {
SOURCE=“${BASH_SOURCE[0]}”
while [ -h “$SOURCE” ]; do
DIR=“$( cd -P “$( dirname “$SOURCE” )” && pwd )”
SOURCE=“$(readlink “$SOURCE”)”
[[ $SOURCE != /* ]] && SOURCE=“$DIR/$SOURCE”
done
echo “$( cd -P “$( dirname “$SOURCE” )” && pwd )”
}Installer_dir=“$(Installer_get_current_dir)”
move to installler directory
cd “$Installer_dir”
source utils.sh
Installer_info “Welcome to GA Tokens generator!”
echo
Installer_beep=falseInstaller_yesno “Do you want to install/reinstall GoogleAssistant token?” && (
rm -f …/tokens/tokenGA.json
node auth_GoogleAssistant
)echo
Installer_success “Done.”// What else do i need to add inside the Tokens.sh so when i run “npm run tokens” it will also registrate a token for my Youtube data v3 API and the google Photos Api
-
The Video has nothing to do with Bugsounet the Video is by someone not connected to this forum or GAv3.
the reason Youtube is not working is your using a pi3 it only works for a pi4 it’s all in Bugs Howto Wiki.
The installer picks up your using a pi3 and installs a lite version of GA without youtube. -
@djb1966
Sorry i wasn’t aware that the video wasn’t yours because it refers to your library , excuse me for that.
Is there a way to link me the missing code from my tokens.sh that a raspberry pi4 would have only to try to see if it will work for me in pi3b+?
I really want to try at least and if i knew node js i would have written the missing code myself based on the samples of youtube api in node js that i have been reading for the last 2 days. You are my last hope you are the real experts for me and i request if it is possible for you to link me the missing code from my tokens.sh or link me a link where i can download the raspberry pi 4 tokens.sh full version as shown in the linked video. Thank you very much in advance . -
Read wiki
-
-
That would be up to Bugs himself I cant.
-
I am already streaming Youtube videos with MMM-screencast inside my Magic Mirror and it runs really fine on raspberry pi3b+
If the tokens file would registrate everything properly i think it would have worked. If the possibility to link me a full tokens.sh file(like it should be on rpi4) stands or maybe the missing part of the code that i am missing from my tokens.sh to register the tokens for the api’s i would be really helpful. I also own a rpi4 and i could reconstruct the code there to get the full tokens.sh file that i need but it takes a looong time , it would be so much more helpful if somebody could paste me the missing part of the code and with one copy paste i could fix the file and try it myself . Anyway thank you very much for everything i will keep checking from tomorrow if bugs will link me the missing part of the code in tokens.sh or a link to download the file from somewhere. -
@aggelaras said in When i run "npm run tokens" i get only the token for GA but not for Youtube data v3 API or the Google Photos API:
Hi,
I followed the instruction from your video :https://www.youtube.com/watch?v=xVhqP3fBnVM
GOOGLE ASSISTANT V3 SMART MIRROR | UPDATED SEPT 2021
and i recreated the hole process , amazing work you did by the way by far one of the best instructional videos i 've ever seen , i did my project in a raspberry pi 3b+ , everything works perfectly i just cannot register the tokens for the 2 api’s that we all installed through the
video :Youtube data v3 API and Google Photos. Even though i enabled those 2 API’s in google cloud when i download and install the credentials file in the GA directory and i run it with “npm run tokens” i get only the token for the GA and then the tokens.sh stops and the 2 API remain without a token !!! Please o please help me install my youtube data v3 API in my MMM-google assistant. I do not have the knowledge to write a program on my own to oath2 the youtube data v3 api , because i even checked them out… Please help me rewrite a correct tokens.sh or please tell me what to do , i dont understand what i did wrong everything else works perfectly. Thank you very much in advance Bugsounet.- it’s not my video
- It’s not because token script is limited that you can have a full version.
- in your version all features is decoded and deleted. Only converse with google is coded
- Rpi 3b+ (and less) have not enough memory to support full GA
you can only use Light GA with other modules as you want and try to link it with recipes or others, sorry
in your case, this is wiki of GA Light
-
bugsounet