Using kodi thumbnail from brinding

hey Guys,

im not sure if this is the place to ask this question.

using openhabs rest api. i can call

myip/rest/items/kodi_kodi_5fcf3faf_thumbnail/state

which will return a very long string that changes when next movie or ep starts.
etc.

data:image/jpeg;base64,/9j//gAQTGF2YzU3LjQ4LjEwMQD/2wBDAAgEBAQEBAUFBQUFBQYGBgYGBgYGBgYGBgYHBwcICAgHBwcGB…etc

im not sure how to convert this back to image within my html page

so my question is any pointers on how to do this?

thanks,
nick

As this is a very nice idea :slight_smile: please take a look at this:


You will have to get rid of the first part

data:image/jpeg;base64,

and then decode base64 to a jpeg file. I would recommend to do this with a script. after the script has done its magic, you could show the jpeg with the Image Widget.