Image from Item state (rather from URL) [message #1743011] |
Fri, 09 September 2016 09:02  |
Eclipse User |
|
|
|
I posted this over in openhab but realized it's probably better for this forum since it's a smarthome api (see my post in openhab's community - "items and sitemaps" forum)
Basically - I needed an image that would get it's url from the item state and the ProxyServlet didn't support that (only supported URLs from the url attribute). I've made the change locally and was wondering if I should create a pull request for it?
Use case: I have a music streamer binding (Russound) that I'm about to create a pull request (over on openhab). The Russound binding will provide a item whose state is the cover art url for the currently streamed song and I wanted to display that via the image tag.
|
|
|
|
|
Re: Image from Item state (rather from URL) [message #1743199 is a reply to message #1743034] |
Tue, 13 September 2016 05:30   |
Eclipse User |
|
|
|
Tim,
you might be interested in https://github.com/eclipse/smarthome/issues/1800, I think this is the best way to move forward. Using string items with urls is imho only a workaround, with the new Image item type, we can natively support this use case and do not have to use any additional proxy servlets, etc. Unfortunately, the Paper UI is currently the only UI supporting this new item type, but if there are more bindings using it, the pressure will rise to enhance the UIs 
Regards,
Kai
[Updated on: Tue, 13 September 2016 05:31] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 1.04842 seconds