Hello,
i make weather in openhab2 in classicui and basicui work well but in iOSapps i see only blank space
/opt/openhab2/userdata/webapps/weather-data/layouts/example.html:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" CONTENT="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="static/weather-data/layouts/example.css" />
<script type="text/javascript" src="static/weather-data/layouts/example.js"></script>
</head>
<body id="weather-body" onload="formatIframe()">
<div id="static/weather-location-name">
Stacja Lublin - Lotnisko
</div>
<table id="weather-table">
<tr>
<td rowspan="2"><img id="weather-icon" src="static/weather-data/images/${param:iconset}/${weather:condition.commonId}.png"/></td>
<td id="weather-temp">${weather:temperature.current(%.1f)}</td>
<td id="weather-temp-sign">°C</td>
</tr>
<tr>
<td colspan="2">
<table id="weather-table-details">
<tr>
<td>Humidity:</td>
<td>${weather:atmosphere.humidity} %</td>
</tr>
</table>
</td>
</tr>
</table>
<table id="weather-forecast-table">
<tr>
<td>dzisiaj</td>
<td>${forecast(1):condition.observationTime(%1$tA)}</td>
<td>${forecast(2):condition.observationTime(%1$tA)}</td>
</tr>
<tr>
<td><img src="static/weather-data/images/${param:iconset}/${forecast(0):condition.commonId}.png"/></td>
<td><img src="static/weather-data/images/${param:iconset}/${forecast(1):condition.commonId}.png"/></td>
<td><img src="static/weather-data/images/${param:iconset}/${forecast(2):condition.commonId}.png"/></td>
</tr>
<tr>
<td class="temp-max">${forecast(0):temperature.Max(%.0f)} °C</td>
<td class="temp-max">${forecast(1):temperature.Max(%.0f)} °C</td>
<td class="temp-max">${forecast(2):temperature.Max(%.0f)} °C</td>
</tr>
<tr>
<td class="temp-min">${forecast(0):temperature.min(%.0f)} °C</td>
<td class="temp-min">${forecast(1):temperature.min(%.0f)} °C</td>
<td class="temp-min">${forecast(2):temperature.min(%.0f)} °C</td>
</tr>
</table>
</body>
</html>
sitemap:
Frame label="Stacja pogodowa" {
Text item= Temp_zew icon="temperature" valuecolor=[<15="blue",>16="black",>26="red"]
Text label="Prognoza pogody" icon="wind" {
Webview url="/weather?locationId=domek&layout=example&iconset=colorful" height=7
}
}