andrewmcgivery / obsidian-beautitab

A plugin for Obsidian.MD that creates a customizable new tab view with beautiful backgrounds, quotes, search, and more.
MIT License
131 stars 5 forks source link

No background showing #54

Open Failed-Spy opened 5 months ago

Failed-Spy commented 5 months ago

No image for the background is being shown. I even tried changing the themes to check if it's a theme problem, but it didn't seem like it. Screenshot 2024-05-27 174418

Medullitus commented 5 months ago

Same issue. Why this happened? Is there someone here plz?

bcwilsondotcom commented 5 months ago

Yep, same here. Looks like something broke.

thecookiemomma commented 5 months ago

same. Could it be a numbers thing? Like the unsplash API got overloaded or something?

bcwilsondotcom commented 5 months ago

I did some digging and added some debug logs to the plugin. It looks like Unsplash's random endpoint is throwing 500s.

Getting background with theme: seasons and holidays plugin:beautitab:6369 Seasonal tag: spring plugin:beautitab:6369 Unsplash URL: https://source.unsplash.com/random?spring&cachetag=MonMay272024 random:1 Failed to load resource: the server responded with a status of 503 (Service Unavailable)

Since I've already made some debug logging, I'll make PR to push it upstream. Handy for troubleshooting.

bcwilsondotcom commented 5 months ago

Okay, looking into this a bit more. It looks like source.unsplash.com has been depreciated for some time, and has only been left in place for legacy applications. They don't support it and I've seen a lot of other posts around reddit where people have had problems with it going back over a year.

The supported method is to use their new API, which requires registering an application and getting an API key. I'm going to pursue this route and will make a PR to the plugin after some thinking, coding, and testing.

In case source.unsplash.com stays down for an extended period of time, a temporary workaround would be to go directly to unsplash.com and download some backgrounds locally, add them to the plugin and then set the background theme to Local. It won't be as random or have as many images, but it will be better than the grey background!

mtakemoto commented 4 months ago

I'm also having this issue. Thought I configured the plugin wrong at first. @andrewmcgivery do you need some help testing out the PR before approving it? I think it'd be nice to get the random backgrounds working out of the box (though on the bright side, I remember where my local wallpaper folder is now)

fvoges commented 3 months ago

Until this is fixed, I'm using a service that returns Bing's image of the day. I've selected "custom" and entered this URL:

https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN

You can look at the documentation and code here: https://github.com/TimothyYe/bing-wallpaper

shaqmughal commented 2 months ago

I'm having the same issue as everyone else. Why isn't the suggested fix being approved?

shaqmughal commented 2 months ago

Until this is fixed, I'm using a service that returns Bing's image of the day. I've selected "custom" and entered this URL:

https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN

You can look at the documentation and code here: https://github.com/TimothyYe/bing-wallpaper

This is a nice work around. Appreciate the suggestion.

wunderpixel commented 2 months ago

https://picsum.photos/1920/1080

It seems no backgrounds yet, but I found this URL also works.

How to custom: https://picsum.photos/

ReaderGuy42 commented 1 month ago

Any updates?