[SOLVED] Weather1 binding on openhab 2.4.0 and webview

Hello,
I have a problem with weather1 binding on openhab 2.4.0, I see icons on UI:

but i can see value and i do not know why, any sugestion?

I would assume your items and or sitemap definition is wrong somewhere.
Why don’t you post the related code from your .tems and .sitemap files? The contents of the config file might also give hints.
Additionally, what does your log say?

.sitemap

Webview url="http://192.168.1.10:8080/weather?locationId=domek&layout=example&iconset=colorful" height=10

.item

Number   Temp_zew      "Temperatura zewnętrzna [%.1f °C]"       {weather="locationId=domek, type=temperature, property=current"}
Number   Rain          "Opady deszczu [%.2f mm/h]"   {weather="locationId=domek, forecast=0, type=precipitation, property=rain"}
Number   Snow          "Opady śniegu [%.2f mm/h]"   {weather="locationId=domek, forecast=0, type=precipitation, property=snow"}
Number   Wind_Speed           "Prędkość wiatru [%.1f km/h]"    {weather="locationId=domek, type=wind, property=speed"}
Number   Temp_MinD         "Temperature min [%.2f °C]"   {weather="locationId=domek, forecast=0, type=temperature, property=min"}
Number   Temp_MaxD         "Temperature max [%.2f °C]"   {weather="locationId=domek, forecast=0, type=temperature, property=max"}

Number   RainTuday   "Opady deszczu dzisiaj [%d]"   {weather="locationId=domek, forecast=0, type=precipitation, property=rain"}
Number   RainTomorrow   "Opady deszczu jutro [%d]"   {weather="locationId=domek, forecast=1, type=precipitation, property=rain"}
Number   RainDayAfterTomorrow   "Opady deszczu pojutrze [%d]"   {weather="locationId=domek, forecast=2, type=precipitation, property=rain"}
Number   Temp_MinT         "Temperature minT [%.2f °C]"   {weather="locationId=domek, forecast=1, type=temperature, property=min"}
Number   Temp_MaxT         "Temperature maxT [%.2f °C]"   {weather="locationId=domek, forecast=1, type=temperature, property=max"}

weather.cfg

weather:apikey.Wunderground=
weather:location.domek.name=domek
weather:location.domek.latitude=51.24028
weather:location.domek.longitude=22.71361
weather:location.domek.woeid=EPLB
weather:location.domek.provider=Wunderground
weather:location.domek.language=pl
weather:location.domek.updateInterval=20

openhab.log is clear, anything about weather1.
Problem is only with value on webview, example.html is orginal:

<!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="weather-location-name">${config:name}, ${item:ObservationTime}</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">${item:Current_Temp.value}</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>
                                        <tr>
                                                <td>Pressure:</td>
<td>${item:Pressure.value} mb</td>
                                        </tr>
                                </table>
                        </td>
                </tr>
        </table>

        <table id="weather-forecast-table">
                <tr>
                        <td>Today</td>
                        <td>${item:Forecast_Day_1}</td>
                        <td>${item:Forecast_Day_2}</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">${item:Temp_Max_0.value}</td>
                        <td class="temp-max">${item:Temp_Max_1.value}</td>
                        <td class="temp-max">${item:Temp_Max_2.value}</td>
                </tr>
                <tr>
                        <td class="temp-min">${item:Temp_Min_0.value}</td>
                        <td class="temp-min">${item:Temp_Min_1.value}</td>
                        <td class="temp-min">${item:Temp_Min_2.value}</td>
                </tr>
        </table>

</body>

</html>

You did not show all item definitions, additionally the items used in the .html file are the same as in the items file ( for example Temp_MinD versus Temp_Min_0)

I show all weather items whitch i have in home.items file.

additionally the items used in the .html file are the same as in the items file

not ecsacly, because this configuration worked under openhab2.0.0
$ {config: name} - interprets correctly and on the web is “domek” but
$ {item: ObservationTime} or $ {item: Snow} (Snow its item from .items) - not want to show a parameter

@swiety

See this topic!

I have in /etc/openhab2/html/weather-data and /var/lib/openhab2/webapps/weather-data/

I think weather underground discontinued their API this year, so part of the problem may also be that.

OK, its working
In example.html are different tokens:

${config:name}, ${weather:condition.observationTime(%1$td.%1$tm.%1$tY %1$tH:%1$tM)}
  ${weather:temperature.current(%.1f)}   °C  
Humidity:   ${weather:atmosphere.humidity} %  
Pressure:   ${weather:atmosphere.pressure(%.1f)} mb  
Today   ${forecast(1):condition.observationTime(%1$tA)}   ${forecast(2):condition.observationTime(%1$tA)}  
       
${forecast(0):temperature.max(%.0f)}   ${forecast(1):temperature.max(%.0f)}   ${forecast(2):temperature.max(%.0f)}  
${forecast(0):temperature.min(%.0f)}   ${forecast(1):temperature.min(%.0f)}   ${forecast(2):temperature.min(%.0f)}