I am adding an image from my mobotix camera and it used to scale just fine in the ClassicUI on OH1 and also in OH2.
But on OH2s basicUI the image is blown to the full image size instead of being scaled to the boundaries.
All works fine if the browser window is not so wide that items are displayed side by side but only row by row. When i increase the width just after the point where they switch to side by side mode - the image is scaled to 100% (which is obviously too big)
Did you find a solution to this?
I use âBlueIrisâ to manage my security cameras and thankfully it lets me set the size of the images that it webcasts that I then pick up and show in OpenHAB.
put the images in a .html file - adjust the size there - and show it in sitemap with webview-item - thats what i do - so you are free to play with image sizes
I could see how you can do it with an image that has a url but how would you do it with an item image? For instance I am using the Alexa binding and it shows the image of the album that is an image type item. Any thoughts on that?
I use javascript & jquery in my web page which is out of the scope of this forum. google
as far as getting the value from OpenHAB you have two choices, write a little script to get it from the REST api or the REST api is also capable of sending server side events