kolbyjack / MMM-Wallpaper

MagicMirror module to display wallpapers from various online sources
https://magicmirror.builders/
MIT License
104 stars 31 forks source link

Web Locations #33

Closed CraigTorg closed 3 years ago

CraigTorg commented 3 years ago

I am sure it is something simple. The Bing, Fire TV, and Chromecast sources all work great but I cannot figure out how to pull images from any of the other sources. I am pretty sure that I have the source section placed correctly in the config because I can switch between Bing, Fire TV, and Chromecast.

I am using the Magic Mirror OS which places the modules folder under a "mounts" folder. I can't imagine that would make a difference.

Any idea what I might be doing wrong?

CraigTorg commented 3 years ago

I have discovered that the photo file names (I am trying to pull from a Flickr group) are showing up and rotating in the lower right corner of the Magic Mirror screen. It is a really small title in the lower right. Seems like the correct photos and also pulling the correct amount of max entries but there are still no photos being shown.

kolbyjack commented 3 years ago

Some flickr albums don't provide high res versions of the images, can you try setting flickrHighRes: false?

CraigTorg commented 3 years ago

That was it! I had tried calling it true thinking that the files might be too big; overwhelming the RPi. This is great! Thanks!

CraigTorg commented 3 years ago

So...I lied. I thought that worked but it looks like it just defaulted back to the Bing list :/

kolbyjack commented 3 years ago

Can you paste the module config in a comment here, just block out your actual group id with xxxx or whatever

CraigTorg commented 3 years ago
            {
                    module: "MMM-Wallpaper",
                    position: "fullscreen_below",
                    config: { // See "Configuration options" for more information.
                            slideInterval: 60 * 1000, // Change slides every minute
                            source:"flickr-group:78115702@N00", 
                            flickrHighRes: "false",
                            maximumEntries: '3'
                    }
            },

I am trying to pull from a general group just to get it working. I would like to eventually be able to have a shared location where my wife and I could easily update photos to update the wallpaper with family photos or something.

Thanks for your help!

kolbyjack commented 3 years ago

ah, javascript is terrible when it comes to this. "false" is a truthy value, because it's a non-empty string. That needs to just be flickrHighRes: false

CraigTorg commented 3 years ago

Still nothing. I grabbed the "else if" url from the node_helper.js file and manually subbed out the group name (not in the file but copy and pasted in a web browser). It is pulling the Flickr api so I am not sure why it won't get images for my background. Any chance that it may take loading time? Does it have to go through the whole group of photos before it randomly generates the max entries?

kolbyjack commented 3 years ago

Are you restarting the server after making the config changes? It caches the image list for 90% of the updateInterval, so it may have the high res urls cached if you're not restarting it. I tested locally with the config you pasted and it worked just fine, I loaded a few low-res images of snowy hills, it looked like?

CraigTorg commented 3 years ago

Ah...not the whole server. Just refreshing the screen. I'll give that a go. Good to know it is working on your end. Would you mind sharing your module config code?

CraigTorg commented 3 years ago

Got it for real this time! Awesome! Thanks!

CraigTorg commented 3 years ago

I have a Flickr question. I am only able to get photos from groups if flickrHighRes is false. Is there a way to pull high res photos? I tried uploading my own photo to a new group. I can use it as a wallpaper but only in low res. I know the photo is high res and has a high res file on Flickr. Do I need to add a tag at the end of the group id to force a pull of higher resolution photos?

kolbyjack commented 3 years ago

It appears that flickr changed their api since I first wrote the module, their high res pictures now get a separate hash from the low res versions. I'll see if I can change the method I use to extract the photos to parse their html instead

CraigTorg commented 3 years ago

Gotcha. Thanks for taking a look at that!