[Solved] Webview, no refresh/update

  • Platform information:
    • Hardware: Synology DS214+
    • OS: DSM 6.2.1-23824 Update 1
    • Java Runtime Environment: 8.0.161-0015
    • openHAB version: 2.3.0.005

I used the weather binding and display the actual weather-information in the Android OpenHab App (v 2.5.0) in a webview.

If i start des App i see the last updated weather information. That works fine.
But it looks like there is no update / refresh of the information. There is only an update if i switch bewteen other sitemaps manually. The weather provider is configured in the weather.cfg to update all 10 minutes.

my configuration of the sitemap for the webview…

	Frame
	{
		Webview url="http://192.168.178.3:8080/weather?locationId=fiohi&layout=example&iconset=colorful" height=8

	}  

and the weather.cfg

apikey.ForecastIo=*********
location.fiohi.name=Hildesheim
location.fiohi.latitude=52.123583
location.fiohi.longitude=9.986216
location.fiohi.provider=ForecastIo
location.fiohi.language=de
location.fiohi.updateInterval=10

I have no idea why the webview will not get an update.

Does it refresh the info within the webview when using BasicUI?

Can you run curl http://192.168.178.3:8080/weather?locationId=fiohi&layout=example&iconset=colorful and post the output here (remove api keys and exact location before) to see if there are any no-cache flags set?

there is also no refresh of the webview when i using the BasiUI

i have checked the file example.html again wich is used. I changed the meta information

This is from the example layout file

<head>
	<meta http-equiv="Content-type" CONTENT="text/html; charset=utf-8">
	


to

<meta http-equiv="refresh" CONTENT="60"">

With this changing the refresh works now.
Thanks for you help.

1 Like