Read the statement by Michael Teeuw here.
MMM-GooglePhotos taking over entire screen
-
I’ve got this module up and running with a small number of photos in an album - just for testing purposes.
I initially had the module set up to display over the entire screen using the position background_below.
I didn’t like this and have set the module to bottom_bar, the same position as MMM-CalendarExt3 so I can use MMM-Carousel to switch between these two.I’m using the default code example from the module
{
module: “MMM-GooglePhotos”,
position: “bottom_bar”,
config: {
albums: [albumname],
updateInterval: 1000 * 60, // minimum 10 seconds.
sort: “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: null,
maxWHRatio: null,
// WHRatio = Width/Height ratio ( ==1 : Squared Photo, < 1 : Portraited Photo, > 1 : Landscaped Photo)
},
showWidth: 1080, // These values will be used for quality of downloaded photos to show. real size to show in your MagicMirror region is recommended.
showHeight: 1920,
originalWidthPx: 1920,
originalHeightPx: 1080,
timeFormat: “YYYY/MM/DD HH:mm”, // Orrelative
can be used.
}
},I’ve // ShowWidth, showHeight, originalHeightPx and originalwidthPx.
from the module install info I’ve tried adding
#GPHOTO_CURRENT {
background-size: cover;
}
to the custom.css file in the MagicMirror/css as the guidance says this should make it cover one position on the screen (I’ve again used bottom_bar).But when launching the MM the Googlephoto overlays everything else on the screen.
what am I missing to get the photo to only take up the lower portion of the screen so it can be switched at set time intervals with my calendar in the same bottom_bar position?
My apologies for how the code is formatted following it being copied and pasted.
Cheers.
-
@JMac bottom bar is the page footer. that would make the image full width, and as big as required to show the image
i think you want to try middle_center
and you will have to give a sizesee this post for a view of the regions
https://forum.magicmirror.builders/topic/286/regions -
@sdetweil wherever I position the module it’s always at the correct height on the screen but always up against the right hand edge of the screen.
edit to add by setting the show width/height, it’s sensible size.
any thoughts on this?
-
@JMac the middle_center starts (top left) in the middle, so will overflow to the right, welcome to the fun of web page positioning
thats why i said to use the dev window to learn what you can do to move it around
-
@JMac maybe try bottom_center
-