Solved Upgrading GA from v3 to v4 with a Raspberry pi 4b
-
ok then and thank you for the explanation it will really help in the future : )
-
This migration is planned… but I prefer to code some new EXT before !
-
I found the config.js part of GATEWAY a little bit sort xD
{
module: ‘Gateway’
},i hope in the future you will create more options for the users over time as we test it.
-
just because … there is no config actually !
why ?
This module have no display
Why configuring something ? to display 2 EXT at same time (sample youtube and spotify ?)
self Rules is betterin all case: V1.1 is under-coding
I code this version for lazy guy (like me!!!)
This version will allow to configure and install with a html page (with computer, phone, tablet,…) all EXT plugins
Naturally, this “web link” will be protected with an username and password ! -
Ouaou sounds really awesome and insanely easy just don’t forget to leave us , the users some space to personalize .
-
it’s planned… don’t worry !
and after an auto-update (EXT-UpdateNotification) … you will have an auto-installer !
-
Proceeding with EXT-Alert
a question was created and i thought i know the answer but i will still ask it.
EXT-Alert should not be changed with Alert inside the config.js because the 2nd one is for the MM and the first one is for all the v4 modules.
So it would be like a new entry inside config.js right? -
gateway
will transcript defaultalert
toEXT-Alert
new formatNote:
- not sure default
alert
is really used by modules alert
is not used with default modules- That why i code my own with many feature (sound, icon, timer, style, …)
- Yes it’s really used with GA and all EXT plugins
- humm … i hate
alert
default module
- not sure default
-
pi@raspberrypi:~/MagicMirror/modules/EXT-FreeboxTV $ npm install
EXT-FreeboxTV@1.0.0 preinstall /home/pi/MagicMirror/modules/EXT-FreeboxTV
./scripts/postinstall.sh./scripts/postinstall.sh: line 24: cd…: command not found
grep: ./package.json: No such file or directory
grep: ./package.json: No such file or directory
Welcome to vChecking OS…
OS Detected: linux-gnueabihf (raspbian 11 armv7l) -
I tried yesterday to install the EXT-FreeboxTV i got some errors in the auto install script.
-
corrected (I think, i have done already … but not)
When i launch GA v4 and EXT plugins I make a mismake on installer scripts … (Installer is +/- universal … the same for all … so copy/past … and mismake is on all EXT)
So i Think is the last … -
/i just did an
npm run update
and no errors appeared so cheers : D -
just missing a space
-
Ok as i go on i am now in EXT-GooglePhotos and i got a little bit confused with the credentials file.
I first installed GoogleAssistant and created the credentials.js in the Google assistant directory and now i am installing the rest of the EXT-Features of it but
i did not npm run tokens yet ! i would do that after i install all the EXT-functions that i want. And my question is the correct way is to Copy the credentials.js inside the GooglePhotos Folder After i Run npm run tokens in the end e? and not right now as i am still installiing EXT-s ? -
The GoogleAssistant will recognize that i also have inside my modules folder the EXT-GooglePhotos when i am trying to run the tokens , without actually having a credentials.js in the GooglePhotos folder , so the menu to accept will still pop up normally e? since they are already enabled in the console
-
EXT-GooglePhotos will search in GA folder
credentials.json
and if not found it will search in EXT-GooglePhotos folderfor resume if you use GA v4. only one credentials.json is needed (in GA folder)
and EXT plugins will search it, find it and use it
Justnpm run token
is needed in your case in EXT-GooglePhotos foldersample:
bugsounet@debian:~/MagicMirror/modules/EXT-GooglePhotos$ npm run token > EXT-GooglePhotos@1.0.2 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' } [GPHOTOS:AUTH] Opening OAuth URL. ...
that you see … it found it in GA folder
and no
credentials.json
file onEXT-GooglePhotos
folderbugsounet@debian:~/MagicMirror/modules/EXT-GooglePhotos$ ls -la total 104 drwxr-xr-x 9 bugsounet bugsounet 4096 10 avril 13:47 . drwxr-xr-x 58 bugsounet bugsounet 4096 9 avril 19:17 .. -rw-r--r-- 1 bugsounet bugsounet 1877 6 mars 18:31 EXT-GooglePhotos.css -rw-r--r-- 1 bugsounet bugsounet 10960 7 mars 17:58 EXT-GooglePhotos.js drwxr-xr-x 8 bugsounet bugsounet 4096 5 avril 20:56 .git -rw-r--r-- 1 bugsounet bugsounet 15 1 janv. 14:17 .gitignore drwxr-xr-x 2 bugsounet bugsounet 4096 1 avril 15:53 installer drwxr-xr-x 2 bugsounet bugsounet 4096 23 mars 21:21 lib -rw-r--r-- 1 bugsounet bugsounet 1076 10 févr. 20:58 LICENSE -rw-r--r-- 1 bugsounet bugsounet 2363 5 avril 20:56 node_helper.js drwxr-xr-x 40 bugsounet bugsounet 4096 9 avril 21:40 node_modules -rw-r--r-- 1 bugsounet bugsounet 914 1 avril 15:54 package.json -rw-r--r-- 1 bugsounet bugsounet 24892 9 avril 21:40 package-lock.json -rw-r--r-- 1 bugsounet bugsounet 850 1 avril 15:55 README.md drwxr-xr-x 2 bugsounet bugsounet 4096 10 févr. 21:23 resources drwxr-xr-x 3 bugsounet bugsounet 4096 10 févr. 20:58 tmp -rw-r--r-- 1 bugsounet bugsounet 464 10 avril 13:47 tokenGP.json drwxr-xr-x 2 bugsounet bugsounet 4096 10 févr. 21:48 translations bugsounet@debian:~/MagicMirror/modules/EXT-GooglePhotos$
-
Hi Good evening , i went to register inside Gav4 folder
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $
i run npm run tokens
i got the external page code and i got the credentials for Gav4 were created and i thought it will keep going to try to get the credentials for Youtube and photos also but nothing. Should i go manually to every folder and run npm run tokens for Youtube and Photos? and if yes should i do it to any more EXT-modules? or am i doing something wrong?
I also use at my mirror the third party module pages and i have to write the modules i load in the page that i want them now with the new Gav4 setup Every EXT- is a different module? or should i just load Gav4 and all the others are part of the assistant? Thank you very much in advance -
Hi,
npm run tokens
command don’t exist
just read wiki of eachEXT
understand that:
EXT-XXX
is an plugin – list available there
MMM-XXX
is an module -
npm run token inside the gav4 directory but it only registers the assistant and not the youtube or photos is that correct?
and about the EXT- plugins in the config file they are registered as modules : soooo yeah i think MMM-pages would want me to write down every one of them . -
I will not force to generate all tokens … if user will not use it
It’s more logical to have one credentials (in GA folder) and generate token on needed EXT plugin
So EXT plugin have faculty to search credentials in GA folder or in EXT folder and generate token with the proper commandNote for MMM-Page …
- MMM-GoogleAssistant class is not needed because position is not needed (use popups)
- The same if plugin don’t need positon (Gateway, EXT-Links, EXT-Photos, …) because it use no display or use popup too