Room Widget Background not loading

Thanks Igor

I still get it not working. Have you checked it with OH2 already?

Yes, it is working for me. I couldn’t find the reason why it wouldn’t yet.
Do you have authentication enabled to access those images in all 3 cases?

Hi I believe I know the problem see below:

grafik

The link looks a bit strange. Is this as it should be? Why it is not starting directly with the http://

The item contains the following value:
http://192.168.0.10/snapshot.cgi

And your OH instance is not on http://192.168.0.10, since you connect through myopenhab, correct?

I am now in local mode. As I thought the myopenhab is the problem.

ok, and what host (exactly) you entered when configuring platform for local access?

http://192.168.0.24:8080 is OH2 Host

I have the same problem where it is putting “api” stuff at the front of my url to the image.

This is fixed for the Preview 23 release

Hi Igor,

the link looks now good, but the background is not loaded over myopenhab connection. Should this work?

myopenhab link: https://home.myopenhab.org/static/rotini/living-room.jpg

@rene54321 I didn’t specially check for myopenhab URLs, but can you access that image normally through browser?
If it does work with browser, I’m thinking maybe auth is a problem then.

Hi,

yes I believe that is the problem. I am only able to load the jpg after authenticating with myopenhab. I use myopenhab connection as Rotini platform to be able to access all items over 4G without VPN to my home, so I thought this is also working as getting the item states.

best regards René

@rene54321 yes, it should’ve worked. Assuming you have https://home.myopenhab.org part included in the item state, can you try without it? E.g. /static/rotini/living-room.jpg

Hi

The item contains this link:

https://home.myopenhab.org/static/rotini/living-room.jpg

If I open this link in the browser I need to authticate. After successful authentication the Screenshot is loaded.

Can you try putting relative link as item value: /static/rotini/living-room.jpg?

Hi,

I have tried this right now. Without the http:// at the beginning I get again this api stuff:

api://platformsdfasfsfasfasdfasdfafs//static/rotini/living-room.jpg

Yes, that’s an app internal URL, so that’s good, but it still didn’t work?

I just tried this feature with widget background together with openhab. At least with the local connection it’s working for me. What I have done:

Item:
String Background_Erdgeschoss “Background Erdgeschoss”

Rule:
// Systemstart
rule “Load Pictures”
when
System started
then
Background_Erdgeschoss.postUpdate ("/static/erdgeschoss.jpg")
end

OK, it’s not working 100% also for me…
@igor maybe it helps: in my case i can see the image after widget configuration. but as soon as I restart rotini the background is not there anymore.