I dont really see the need of autorefresh for webview.
So you are getting wrong impression of what we are discussing.
I’m just pointing out some kind of question how to pass content of the Item (eg. number) to the actual sitemap, so any browser out there will understand that there is different content because of random number/name or whatever.
So ask here is. Is there a way in OH4 how to construct output of the BasicUI from
By item, I was thinking you were talking about openHAB item, I understand now that it is not the case.
So you just want browser to avoid using cache when opening a sitemap page containing a Webview element.
This could be achieved in Basic UI (and in other sitemap UIs) like for Image and Chart elements by adding automatically a timestamp parameter to the user provided URL when building the iframe.
I am just not sure it would not break some Webview URLs that do not expect such a parameter ?
One option would then be to add a new parameter “avoidCache” to the Webview element. If present, the timestamp parameter is added to the URL by the WEB UI.
alright, so maybe better solution will be convert generated svg to png and use image element and refresh, I’ll test that if that will work and we’ll see