Read the statement by Michael Teeuw here.
MMM-GooglePhotos
-
@zolabus
My config is{ module: "MMM-GooglePhotos", position: 'middle_center', config: { albums: ["Noi"], updateInterval: 1000 * 60, sort: "random", showWidth: "426px", showHeight: "320px" } }, -
@zolabus please use the markup around config, or code
triple backtic (on US keyboard to left of the 1 key) on a separate line before and after
-
autoInfoPosition:can have callback function to adjust the position.
By default,GPHOTO_INFOwould have these value;#GPHOTO_INFO { position:absolute; top: var(--top); left: var(--left); bottom: var(--bottom); right: var(--right); margin:10px; ...so if your callback
autoInfoPosition(album, photo)might return['10px', '10px', 'none', 'none'], it will be the same with;#GPHOTO_INFO { position:absolute; top: 10px; left: 10px; bottom: none; right: none; margin:10px; ...You can add some randomized generated value as returns per photo, It will be a help.
-
@sdetweil Sorry I don’t understand if is a suggestion for my problem or how to post…
Thanks -
@zolabus how to post
-
@Sean Thanks. I think I have it working. Here’s what I used.
autoInfoPosition: (album, photo)=> { var boolRightLeft= Math.floor(Math.random() * 2); if (boolRightLeft == 1) { return ['none', '0', '0', 'none'] // This will show photo info bottom-left corner. }else{ return ['none', 'none', '0', '0'] // This will show photo info bottom-right corner. } } -
This new version works great. Thanks for all your effort. Is it possible to rotate the photo (similar to rotation of sticky on MMM-Memo) so that it looks like a photo on a cork board. I would like to rotate it ± 20 degrees.
-
This post is deleted! -
@roccodicarlo did you reinstall everything? Because I have loading…forever…
-
Yes I reinstalled everything
-
@Sean How would it be possible to run multiple instances so that I can have two picture frames displayed?
-
@roccodicarlo
Sorry, impossible. Not designed for that. -
@roccodicarlo ok thanks included all the steps for the google autenthication?
-
@Sean I reinstall everything and done again google authentication but I still have Loading…and nothing loads…
Some suggestions?
Thanks -
- Show me your configuration
- What log says?
- How much albums and photos in your account?
-
@Sean
{
module: “MMM-GooglePhotos”,
position: “middle_center”,
config: {
albums: [“Noi”, “2019 New York”],
updateInterval: 1000 * 60,
sort: “random”,
showWidth: “426px”,
showHeight: “320px”
}
},Only 2 albums, I don’t know how to read the logs…
Thanks
-
@Sean Any news for me? Still not working
Thanks -
@zolabus
Without more details, I have nothing to say…You can get a backend-log and frontend-log together by
npm start devon MagicMirror directory. (If you are using pm2, stop it first) -
@Sean
I have same error with @zolabus.
but it works very occasionally.
Perhaps it got worse recently.condition :
rpi 4B MM 2.11.0 npm 6.14.4 nodejs 10.20.1 photo counts : about 3000errorlog:
[2020-04-24 13:03:05.421] [LOG] [GPHOTOS:CORE] Getting Album info chunks. [2020-04-24 13:03:06.566] [LOG] [GPHOTOS:AUTH] Token is alive. [2020-04-24 13:03:06.567] [LOG] [GPHOTOS:CORE] Getting Album info chunks. [2020-04-24 13:03:07.519] [LOG] [GPHOTOS] Finish Album scanning. Properly scanned : 1 [2020-04-24 13:03:07.533] [LOG] [GPHOTOS] Initialized [2020-04-24 13:03:07.535] [LOG] [GPHOTOS] Start first scanning. [2020-04-24 13:03:07.537] [LOG] [GPHOTOS] Start Album scanning [2020-04-24 13:03:07.541] [LOG] [GPHOTOS:AUTH] Token is alive. [2020-04-24 13:03:07.543] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:10.195] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:12.284] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:13.953] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:15.580] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:18.212] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:27.554] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:29.439] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:31.248] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:32.969] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:41.248] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:43.034] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:54.235] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:56.981] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:03:58.694] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:04:02.317] [LOG] [GPHOTOS:CORE] Indexing photos now. [2020-04-24 13:04:17.583] [LOG] [GPHOTOS:CORE] Error: Client network socket disconnected before secure TLS connection was established [2020-04-24 13:04:17.587] [ERROR] (node:1902) UnhandledPromiseRejectionWarning: Error: Client network socket disconnected before secure TLS connection was established at connResetException (internal/errors.js:559:14) at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19) at Object.onceWrapper (events.js:288:20) at TLSSocket.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9) [2020-04-24 13:04:17.589] [ERROR] (node:1902) UnhandledPromiseRejectionWarning: Error: Client network socket disconnected before secure TLS connection was established at connResetException (internal/errors.js:559:14) at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19) at Object.onceWrapper (events.js:288:20) at TLSSocket.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9) [2020-04-24 13:04:17.590] [ERROR] (node:1902) 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) [2020-04-24 13:04:17.591] [ERROR] (node:1902) 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) [2020-04-24 13:04:17.591] [ERROR] (node:1902) [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. [2020-04-24 13:04:17.592] [ERROR] (node:1902) [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.config.js
module: "MMM-GooglePhotos", position: "fullscreen_below", config: { albums: ["딸래미들"], // Set your album name. like ["My wedding", "family share", "Travle to Paris"] updateInterval: 1000 * 30, // minimum 10 seconds. sort: "random", // "old", "random" uploadAlbum: null, // Only album created by `create_uploadable_album.js`. condition: { fromDate: null, // Or "2018-03", RFC ... format available toDate: null, // Or "2019-12-25", minWidth: null, // Or 400 maxWidth: null, // Or 8000 minHeight: null, // Or 400 maxHeight: null, // Or 8000 minWHRatio: null, maxWHRatio: null, // WHRatio = Width/Height ratio ( ==1 : Squared Photo, < 1 : Portraited Photo, > 1 : Landscaped Photo) }, showWidth: 800, // These values will be used for quality of downloaded photos to show. real size to show in your MagicMirror region is recommended. showHeight: 1700, timeFormat: "YYYY/MM/DD HH:mm", // Or `relative` can be used. autoInfoPosition: true, debug: true, }, -
@kykzzang said in MMM-GooglePhotos:
[GPHOTOS:CORE] Error: Client network socket disconnected before secure TLS connection was established
It means, your network is not stable.
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
