Kodi Community Forum
Release Unsplash Photo Screensaver w/ Keyword Search - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Look and feel (https://forum.kodi.tv/forumdisplay.php?fid=178)
+---- Thread: Release Unsplash Photo Screensaver w/ Keyword Search (/showthread.php?tid=320095)

Pages: 1 2


RE: Unsplash Photo Screensaver w/ Keyword Search - CineBugger35 - 2023-03-21

Is the development of this add-on still active?


RE: Unsplash Photo Screensaver w/ Keyword Search - Lunatixz - 2023-03-21

(2023-03-21, 20:03)CineBugger35 Wrote: Is the development of this add-on still active?

Yes, is there an issue?


RE: Unsplash Photo Screensaver w/ Keyword Search - D-m-x - 2024-05-06

Hey,
I'm using your addon on one of my Pi, just wanted to ask if there's any change in how the Weather/Time is retrieved. I installed this addon a few days back but can't get the Time/Weather to display. On my 2nd Pi I'm using the Bing Addon (thank you for that as well Big Grin) where Weather/Time is working. Anything I could be missing?
Thanks!


RE: Unsplash Photo Screensaver w/ Keyword Search - jeraisel - 2024-07-03

Hello

I've been using unsplash as a screensaver in kody, for a long time, and hasn't been showing images the last few days, just a black screen.

In kodi's log I got:
screensaver.unsplash-1.0.8-openURL, Failed! HTTP Error 404: Not Found
I've looked around the internet, but haven't found any answer for this. And in this thread, the errors are slightly different
Does anyone know what is happening and how to fix this?

I'm using
NAME="LibreELEC"
VERSION="11.0.6"
ID="libreelec"
VERSION_ID="11.0"
PRETTY_NAME="LibreELEC (official): 11.0.6"
HOME_URL="https://libreelec.tv"
BUG_REPORT_URL="https://github.com/LibreELEC/LibreELEC.tv"
BUILD_ID="16216c3214a725e2b418b685504350a584baf12f"
LIBREELEC_ARCH="Generic.x86_64"
LIBREELEC_BUILD="official"
LIBREELEC_PROJECT="Generic"
LIBREELEC_DEVICE="Generic"
Generic.x86_64-11.0.6


Thanks


RE: Unsplash Photo Screensaver w/ Keyword Search - Lunatixz - 2024-07-03

(2024-07-03, 11:27)jeraisel Wrote: Hello

I've been using unsplash as a screensaver in kody, for a long time, and hasn't been showing images the last few days, just a black screen.

In kodi's log I got:
screensaver.unsplash-1.0.8-openURL, Failed! HTTP Error 404: Not Found
I've looked around the internet, but haven't found any answer for this. And in this thread, the errors are slightly different
Does anyone know what is happening and how to fix this?

I'm using
NAME="LibreELEC"
VERSION="11.0.6"
ID="libreelec"
VERSION_ID="11.0"
PRETTY_NAME="LibreELEC (official): 11.0.6"
HOME_URL="https://libreelec.tv"
BUG_REPORT_URL="https://github.com/LibreELEC/LibreELEC.tv"
BUILD_ID="16216c3214a725e2b418b685504350a584baf12f"
LIBREELEC_ARCH="Generic.x86_64"
LIBREELEC_BUILD="official"
LIBREELEC_PROJECT="Generic"
LIBREELEC_DEVICE="Generic"
Generic.x86_64-11.0.6


Thanks

I'll look into it thanks


RE: Unsplash Photo Screensaver w/ Keyword Search - jeraisel - 2024-07-09

Hello

Did you have a chance to figure out what's wrong?


RE: Unsplash Photo Screensaver w/ Keyword Search - embql - 2024-10-11

I set out to fix this as i love the idea of random art that can be curated easily and shown on the TV easily (collections ftw!), and as suspected, Unsplash requires an API key now for users to fetch images. Also there is a rate limit of 50 per hour so i tried to do something about that to not get too many errors and denials.
So first, you have to create an app at Unsplash and get the access key and post the key in the screensaver settings.
As such, I have added that to the settings and changed the endpoints as well as other code to correctly fetch urls (instead of source.unsplash.com I use api.unplash.com etc).
Beware I'm not too good at coding and it can probably be much more efficient, but at least it works - and especially with the collection mode as that is what I use.
Not really sure the other modes are working correctly, but images are returned and displayed so I'm not too invested.
Please take a look at the code and replace settings.xml and gui.py in the folder and subfolders of "Kodi\addons\screensaver.unsplash\resources\" (remember to backup just in case)
If some of this could be used to fix the current code on github feel free to use it. I'll also create an issue on github to discuss further. Not too much experience with pull requests so I'm not doing that right now.

gui.py: https://drive.google.com/file/d/19GMos61dMBZ_M3fhVUCorUmB7mWQ3NDn/view?usp=sharing
settings.xml: https://drive.google.com/file/d/1oD1ZqtFqhCF4MZYoXsf0USMyXYe6-_Xd/view?usp=sharing

Hope you can use it, thanks.
best