Page 1 of 1

Dynamic images from a URL

Posted: Wed Dec 16, 2015 12:45 pm
by TonyG
Hi Scott,
"Added support for loading dynamic images from a URL (e.g. http://path-to-image/image.png). This makes it convenient to display images in Software Remotes that are stored on a Webserver/Internet."
I know you have this working for the Kodi plugin (and it's put to very good use), but is it also available to use elsewhere? i.e for web images in panels

Thinking of a page of traffic cams (static images but regularly updated). As an example: http://public.highwaystrafficcameras.co ... 48648.html


Thanks,


Tony

Re: Dynamic images from a URL

Posted: Wed Dec 16, 2015 1:42 pm
by ScottBot
Tony,

Yes it is :!:

It was a feature that was implemented for the Kodi plugin, but can be used anywhere. I don't think HTTPS image requests will work though.

Re: Dynamic images from a URL

Posted: Thu Dec 17, 2015 3:45 am
by TonyG
Thanks Scott,

Got it working last night. It helped when I changed image URL from the example I gave - it has a permission issue.

Another use I can think of is within the RSS script, for news article thumbnails. Will give it a go.

Thanks again,


Tony

Re: Dynamic images from a URL

Posted: Mon Dec 21, 2015 12:41 pm
by Richard Naninck
Lots of rss images are .gif although they are listed as .jpg. If you try to edit an image you can see the real container in the first few lines of code. HouseBot cannot display .gif images so if images don't show, it could be that HB does not support the file format.

Re: Dynamic images from a URL

Posted: Tue Dec 22, 2015 4:06 am
by TonyG
Thanks Richard, very useful!

Haven't cracked it yet, as the image lines are constructed differently to titles and descriptions in RSS. I was hoping to add another entry to the RSS script lines here:
SetPropertyValue sProperty & "Headline", .selectSingleNode("title").Text
SetPropertyValue sProperty & "Date", .selectSingleNode("pubDate").Text
SetPropertyValue sProperty & "Text", .selectSingleNode("description").Text

RSS news feed example:
<title>Boy Scout Leader Fought Off Bear With Hammer</title>
<description>Christopher Petronino is dragged into a cave by the black bear and trapped with the animal for 80 minutes before escaping.</description>

vs RSS image line example:

<media:thumbnail url="http://media.skynews.com/media/images/g ... -70x50.jpg" width="70" height="50"/>