HELP - weather Binding not working

Hi all, this is a great thread with lots of info.

I am not getting my temp to change to ferihnieht.

I have tried this:

Number Temperature_F “Temperature [%.0f °F]” (temp,weather) {weather=“locationId=home, type=temperature, property=current, unit=fahrenheit”}

and

Number Temperature_F “Temperature [%.0f °F]” (temp,weather) {weather=“locationId=home, type=temperature, property=current, unit=fahrenheit”}

thoughts?

thanks!

Here is a copy 'n paste of mine, which works:

Number Weather_Temp "Outdoor Temperature [%.0f °F]" <climate> (Weather_Chart_Temp) {weather="locationId=home, type=temperature, property=current, unit=fahrenheit"}

Comparing the two I don’t see anything wrong with your item definition… Are you using the latest version of OpenHAB & Weather binding (v1.8.1)? I believe some of the unit handling with the Weather binding changed in recent versions, IIRC :slight_smile:

Also be sure you are restarting the server after modifications, just to be sure it takes effect!

thanks mike, this was an lol. I had one of those epiphanies in the middle of the night that there had to be an issue with the binding. double checked the lat/long and sure enough missed the (-) in the long. well, come to find out that tibet is on the opposite side of the earth from cumming, ga! who knew!

Hi
I have another strange error.
When I use the openhab app and I’m using WLAN in the same network as openhab I’m getting the iconset etc. fine.
When I use 3G/4G (different network) the iconset etc. doesn’t display.
I’m getting follow error: Cannot GET /weather?locationId=home&layout=weather&iconset=flat_colorful.

Someone that getting the same issue?

default.sitemap file:

Webview url="/weather?locationId=home&layout=weather&iconset=flat_colorful" height=7

Phuong, I’m getting exactly the same issue as you works fine local wifi same error as you mentioned when viewing remotely, did you end up finding a solution?

The “Cannot GET /weather?locationId=home&layout=weather&iconset=flat_colorful” issue appears to be related to the fact that OpenHAB is listening on port 8080. Even though the readme.txt in the layouts folder mentions to call it with /weather?.. if using in a sitemap, it doesn’t work if viewing remotely via my.openhab.org

I guess it must be assuming port 80. If you alter the webview URL to point to http://x.x.x.x:8080/weather?locationid=...etc then it works remotely too. However at the moment it shows just the data remotely ok, it has issues showing the weather image icons - I guess it’s similar issue with the example HTML file, however changing the HTML file to full URL shows large icons on my iPhone rather than small like when viewing locally.

1 Like

Hi

I have successfully set up the weather binding and I can print out items like temperaure etc.

However I’m not sure how to integrate the webview? Where does the html file go?

I’m using openhab 1.8

Help would be appreciated

Ian

\webapps\weather-data\layouts

I had basic weather binding working with wunderground, how I want to use yours. When I change my configs I’m getting unknown weather on the sitemap and when I click on weather I get.

HTTP ERROR 500

Problem accessing /weather. Reason: Weather locationId 'home' does not exist

openhab.cfg

weather:location.home.name=home
weather:location.home.latitude=2x.9xx0
weather:location.home.longitude=-8x.3xx6
weather:location.home.provider=Yahoo
weather:location.home.language=en
weather:location.home.updateInterval=10

Yahoo Weather has been going through a lot of changes as of late. They no longer support lat/long like they use to. You need to use a location ID. Review the Weather Binding’s wiki page and it will tell you how to find your location id (I think you just bring up the page for your area and use the last number that is part of the URL.

Thanks for the reminder… I do remember reading this before, I’ve updated my config and added the woeid and now when I restarted I got the scheduling weatherJob-home in my logs.

thanks again.

Weather binding does not work for me to.

2016-04-14 22:50:42.197 DEBUG o.o.b.w.i.bus.WeatherActivator[:32]- Weather binding has been started.
2016-04-14 22:50:42.920 DEBUG o.o.b.w.i.b.WeatherGenericBindingProvider[:57]- Adding item Weather_Temperature with WeatherBindingConfig[locationId=home,type=temperature,property=current,roundingMode=HALF_UP,scale=2]
2016-04-14 22:50:42.938 DEBUG o.o.b.w.i.b.WeatherGenericBindingProvider[:57]- Adding item Weather_Temp_Max with WeatherBindingConfig[locationId=home,type=temperature,property=max,roundingMode=HALF_UP,scale=2]
2016-04-14 22:50:42.944 DEBUG o.o.b.w.i.b.WeatherGenericBindingProvider[:57]- Adding item Weather_Temp_Min with WeatherBindingConfig[locationId=home,type=temperature,property=min,roundingMode=HALF_UP,scale=2]
2016-04-14 22:50:42.970 DEBUG o.o.b.w.i.b.WeatherGenericBindingProvider[:57]- Adding item Weather_Clouds with WeatherBindingConfig[locationId=home,type=clouds,property=percent,roundingMode=HALF_UP,scale=2]
2016-04-14 22:50:42.983 DEBUG o.o.b.w.i.b.WeatherGenericBindingProvider[:57]- Adding item Weather_Condition with WeatherBindingConfig[locationId=home,type=condition,property=id]
2016-04-14 22:50:42.989 DEBUG o.o.b.w.i.b.WeatherGenericBindingProvider[:57]- Adding item Weather_Condition_Common with WeatherBindingConfig[locationId=home,type=condition,property=commonId]
2016-04-14 22:50:43.000 DEBUG o.o.b.w.i.b.WeatherGenericBindingProvider[:57]- Adding item Weather_Condition_Text with WeatherBindingConfig[locationId=home,type=condition,property=text]
2016-04-14 22:50:43.504 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=humidity,target=atmosphere.humidity,converter=INTEGER]
2016-04-14 22:50:43.514 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=humidity,target=atmosphere.humidity,converter=INTEGER]
2016-04-14 22:50:43.524 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=humidity,target=atmosphere.humidity,converter=INTEGER]
2016-04-14 22:50:43.543 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=visibility,target=atmosphere.visibility,converter=DOUBLE]
2016-04-14 22:50:43.553 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=visibilityKM,target=atmosphere.visibility,converter=DOUBLE]
2016-04-14 22:50:43.572 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=pressure,target=atmosphere.pressure,converter=DOUBLE]
2016-04-14 22:50:43.583 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=pressure,target=atmosphere.pressure,converter=DOUBLE]
2016-04-14 22:50:43.593 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=pressureMB,target=atmosphere.pressure,converter=DOUBLE]
2016-04-14 22:50:43.617 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=uvIndex,target=atmosphere.uvIndex,converter=INTEGER]
2016-04-14 22:50:43.626 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=clouds.all,target=clouds.percent,converter=INTEGER]
2016-04-14 22:50:43.631 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=clouds,target=clouds.percent,converter=INTEGER]
2016-04-14 22:50:43.640 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=cloudcover,target=clouds.percent,converter=INTEGER]
2016-04-14 22:50:43.657 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=sky,target=clouds.percent,converter=INTEGER]
2016-04-14 22:50:43.681 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WUNDERGROUND: ProviderMappingInfo[source=current_observation.weather,target=condition.text,converter=STRING]
2016-04-14 22:50:43.704 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=weather.description,target=condition.text,converter=STRING]
2016-04-14 22:50:43.740 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=weatherDesc.value,target=condition.text,converter=STRING]
2016-04-14 22:50:43.770 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=weather,target=condition.text,converter=STRING]
2016-04-14 22:50:43.804 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=dt,target=condition.observationTime,converter=UNIX_DATE]
2016-04-14 22:50:43.820 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=localObsDateTime,target=condition.observationTime,converter=UTC_DATE]
2016-04-14 22:50:43.824 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=date,target=condition.observationTime,converter=DATE]
2016-04-14 22:50:43.850 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=ob.timestamp,target=condition.observationTime,converter=UNIX_DATE]
2016-04-14 22:50:43.854 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=periods.timestamp,target=condition.observationTime,converter=UNIX_DATE]
2016-04-14 22:50:43.865 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=weather.id,target=condition.id,converter=STRING]
2016-04-14 22:50:43.877 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=weatherCode,target=condition.id,converter=STRING]
2016-04-14 22:50:43.886 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=weatherPrimaryCoded,target=condition.id,converter=MULTI_ID]
2016-04-14 22:50:43.901 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=icon,target=condition.icon,converter=STRING]
2016-04-14 22:50:43.914 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=icon,target=condition.icon,converter=STRING]
2016-04-14 22:50:43.935 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=rain.3h,target=precipitation.rain,converter=DOUBLE_3H]
2016-04-14 22:50:43.939 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=rain,target=precipitation.rain,converter=DOUBLE_3H]
2016-04-14 22:50:43.943 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=rain.1h,target=precipitation.rain,converter=DOUBLE]
2016-04-14 22:50:43.947 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=precipMM,target=precipitation.rain,converter=DOUBLE]
2016-04-14 22:50:43.951 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=precipMM,target=precipitation.rain,converter=DOUBLE]
2016-04-14 22:50:43.961 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=snow.3h,target=precipitation.snow,converter=DOUBLE_3H]
2016-04-14 22:50:43.965 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=snowDepthCM,target=precipitation.snow,converter=DOUBLE]
2016-04-14 22:50:44.030 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=main.temp,target=temperature.current,converter=DOUBLE]
2016-04-14 22:50:44.037 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=temp.day,target=temperature.current,converter=DOUBLE]
2016-04-14 22:50:44.045 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=temp_C,target=temperature.current,converter=DOUBLE]
2016-04-14 22:50:44.057 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=tempC,target=temperature.current,converter=DOUBLE]
2016-04-14 22:50:44.068 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=main.temp_min,target=temperature.min,converter=DOUBLE]
2016-04-14 22:50:44.073 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=temp.min,target=temperature.min,converter=DOUBLE]
2016-04-14 22:50:44.082 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=tempMinC,target=temperature.min,converter=DOUBLE]
2016-04-14 22:50:44.090 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=minTempC,target=temperature.min,converter=DOUBLE]
2016-04-14 22:50:44.101 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=main.temp_max,target=temperature.max,converter=DOUBLE]
2016-04-14 22:50:44.105 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=temp.max,target=temperature.max,converter=DOUBLE]
2016-04-14 22:50:44.128 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=tempMaxC,target=temperature.max,converter=DOUBLE]
2016-04-14 22:50:44.137 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=maxTempC,target=temperature.max,converter=DOUBLE]
2016-04-14 22:50:44.146 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=feelslikeC,target=temperature.feel,converter=DOUBLE]
2016-04-14 22:50:44.164 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=dewpointC,target=temperature.dewpoint,converter=DOUBLE]
2016-04-14 22:50:44.172 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=DewPointC,target=temperature.dewpoint,converter=DOUBLE]
2016-04-14 22:50:44.191 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=speed,target=wind.speed,converter=DOUBLE]
2016-04-14 22:50:44.217 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=windspeedKmph,target=wind.speed,converter=DOUBLE]
2016-04-14 22:50:44.231 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=windSpeedKPH,target=wind.speed,converter=DOUBLE]
2016-04-14 22:50:44.236 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=winddir16Point,target=wind.direction,converter=STRING]
2016-04-14 22:50:44.264 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=deg,target=wind.degree,converter=INTEGER]
2016-04-14 22:50:44.281 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=winddirDegree,target=wind.degree,converter=INTEGER]
2016-04-14 22:50:44.296 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=windDirDEG,target=wind.degree,converter=INTEGER]
2016-04-14 22:50:44.321 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=windGustKPH,target=wind.gust,converter=DOUBLE]
2016-04-14 22:50:44.349 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=windchillC,target=wind.chill,converter=DOUBLE]
2016-04-14 22:50:44.377 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=place.name,target=station.name,converter=STRING]
2016-04-14 22:50:44.393 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=response.id,target=station.id,converter=STRING]
2016-04-14 22:50:44.410 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=loc.lat,target=station.latitude,converter=DOUBLE]
2016-04-14 22:50:44.419 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=loc.long,target=station.longitude,converter=DOUBLE]
2016-04-14 22:50:44.435 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping HAMWEATHER: ProviderMappingInfo[source=error.description,target=weather.error,converter=STRING]
2016-04-14 22:50:44.444 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping FORECASTIO: ProviderMappingInfo[source=error,target=weather.error,converter=STRING]
2016-04-14 22:50:44.451 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=message,target=weather.error,converter=STRING]
2016-04-14 22:50:44.455 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=data.error.msg,target=weather.error,converter=STRING]
2016-04-14 22:50:44.458 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping WUNDERGROUND: ProviderMappingInfo[source=response.error.type,target=weather.error,converter=STRING]
2016-04-14 22:50:44.473 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping YAHOO: ProviderMappingInfo[source=error.description,target=weather.error,converter=STRING]
2016-04-14 22:50:44.478 TRACE o.o.b.w.i.m.MetadataHandler[:87]- Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=cod,target=weather.responseCode,converter=INTEGER]
2016-04-14 22:50:44.568 TRACE o.o.b.w.i.m.MetadataHandler[:98]- Added forecast mapping OPENWEATHERMAP: list
2016-04-14 22:50:44.591 TRACE o.o.b.w.i.m.MetadataHandler[:98]- Added forecast mapping WORLDWEATHERONLINE: data.weather
2016-04-14 22:50:44.616 TRACE o.o.b.w.i.m.MetadataHandler[:98]- Added forecast mapping HAMWEATHER: response.responses.response.periods
2016-04-14 22:50:45.332 DEBUG o.o.b.w.i.gfx.WeatherServlet[:62]- Starting up weather servlet at /weather

############################## Weather Binding ##############################
#
# The apikey for the different weather providers, at least one must be specified
# Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2
#weather:apikey.ForecastIo=
#weather:apikey.OpenWeatherMap=
#weather:apikey.WorldWeatherOnline=
weather:apikey.Wunderground=xxxxxx
#weather:apikey.Hamweather=
#weather:apikey2.Hamweather=

# location configuration, you can specify multiple locations
weather:location.home.name=xxx
weather:location.home.latitude=xx.1586
weather:location.home.longitude=xx.3105
weather:location.home.woeid=xxxx52
weather:location.home.provider=Wunderground
weather:location.home.language=de
weather:location.home.updateInterval=10

/* Wetter */
Group Weather_Chart		<temperature>											(Weather)
Number Weather_Temperature 		"Außentemperatur [%.1f °C]"	<temperature> (Weather_Chart)	{weather="locationId=home, type=temperature, property=current"}
Number Weather_Temp_Max 	  	"Maximum [%.1f °C]"		    	<temperature> (Weather_Chart) {weather="locationId=home, type=temperature, property=max"}
Number Weather_Temp_Min 	  	"Minimum [%.1f °C]"		    	<temperature> (Weather_Chart)	{weather="locationId=home, type=temperature, property=min"}
Number Weather_Clouds 		  	"Wolken [%.0f %%]"					<sun_clouds> (Weather) 	 	  {weather="locationId=home, type=clouds, property=percent"}

String Weather_Condition 		  "Condition [%s]"					<sun_clouds> (Weather) 	 	  {weather="locationId=home, type=condition, property=id"}
String Weather_Condition_Common 		  "Condition Common [%s]"					<sun_clouds> (Weather) 	 	  {weather="locationId=home, type=condition, property=commonId"}
String Weather_Condition_Text	  "Condition Common [%s]"					<sun_clouds> (Weather) 	 	  {weather="locationId=home, type=condition, property=text"}

Obivously the log line for successful scheduler start is missing.
I think the config is never parsed by the binding. I tried to add some errors to the config to tests that and even then the binding does not log an error…

Verify you actually installed the weather binding jar file in the addons folder. Try replacing that file with a newly downloaded version if it is there. It might be corrupted somehow.

You were right, I downloaded a fresh addon.zip for version 1.8.2 and now it is working.

Running into this. weather works and gets data. the HTML does not… its not replacing the %vars with data? thoughts?

Please post your actual code, not screenshots. It is impossible for others to search to find a solution to their similar problem. It is impossible for those of us who might be able to help to copy and paste the code into tools we might be able to use to help diagnose the problem.

Wrap your code in backticks and it will be properly formatted. You can even use the name of the language and it will add syntax highlighting. In this case:

```html
Your html code here
```

Will do :slight_smile: Here is the INDEX.HTML i am trying to render and the “view source” output

and the items from the file i am referring to (copied from later posts above )


INDEX.HTML

 <!DOCTYPE html>
<html>
<head>
        <meta http-equiv="Content-type" CONTENT="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="weather-data/layouts/example.css" />
        <script type="text/javascript" src="weather-data/layouts/example.js"></script>
</head>

<body id="weather-body" onload="formatIframe()">
        <div id="weather-location-name">${config:name}, ${weather:condition.observationTime(%1$td/%1$tm/%1$tY %1$tH:%1$tM)}

        <table id="weather-table">
                <tr>
                        <td rowspan="2"><img id="weather-icon" src="weather-data/images/${param:iconset}/${weather:condition.commonId}.png"/></td>
                        <td id="weather-temp">${weather:temperature.current(%.1f)[fahrenheit]}</td>
                        <td id="weather-temp-sign">°F</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>${weather:atmosphere.pressure(%.2f)[inches]} in</td>
                                        </tr>
                                </table>
                        </td>
                </tr>
        </table>

        <table id="weather-forecast-table">
                <tr>
                        <td>Today</td>
                        <td>${forecast(1):condition.observationTime(%1$tA)}</td>
                        <td>${forecast(2):condition.observationTime(%1$tA)}</td>
                </tr>
                <tr>
                        <td><img src="weather-data/images/${param:iconset}/${forecast(0):condition.commonId}.png"/></td>
                        <td><img src="weather-data/images/${param:iconset}/${forecast(1):condition.commonId}.png"/></td>
                        <td><img src="weather-data/images/${param:iconset}/${forecast(2):condition.commonId}.png"/></td>
                </tr>
                <tr>
                        <td class="temp-max">${forecast(0):temperature.max(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-max">${forecast(1):temperature.max(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-max">${forecast(2):temperature.max(%.2f)[fahrenheit]} °F</td>
                </tr>
                <tr>
                        <td class="temp-min">${forecast(0):temperature.min(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-min">${forecast(1):temperature.min(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-min">${forecast(2):temperature.min(%.2f)[fahrenheit]} °F</td>
                </tr>
        </table>

</body>

</html>

VIEW SOURCE BELOW

<html>
<head>
        <meta http-equiv="Content-type" CONTENT="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="weather-data/layouts/example.css" />
        <script type="text/javascript" src="weather-data/layouts/example.js"></script>
</head>

<body id="weather-body" onload="formatIframe()">
        <div id="weather-location-name">${config:name}, ${weather:condition.observationTime(%1$td/%1$tm/%1$tY %1$tH:%1$tM)}

        <table id="weather-table">
                <tr>
                        <td rowspan="2"><img id="weather-icon" src="weather-data/images/${param:iconset}/${weather:condition.commonId}.png"/></td>
                        <td id="weather-temp">${weather:temperature.current(%.1f)[fahrenheit]}</td>
                        <td id="weather-temp-sign">°F</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>${weather:atmosphere.pressure(%.2f)[inches]} in</td>
                                        </tr>
                                </table>
                        </td>
                </tr>
        </table>

        <table id="weather-forecast-table">
                <tr>
                        <td>Today</td>
                        <td>${forecast(1):condition.observationTime(%1$tA)}</td>
                        <td>${forecast(2):condition.observationTime(%1$tA)}</td>
                </tr>
                <tr>
                        <td><img src="weather-data/images/${param:iconset}/${forecast(0):condition.commonId}.png"/></td>
                        <td><img src="weather-data/images/${param:iconset}/${forecast(1):condition.commonId}.png"/></td>
                        <td><img src="weather-data/images/${param:iconset}/${forecast(2):condition.commonId}.png"/></td>
                </tr>
                <tr>
                        <td class="temp-max">${forecast(0):temperature.max(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-max">${forecast(1):temperature.max(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-max">${forecast(2):temperature.max(%.2f)[fahrenheit]} °F</td>
                </tr>
                <tr>
                        <td class="temp-min">${forecast(0):temperature.min(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-min">${forecast(1):temperature.min(%.2f)[fahrenheit]} °F</td>
                        <td class="temp-min">${forecast(2):temperature.min(%.2f)[fahrenheit]} °F</td>
                </tr>
        </table>

</body>

</html>

/* Weather Start */

String Condition_Id “Weather is [MAP(yahoo_weather_code.map):%s]” (Weather) { weather=“locationId=home, type=condition, property=id” }

// Weather panel
Group gWeather_Chart (gWeather)
Number Weather_Temperature “Outside Temperature [%.2f °F]” (gWeather_Chart) { weather=“locationId=home, type=temperature, property=current, unit=fahrenheit” }
Number Weather_Humidity “Outside Humidity [%d%%]” (gWeather) { weather=“locationId=home, type=athmosphere, property=humidity” }
Number Weather_Pressure “Barometric Pressure [%.2f in]” (gWeather) { weather=“locationId=home, type=athmosphere, property=pressure, unit=inches” }
Number Weather_Pressure_Chart_Period "Chart Period"
Number Weather_Temp_Min “Today’s Minimum [%.0f °F]” (gWeather_Chart)
Number Weather_Temp_Max “Today’s Maximum [%.0f °F]” (gWeather_Chart)
Number Weather_Chart_Period "Chart Period"
DateTime Weather_LastUpdate “Last Update [%1$ta %1$tr]”
Number Weather_Humidity_Chart_Period “Chart Period”

Note: as of OH 1.7 you can no longer refer to Items from within the webview. You can only access data from the weather binding itself. Therefore your Items are irrelevant to the webview.

With the exception that my file is named example.html instead of index.html I see no significant difference between your and my webview. Is your index.html in <openHAB Home>/webapps/weather-data/layouts?

im running 1.8.2 and my index.html is in the webapps dir… pretty much a copy of the examples.html one… where do I need to run it to get the data accessed?

I have mine in <openhab Home>/webapps/weather-data/layouts as the example on the wiki describes.