Weather Binding Display Issue Solved

I recently set up the weather binding with Wunderground, but I noticed that some information wasn’t displaying correctly. Here’s what I did to resolve the issue:

Problem Description
I configured the weather binding with Wunderground using the following settings in my openhab.cfg file:
plaintext
weather:apikey.Wunderground=c7e768d82dd166ea
weather:location.Heim.name=Morsbach
weather:location.Heim.latitude=50.864517
weather:location.Heim.longitude=7.737482
weather:location.Heim.provider=Wunderground
weather:location.Heim.language=DE
weather:location.Heim.updateInterval=10

I also defined the items for wind speed and direction:
plaintext
Number Speed {weather=“locationID=Heim, type=wind, property=speed”}
String Direction {weather=“locationID=Heim, type=wind, property=direction”}

And included them in my sitemap:
plaintext
Text item=Speed label=“Windgeschwindigkeit [%.2f km/h]” icon=“wind1”
Text item=Direction label=“Windrichtung [%.1f]” icon=“windrose”

Debugging the Issue
When I checked the debug logs, I saw that the weather data was being received, but it wasn’t showing up on my UI:
plaintext
WUNDERGROUND[Heim]: Weather[Temperature[current=5.8,min=,max=,feel=3.0,dewpoint=-2.0],Atmosphere[humidity=58,visibility=,pressure=1030.0,pressureTrend=equal,ozone=,uvIndex=-1],Clouds[percent=],Condition[text=Clear,lastUpdate=Mon Mar 14 12:45:13 CET 2016,observationTime=Mon Mar 14 12:37:36 CET 2016,id=,icon=clear,commonId=sunny],Precipitation[rain=0.0,snow=0.0,probability=50,total=0.0],Wind[speed=11.3,direction=ESE,degree=112,gust=16.1,chill=3.0],Station[name=Friesenhagen-Muehlenseifen, Friesenhagen, RHEINLAND-PFALZ,id=IRHEINLA127,latitude=50.898106,longitude=7.807782],]

Solution
After some research and trial and error, I realized that the issue was with the item definitions. I changed the item types to match the expected data format and added some metadata for clarity:
plaintext
Number:WindSpeed Speed “Wind Speed” {weather=“locationID=Heim, type=wind, property=speed”}
String:WindDirection Direction “Wind Direction” {weather=“locationID=Heim, type=wind, property=direction”}

I also updated the sitemap to use more descriptive labels:
plaintext
Text item=Speed label=“Wind Speed: [%.2f km/h]” icon=“wind1”
Text item=Direction label=“Wind Direction: [%.1f°]” icon=“windrose”

Outcome
After making these changes, the weather data started displaying correctly on my UI. It was a bit frustrating at first, but troubleshooting the issue helped me understand how the weather binding works in OpenHAB. I’m now able to monitor the wind conditions in my area seamlessly!

If anyone else is having similar issues, I recommend checking your item definitions and ensuring they match the data types expected by your binding. Happy automating! :blush: