Show a text-block in BasicUI

I am searching for a way to show some lines of text over a sitemap.

Webview url="/static/test.html?aaa&bbb&ccc" height=5

and the conform html-file works on the whole.
But how can I call with variable values (I have in openHAB) in the sitemap (or item, or rule)?
Or is it possible to use the variable direct in the html-definition?

Is there a other easy solution?

1 Like

I think if you have a String Item that contains the url you can

Webview item=WebviewURL height=5

Then in your Rules or however else you would

WebviewURL.postUpdate("/static/test.html?aaa&bbb&ccc")

If that doesn’t work it can’t be done and you might want to look at HABpanel.

Thanks, but it does’t work unfortunately.
WebView needs a url-definition

2017-12-19 09:09:51.803 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'html.sitemap' has errors, therefore ignoring it: [9,2]: rule ruleWebview failed predicate: {getUnorderedGroupHelper().canLeave(grammarAccess.getWebviewAccess().getUnorderedGroup_1())}?

and postUpdate doesn’t change the url.

1 Like

Facing the same problem…
Indeed, the Webview element needs a url definition… Linking the Webview to a String containing the URL does not work…

I do feel that this should be changed …
For example, the Image element accepts a String item - Element Type ‘Image’:

item can refer to either an Image Item whose state is the raw data of the image, or a String Item whose state is an URL that points to an image. Some clients may not (yet) consider item.

Is there some where we we can request this?
On github maybe?

No comments from more advanced users?