Closed karoltheguy closed 2 years ago
Hiya @k-rol
I'm not sure if there'd be enough interest in this for me to build a dedicated Bing image widget.
But you should be able to do this with the Image Widget, all you'll need is a URL that serves up the raw image. For reference this is the service I built to do that for APOD, it will likely be very similar: github.com/lissy93/go-apod
Looks like this project already does what you need, in the form of a GH action. So maybe something like this could work:
widgets:
- type: image
options:
imagePath: https://cdn.jsdelivr.net/gh/WangNingkai/BingImageApi@latest/images/latest.png
Or, you might be able to use the RSS Widget, with Bing's rss feed. Or build your own simple widget for the Embeded widget, or build a simple web page, and use it with the iframe widget. If none of those options work for you, you can build your own widget very similar to the APOD widget use that.
Hey @Lissy93! You could have done a mic drop after this. I'm amazed that you gave me 5 good solutions.
The first one using the image widget worked straight out. You also made me realize I didn't know GitHub actions, I've got some learning to do...
thank you very much!
Ha ha, well I'm glad one of them worked! :) Oh yeah, GitHub actions is so cool, you can have a lot of fun automating all kinds of stuff!
Is your feature request related to a problem? If so, please describe.
No response
Describe the solution you'd like
A widget of the same style as "Astronomy picture of the day" but with Bing images.
To extract the image we need to call:
https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US
Then cat urlbase + url from the JSON
Details at https://stackoverflow.com/questions/10639914/is-there-a-way-to-get-bings-photo-of-the-day
Priority
Low (Nice-to-have)
Is this something you would be keen to implement
No