Announcing OpenWeatherMap binding for Eclipse SmartHome / openHAB

Hi, this is what i use in my items file…

// Forecast Hour48
Image					owmForecastHour48Icon			"2 Tage Vorhersage Wetterlage Icon"					    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#icon"}
String					owmForecastHour48Condition		"2 Tage Vorhersage Wetterlage [%s]"					    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#condition"}
String				    owmForecastHour48ConditionId	"2 Tage Vorhersage Wetterlage ID [%s]"				    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#condition-id"}
String				    owmForecastHour48IconId			"2 Tage Vorhersage Wetterlage Icon ID"				    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#icon-id"}
Number:Temperature		owmForecastHour48Temperature	"2 Tage Vorhersage Temperatur [%.1f %unit%]"		    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#temperature"}
Number:Pressure			owmForecastHour48Pressure		"2 Tage Vorhersage Luftdruck [%.1f %unit%]"			    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#pressure"}
Number:Dimensionless	owmForecastHour48Humidity		"2 Tage Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#humidity"}
Number:Speed			owmForecastHour48WindSpeed		"2 Tage Vorhersage Windgeschwindigkeit [%.1f km/h]"	    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#wind-speed"}
//Number:Dimensionless	owmForecastHour48WindDirection	"2 Tage Vorhersage Windrichtung [SCALE(wind.scale):%s]" {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#wind-direction"}
Number:Angle			owmForecastHour48WindDirection2	"2 Tage Vorhersage Windrichtung [%d %unit%]" {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#wind-direction"}
Number:Dimensionless	owmForecastHour48Cloudiness		"2 Tage Vorhersage Bewölkung [%.1f %unit%]"			    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#cloudiness"}
Number:Length			owmForecastHour48Rain			"2 Tage Vorhersage Regen [%.1f %unit%]"				    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#rain"}
Number:Length			owmForecastHour48Snow			"2 Tage Vorhersage Schneefall [%.1f %unit%]"		    {channel="openweathermap:weather-and-forecast:api:local:forecastHours48#snow"}
DateTime    owmForecastHour48Timestamp	"2 Tage Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"			{channel="openweathermap:weather-and-forecast:api:local:forecastHours48#time-stamp"}

sometimes you have to wait a couple of minutes to get the first data… but works perfectly here…

hope this helps

1 Like