hermanho / MMM-GooglePhotos

Display your photos on MagicMirror from Google Photos.
MIT License
170 stars 65 forks source link

change position to bottom_left #118

Closed BugfishX closed 2 years ago

BugfishX commented 2 years ago

Hey guys, I am really a newbie using rasperry, MMMs, html or css. I like to configure this module to show my photos in the bottom left corner f.e..

If set position: "bottom_left", all pictures are shown in "middle" top left over all other modules. See attached picture Unbenannt

I dont understand why and hope you can help out here

BugfishX commented 2 years ago

Okay, got a solution which makes me satisfied for now: As described in Usage I setted showWidth & ShowHeight to make the module smaller at all. Depending on image ratio it fits good now. For all other newbies, here´s my code:

{ module: "MMM-GooglePhotos", position: "bottom_center", config: { albums: ["xxxxxxx"], // Set your album name. like ["My wedding", "family share", "Travle to Paris"] updateInterval: 1000 * 120, // minimum 10 seconds. sort: "random", // "old", "random" uploadAlbum: null, // Only album created bycreate_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: 1, maxWHRatio: 5, // WHRatio = Width/Height ratio ( ==1 : Squared Photo, < 1 : Portraited Photo, > 1 : Landscaped Photo) }, showWidth: 512, // These values will be used for quality of downloaded photos to show. real size to show in your MagicMirror region is recommended. showHeight: 288, timeFormat: "YYYY/MM/DD HH:mm", // Orrelativecan be used. /*debug: true,*/ } },

If there is a better solution: tell me :-)