Read the statement by Michael Teeuw here.
Google Photos API changing - MMM-GooglePhotos will stop working soon.
-
With the Google API changing , the MMM-GooglePhotos module is going to stop working Unless someone develops a way to utilize the new picker API. It looks like the users will need to select photos to share with the application.
This would change the workflow and I’m not sure how it would be implemented.
-
@gonzonia this is a really sad…
-
@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.
-
@gonzonia yeh… and the way I read the doc says you have to pick the individual media items… not a folder…
-
@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.
-
@gonzonia one could launch a web app maybe via phone to access the picker?
-
@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.
-
@gonzonia it wont be in the browser, they will want to control it at the access level
-
-
@sdetweil so the user wouldn’t have to Re-select after an hour? That can’t be right.
-
@gonzonia so it seems.
-
@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.
-
@gonzonia yes, i use local already. have a 12tb nas drive for photos
-
@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.
-
@sdetweil what module are you using for local photos?
-
@Andresleonsalas I use an updated version of MMM-ImagesPhotos
see my fork https://github.com/sdetweil/MMM-ImagesPhotos
supports recursive image folder…
I am picky about displaying my photos…
I don’t want cover or contain, I want consistent aspect ratio…
fit vertical or horizontal and adjust the other to the physical size… -
@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.
-
@gonzonia modulename.js runs in a browser
but a browser cannot access files, except thru a web server,
also cant access hardware (gpio)so the node_helper runs on server as task, so it can
there is an api to send request to helper and get response back,
this module uses another trick, by accessing a web link to a fileanyhow , here is a drawing i did years ago to explain this, its truncated on the side on purpose, as its just repetitive

my sample module shows all that operation
https://github.com/sdetweil/SampleModuleanyhow, one could extend the response to include the exif data
here is a nodejs lib that does exif
https://www.npmjs.com/package/exif -
@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.
-
@sdetweil MMM-BackgroundSlideshow seems to do exactly what I want, but I think your handling of formatting the images is better.
-
S sdetweil referenced this topic on
-
S sdetweil referenced this topic on
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
