Read the statement by Michael Teeuw here.
MMM-GooglePhotos
-
Mi è comparsa una scritta sul Mirror che è disponibile un aggiornamento del modulo MMM-GooglePhoto come si fa l’aggiornamento?Grazie.
-
@Alex2020 vai alla cartella del modulo nella finestra del terminale ed emetti, git pull. se il modulo ha un file package.json, eseguire anche ‘npm install’
-
Salve mi compare un messaggio sul Mirror che ce una versione più recente come si aggiorna il modulo MMM-GooglePhotos ,come si fa l’aggiornamento?Grazie.
-
my auth_and_test is not working. it worked like a year ago, but I haven’t used it since. I’m really new and don’t really know what I’m doing. this is what i get:
pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ node auth_and_test.js
(node:698) UnhandledPromiseRejectionWarning: Error: invalid_grant
at createError (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/createError.js:16:15)
at settle (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/settle.js:18:12)
at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/adapters/http.js:201:11)
at IncomingMessage.emit (events.js:198:15)
at endReadableNT (_stream_readable.js:1139:12)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
(node:698) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:698) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.Any suggestions?
-
@Samwise usually means the authentication code has expired.
-
@Samwise
remove your currenttoken.jsonand try again. -
Dear Sean,
It seems the node auth_and_test.js command throws an error on my side :
pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ node auth_and_test.js /home/pi/MagicMirror/modules/MMM-GooglePhotos/auth.js:32 const oauthClient = new OAuth2Client(key.client_id, key.client_secret, key.redirect_uris[0]); ^ TypeError: Cannot read property 'client_id' of undefined at new Auth (/home/pi/MagicMirror/modules/MMM-GooglePhotos/auth.js:32:44) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GooglePhotos/auth_and_test.js:16:14) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)It seems it cannot read my client_id from credentials.json file… do you have an idea ?
Thanks a lot for your help ! -
@lucBtrl first, remove your credentials and create it again.
-
ok, so it worked, but then when i tried to set which album i wanted, it said this:
pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ nano MMM-GooglePhotos.js
nano: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory -
@Samwise
I can’t understand why you did this;pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ nano MMM-GooglePhotos.jsYou don’t need to (and shouldn’t) modify source code. use your
config/config.js.And, the error
nano: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directorycomes from your system, not my module. Maybe your system has been missing something.
-
ok i think everything is in order, but the pictures don’t actually show up…
-
@Samwise
Don’t know what happens without details. What does the log say? -
@Sean where do i find the log?
Also, this popped up: pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.7.1 start /home/pi/MagicMirror
sh run-start.sh/home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! magicmirror@2.7.1 start:sh run-start.sh
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the magicmirror@2.7.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-02-29T10_46_17_131Z-debug.log -
@Sean
Thanks a lot Sean !
It appears indeed that the credentials generated was not the right type (I may have not selected the right option in google api console). Worked better the second time !Marvelous results of the module
-
@Sean I logged into my google account and allowed consent. However, once I input the code back into the terminal, all I get is auth_and_test started.
What am I doing wrong?
-
@ayangu
when you did auth_and_test,token.jsonwas created? -
New Updates
[2.0.0] - 2020/03/23- Notice: Whole new build from scratch. new installation and configuration is needed.
- Removed: deprecated dependency
request. Instead, usingAxiosandhttps - Changed: More stable displaying photos
- Changed: New looks.
- Changed: Access album by name not by id.
- Added: You can filter photos by condition.
- Added:
GPHOTO_NEXT,GPHOTO_PREVIOUSnotifications are supported. - Added:
GPHOTO_UPLOADnotification is supported. NowMMM-SelfieshotandMMM-TelegramBotcan upload pictures with this module. - Removed:
mode,scanInterval,opacityis removed because no more necessary.
Screenshot


-
I am running MM on a RP zero W and I only have the RPi command line. It is running in server mode. When I execute node generate_token.js, it does not bring up a browser window where I can authorize for a token. Do I need to do something different?
-
@roccodicarlo open the chromium-browser to localhost:8080 to get the UI (if this is a graphical desktop pi 0)
when/how did u install? my automated script does the setup to run chromium if the graphical desktop exists
-
No this is not the graphical desktop, it is all CLI.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
