noatpad / obsidian-banners

An Obsidian plugin that adds banners to your notes
MIT License
640 stars 42 forks source link

[REQUEST] Alongside Unsplash, add other picture APIs #8

Open firinael opened 3 years ago

firinael commented 3 years ago

Hi, there are several sources of rotating pictures you could add.

Some suggestions are:

Thanks!

noatpad commented 3 years ago

So the idea with Unsplash is being able to search through their images, instead of the banner cycling through random images periodically, in case there was confusion there (though that sounds like an interesting idea, but one that I might put further down the backlog).

The only "true" API listed there is NASA's (and you can kinda sneak into Bing's), but I might keep an eye out for other sources if I take on this idea! I wanna gauge first how many users use this plugin since I'll have to make a middleman API myself, & then I'll see with that if/when to work on the Unsplash search

firinael commented 3 years ago

What I'd thought of was an option to automatically add a random banner to any note you create, based on those daily rotations. Or maybe having it so Daily Notes using Banners accesses the Bing API and sets the banner for 2021-09-22 or something like that as the daily wallpaper for that day.

But yes, my apologies, I mistakenly thought "well, they have these rotations of images, so they surely must have an API for people to use them, right?".

firinael commented 3 years ago

Also, it seems there's a hook for the NatGeo Photo of The Day.

at: https://github.com/sterlingw/Nat-Geo-Photo-of-the-Day-API

My mistake, sounds like it's been deprecated for a long time.

KeithW0726 commented 3 years ago

Dear,you can check obsidian templater out. it's a module that allow plugin to fetch Unsplash pics randomly . hope it help to add this feature in Banner plugin!

https://silentvoid13.github.io/Templater/docs/internal-variables-functions/internal-modules/web-module