I’ve had my mirror in a portrait for a long time. I was thinking of playing around with changing it to landscape and started wondering if i was possible to have the layout change based on browser orientation. I know there’s CSS that can be used to move things around based on orientation (https://developer.mozilla.org/en-US/docs/Web/CSS/@media/orientation) , but I was wondering if there was any way to use that to actually move which modules were in what region.
Read the statement by Michael Teeuw here.
Posts
-
Change layout based on orientation?
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil MMM-BackgroundSlideshow seems to do exactly what I want, but I think your handling of formatting the images is better.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil Thanks. That’s helpful. But I think it’s still above my pay-grade. I may poke around and see if I can figure something out, but I’m not sure I can. I conceptually understand what’s happening, but don’t see it in the code in a way that is clicking for me such that I can just make a call to an Exif method where it pulls the data from the file.
I’ve come across a couple of other modules who are doing some of it, but again, I’m not quite sure I understand how the data is being passed around so that I can correctly apply the logic in the right place.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil Thanks. I got that up and running. One thing I wish it had (and I don’t think any module does). I’d like to show some of the EXIF data.
At a minimum, the date the photo was taken, but ideally, also lookup the location and display that in a friendly manner (i.e. City, State, Country)I thought, “that shouldn’t be too hard” but I don’t understand modules and the relationship of node helper to the main js. I’m not sure how to load the appropriate library to access the exif data.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil yeah Google was one of my backups. We are primarily an Apple family but there’s no iCloud module that I’m aware of. I’ll have to do an export or figure something else out.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil The way they want it to work is that the user makes the selection, the app gets the items, the session ends. In this case, that would mean the module would have to pull the photos locally which would limit the number of photos available by the amount of space available. I might as well just use a different module and put all my photos somewhere on my network.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil so the user wouldn’t have to Re-select after an hour? That can’t be right.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil Maybe. I don’t know how the picker stores the relationship to the app and the permissions. If it’s in the browser in some way, launching from a phone might not work. It might need to be from the browser on the MM.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil I have an idea but I’m not sure how to make it happen.
I’m not a module developer beyond being able to adjust some code here and there.Maybe if you have time, you can think about if it’s possible?
What if there was a config flag for “PickPhotos” that if it was true, it would open a picker interface. Then after it’s been done, the user can re-set it to false and the module can go back to just loading photos.
I’m sure there are some other tweaks to the API that will impact this but it’s the only thought I’ve had so far to implement something inside the existing framework.
-
RE: Google Photos API changing - MMM-GooglePhotos will stop working soon.
@sdetweil I know! This is the highlight of my MM. Without it, I think other members of my family will certainly be less impressed. I understand the logic on google’s part, but I wish there was a way on the photos side to share with the application instead of having to implement the picker in the application.