GithubHelp home page GithubHelp logo

Comments (3)

tomershvueli avatar tomershvueli commented on May 26, 2024

Homepage isn't meant to be an image-heavy application necessarily. And since each instance is self hosted, it's up to the developers themselves to figure out how or where to get their background images from - I just figured Unsplash was a good place to start and provide a default for users. Even with 50 images / hour, that's still a new image request every 90 seconds. I wouldn't say that Unsplash is no longer viable.

Do you have a suggestion for a replacement service? Alternatively, I could change the default time_to_refresh_bg config variable to 90 seconds, meaning a normal user wouldn't go over the free app allotment.

from homepage.

zerosonesfun avatar zerosonesfun commented on May 26, 2024

Sorry, I don’t know of a replacement service. The problem is that by default you get Unsplash’s “demo” API. Meant for testing only. If anyone applies for Unsplash’s normal production API Unsplash will shut it down. That’s what happened to me. I wasn’t trying to abuse their API or place this homepage within a traffic heavy site. I just thought, “I’ll apply for the production API... why not? It’s free.” I didn’t realize Unsplash would then shut it down after seeing it was a rotating image situation.

But, it’s fine for you to keep this as-is. If nothing else as an example that you can use some kind of API for the background images. Maybe some type of note in the readme would be helpful though. I’m sure I won’t be the only person who assumes since Unsplash’s API is free, they are okay with this set up. Even if this is installed solely as intended (a personal homepage) as soon as you apply for the API or probably at any point really, Unsplash may shut it down.

from homepage.

tomershvueli avatar tomershvueli commented on May 26, 2024

@zerosonesfun I see. Sorry you came across that. It's a bit absurd to think that they would revoke your API key entirely instead of simply denying the Production key. I'd imagine you can probably create another one under a separate account and keep it at demo level for this purpose.

FWIW, I added a note (22e7d06) warning future users to not try and go down the same path. Thanks for the heads up!

from homepage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.