Announcing OpenWeatherMap binding for Eclipse SmartHome / openHAB

weather
openweathermap
Tags: #<Tag:0x00007f51e477d4d0> #<Tag:0x00007f51e477d2f0>

(Christoph Weitkamp) #62

Yes, no problem. I am interested in the gust channel too.


(Holger Eisold) #63

Since i’m playing with that binding a bit, I have some other questions :slight_smile:

2018-08-24%2010_36_21-Members

If i understood this right, these are the calls per minute… right? If so… we are limited for the hourly forecast to 5 calls… isn’t it? so we can only choose five of the 3,6,9,12,15,18,21,24h things…
I’m not sure about this… so i’d better ask here

and another thing… regarding weather station location, my item:

Location	owmCurrentStationLocation	"Wetterstation Geokoordinaten [%s]"	<text>	(gOwmCurrent, gOwmCurrentStation) {channel="openweathermap:weather:api:local:station#location"}

My sitemap:

Text item=owmCurrentStationLocation

but in the BasicUI i dont see any entry… I also tried to use “String” instead of “Location” in the items file…
The value is set from the API… i’ve seen it in the log… any hint to display the geocords (text is just fine)?

Thanks, cheers


(Nigel Evans) #64

This is my defenition:

Location               LocalWeather_StationLocation        "Location"               {channel="openweathermap:weather:api:local:station#location"}

And the returned value is: LocalWeather_StationLocation(52.53,-x.xx) redacted for privacy!


(Christoph Weitkamp) #65

I am not sure. But it sounds correct. The binding requests the OWM API for each hourly forecast location once which will sum up to five calls for five different things / locations. But the minimum polling interval you are allowed to use with the binding is 10min. I assume we are on a save track.

Hm …, good question. The only way I can think of is using a Mapview element in the sitemap. Nothing else seem to work.

Mapview item=owmCurrentStationLocation height=5

I created an issue to clarify or introduce a solution:


(Holger Eisold) #66

I did a API call in the browser… and now i got it :slight_smile:the one API call “forecast” contains data for 5 days in steps of 3 hours…
Okay so yes we should be safe…

Okay i will give it a try… thanks


(Holger Eisold) #67

Open Weather Map - Examples
this is how i set up my openweather map items and sitemap… (since the readme only contains a few entries) I want to share this for user to simple can copy and paste… (sorry only in german right now…)

To save a lot of editing and writing… i used groups for the hourly forecast…

How it looks:

openweathermap.items

Group gOwmCurrent
Group gOwmCurrentStation (gOwmCurrent)
Group gOwmForecastHour <chart>
Group gOwmForecastHour03 (gOwmForecastHour)
Group gOwmForecastHour06 (gOwmForecastHour)
Group gOwmForecastHour09 (gOwmForecastHour)
Group gOwmForecastHour12 (gOwmForecastHour)
Group gOwmForecastHour15 (gOwmForecastHour)
Group gOwmForecastHour18 (gOwmForecastHour)
Group gOwmForecastHour21 (gOwmForecastHour)
Group gOwmForecastHour24 (gOwmForecastHour)
Group gOwmForecastHourStation (gOwmForecastHour)
String					owmCurrentStationId			"Wetterstation ID"							    <house>			(gOwmCurrent, gOwmCurrentStation) {channel="openweathermap:weather:api:local:station#id"}
String					owmCurrentStationName		"Wetterstation Name"						    <house>			(gOwmCurrent, gOwmCurrentStation) {channel="openweathermap:weather:api:local:station#name"}
Location				owmCurrentStationLocation   "Wetterstation Geokoordinaten [%2$s,%3$s]"				    <house>			(gOwmCurrent, gOwmCurrentStation) {channel="openweathermap:weather:api:local:station#location"}
DateTime	owmCurrentStationTimestamp  "Letzte Messung [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"		<time>			(gOwmCurrent, gOwmCurrentStation) {channel="openweathermap:weather:api:local:current#time-stamp"}
String					owmCurrentCondition			"Aktuelle Wetterlage [%s]"					    <sun_clouds>	(gOwmCurrent) {channel="openweathermap:weather:api:local:current#condition"}
String				    owmCurrentConditionId		"Aktuelle Wetterlage ID [%s]"				    <sun_clouds>	(gOwmCurrent) {channel="openweathermap:weather:api:local:current#condition-id"}
Image					owmCurrentIcon				"Aktuelle Wetterlage Icon"					    <sun_clouds>	(gOwmCurrent) {channel="openweathermap:weather:api:local:current#icon"}
String				    owmCurrentIconId			"Aktuelle Wetterlage Icon ID"				    <sun_clouds>	(gOwmCurrent) {channel="openweathermap:weather:api:local:current#icon-id"}
Number:Temperature		owmCurrentTemperature		"Aktuelle Temperatur [%.1f %unit%]"			    <temperature>	(gOwmCurrent) {channel="openweathermap:weather:api:local:current#temperature"}
Number:Pressure			owmCurrentPressure			"Aktueller Luftdruck [%.1f %unit%]"			    <pressure>      (gOwmCurrent) {channel="openweathermap:weather:api:local:current#pressure"}
Number:Dimensionless    owmCurrentHumidity			"Aktuelle Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>      (gOwmCurrent) {channel="openweathermap:weather:api:local:current#humidity"}
Number:Speed			owmCurrentWindSpeed			"Aktuelle Windgeschwindigkeit [%.1f km/h]"	    <wind>          (gOwmCurrent) {channel="openweathermap:weather:api:local:current#wind-speed"}
Number:Dimensionless	owmCurrentWindDirection     "Aktuelle Windrichtung [SCALE(wind.scale):%s]"	<wind>          (gOwmCurrent) {channel="openweathermap:weather:api:local:current#wind-direction"}
Number:Dimensionless	owmCurrentCloudiness		"Aktuelle Bewölkung [%.1f %unit%]"			    <sun_clouds>	(gOwmCurrent) {channel="openweathermap:weather:api:local:current#cloudiness"}
Number:Length			owmCurrentRain				"Aktueller Regen [%.1f %unit%]"				    <rain>          (gOwmCurrent) {channel="openweathermap:weather:api:local:current#rain"}
Number:Length			owmCurrentSnow				"Aktueller Schneefall [%.1f %unit%]"		    <snow>          (gOwmCurrent) {channel="openweathermap:weather:api:local:current#snow"}

// Forecast Hour03
Image					owmForecastHour03Icon			"3h Vorhersage Wetterlage Icon"					    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#icon"}
String					owmForecastHour03Condition		"3h Vorhersage Wetterlage [%s]"					    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#condition"}
String				    owmForecastHour03ConditionId	"3h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour03)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours03#condition-id"}
String				    owmForecastHour03IconId			"3h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour03)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours03#icon-id"}
Number:Temperature		owmForecastHour03Temperature	"3h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#temperature"}
Number:Pressure			owmForecastHour03Pressure		"3h Vorhersage Luftdruck [%.1f %unit%]"			    <pressure>		(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#pressure"}
Number:Dimensionless	owmForecastHour03Humidity		"3h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#humidity"}
Number:Speed			owmForecastHour03WindSpeed		"3h Vorhersage Windgeschwindigkeit [%.1f km/h]"	    <wind>			(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#wind-speed"}
Number:Dimensionless	owmForecastHour03WindDirection	"3h Vorhersage Windrichtung [SCALE(wind.scale):%s]"	<wind>          (gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#wind-direction"}
Number:Dimensionless	owmForecastHour03Cloudiness		"3h Vorhersage Bewölkung [%.1f %unit%]"			    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#cloudiness"}
Number:Length			owmForecastHour03Rain			"3h Vorhersage Regen [%.1f %unit%]"				    <rain>			(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#rain"}
Number:Length			owmForecastHour03Snow			"3h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#snow"}
DateTime	owmForecastHour03Timestamp	"3h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"		    <time>			(gOwmForecastHour,gOwmForecastHour03) {channel="openweathermap:hourly-forecast:api:local:forecastHours03#time-stamp"}

// Forecast Hour06
Image					owmForecastHour06Icon			"6h Vorhersage Wetterlage Icon"					    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#icon"}
String					owmForecastHour06Condition		"6h Vorhersage Wetterlage [%s]"					    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#condition"}
String				    owmForecastHour06ConditionId	"6h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour06)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours06#condition-id"}
String				    owmForecastHour06IconId			"6h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour06)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours06#icon-id"}
Number:Temperature		owmForecastHour06Temperature	"6h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#temperature"}
Number:Pressure			owmForecastHour06Pressure		"6h Vorhersage Luftdruck [%.1f %unit%]"			    <pressure>		(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#pressure"}
Number:Dimensionless	owmForecastHour06Humidity		"6h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#humidity"}
Number:Speed			owmForecastHour06WindSpeed		"6h Vorhersage Windgeschwindigkeit [%.1f km/h]"	    <wind>			(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#wind-speed"}
Number:Dimensionless	owmForecastHour06WindDirection	"6h Vorhersage Windrichtung [SCALE(wind.scale):%s]" <wind>          (gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#wind-direction"}
Number:Dimensionless	owmForecastHour06Cloudiness		"6h Vorhersage Bewölkung [%.1f %unit%]"			    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#cloudiness"}
Number:Length			owmForecastHour06Rain			"6h Vorhersage Regen [%.1f %unit%]"				    <rain>			(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#rain"}
Number:Length			owmForecastHour06Snow			"6h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#snow"}
DateTime    owmForecastHour06Timestamp	"6h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"			<time>			(gOwmForecastHour,gOwmForecastHour06) {channel="openweathermap:hourly-forecast:api:local:forecastHours06#time-stamp"}

// Forecast Hour09
Image					owmForecastHour09Icon			"9h Vorhersage Wetterlage Icon"					    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#icon"}
String					owmForecastHour09Condition		"9h Vorhersage Wetterlage [%s]"					    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#condition"}
String				    owmForecastHour09ConditionId	"9h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour09)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours09#condition-id"}
String				    owmForecastHour09IconId			"9h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour09)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours09#icon-id"}
Number:Temperature		owmForecastHour09Temperature	"9h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#temperature"}
Number:Pressure			owmForecastHour09Pressure		"9h Vorhersage Luftdruck [%.1f %unit%]"			    <pressure>		(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#pressure"}
Number:Dimensionless	owmForecastHour09Humidity		"9h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#humidity"}
Number:Speed			owmForecastHour09WindSpeed		"9h Vorhersage Windgeschwindigkeit [%.1f km/h]"	    <wind>			(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#wind-speed"}
Number:Dimensionless	owmForecastHour09WindDirection	"9h Vorhersage Windrichtung [SCALE(wind.scale):%s]" <wind>	        (gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#wind-direction"}
Number:Dimensionless	owmForecastHour09Cloudiness		"9h Vorhersage Bewölkung [%.1f %unit%]"			    <sun_clouds>	(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#cloudiness"}
Number:Length			owmForecastHour09Rain			"9h Vorhersage Regen [%.1f %unit%]"				    <rain>			(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#rain"}
Number:Length			owmForecastHour09Snow			"9h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#snow"}
DateTime	owmForecastHour09Timestamp	"9h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"			<time>			(gOwmForecastHour,gOwmForecastHour09) {channel="openweathermap:hourly-forecast:api:local:forecastHours09#time-stamp"}

// Forecast Hour12
Image					owmForecastHour12Icon			"12h Vorhersage Wetterlage Icon"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#icon"}
String					owmForecastHour12Condition		"12h Vorhersage Wetterlage [%s]"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#condition"}
String				    owmForecastHour12ConditionId	"12h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour12)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours12#condition-id"}
String				    owmForecastHour12IconId			"12h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour12)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours12#icon-id"}
Number:Temperature		owmForecastHour12Temperature	"12h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#temperature"}
Number:Pressure			owmForecastHour12Pressure		"12h Vorhersage Luftdruck [%.1f %unit%]"			<pressure>		(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#pressure"}
Number:Dimensionless	owmForecastHour12Humidity		"12h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#humidity"}
Number:Speed			owmForecastHour12WindSpeed		"12h Vorhersage Windgeschwindigkeit [%.1f km/h]"	<wind>			(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#wind-speed"}
Number:Dimensionless	owmForecastHour12WindDirection	"12h Vorhersage Windrichtung [SCALE(wind.scale):%s]"    <wind>      (gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#wind-direction"}
Number:Dimensionless	owmForecastHour12Cloudiness		"12h Vorhersage Bewölkung [%.1f %unit%]"			<sun_clouds>	(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#cloudiness"}
Number:Length			owmForecastHour12Rain			"12h Vorhersage Regen [%.1f %unit%]"				<rain>			(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#rain"}
Number:Length			owmForecastHour12Snow			"12h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#snow"}
DateTime	owmForecastHour12Timestamp	"12h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"		<time>			(gOwmForecastHour,gOwmForecastHour12) {channel="openweathermap:hourly-forecast:api:local:forecastHours12#time-stamp"}

// Forecast Hour15
Image					owmForecastHour15Icon			"15h Vorhersage Wetterlage Icon"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#icon"}
String					owmForecastHour15Condition		"15h Vorhersage Wetterlage [%s]"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#condition"}
String				    owmForecastHour15ConditionId	"15h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour15)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours15#condition-id"}
String				    owmForecastHour15IconId			"15h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour15)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours15#icon-id"}
Number:Temperature		owmForecastHour15Temperature	"15h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#temperature"}
Number:Pressure			owmForecastHour15Pressure		"15h Vorhersage Luftdruck [%.1f %unit%]"			<pressure>		(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#pressure"}
Number:Dimensionless	owmForecastHour15Humidity		"15h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#humidity"}
Number:Speed			owmForecastHour15WindSpeed		"15h Vorhersage Windgeschwindigkeit [%.1f km/h]"	<wind>			(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#wind-speed"}
Number:Dimensionless	owmForecastHour15WindDirection	"15h Vorhersage Windrichtung [SCALE(wind.scale):%s]"    <wind>      (gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#wind-direction"}
Number:Dimensionless	owmForecastHour15Cloudiness		"15h Vorhersage Bewölkung [%.1f %unit%]"			<sun_clouds>	(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#cloudiness"}
Number:Length			owmForecastHour15Rain			"15h Vorhersage Regen [%.1f %unit%]"				<rain>			(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#rain"}
Number:Length			owmForecastHour15Snow			"15h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#snow"}
DateTime	owmForecastHour15Timestamp	"15h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"		<time>			(gOwmForecastHour,gOwmForecastHour15) {channel="openweathermap:hourly-forecast:api:local:forecastHours15#time-stamp"}

// Forecast Hour18
Image					owmForecastHour18Icon			"18h Vorhersage Wetterlage Icon"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#icon"}
String					owmForecastHour18Condition		"18h Vorhersage Wetterlage [%s]"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#condition"}
String				    owmForecastHour18ConditionId	"18h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour18)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours18#condition-id"}
String				    owmForecastHour18IconId			"18h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour18)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours18#icon-id"}
Number:Temperature		owmForecastHour18Temperature	"18h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#temperature"}
Number:Pressure			owmForecastHour18Pressure		"18h Vorhersage Luftdruck [%.1f %unit%]"			<pressure>		(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#pressure"}
Number:Dimensionless	owmForecastHour18Humidity		"18h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#humidity"}
Number:Speed			owmForecastHour18WindSpeed		"18h Vorhersage Windgeschwindigkeit [%.1f km/h]"	<wind>			(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#wind-speed"}
Number:Dimensionless	owmForecastHour18WindDirection	"18h Vorhersage Windrichtung [SCALE(wind.scale):%s]"	<wind>      (gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#wind-direction"}
Number:Dimensionless	owmForecastHour18Cloudiness		"18h Vorhersage Bewölkung [%.1f %unit%]"			<sun_clouds>	(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#cloudiness"}
Number:Length			owmForecastHour18Rain			"18h Vorhersage Regen [%.1f %unit%]"				<rain>			(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#rain"}
Number:Length			owmForecastHour18Snow			"18h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#snow"}
DateTime	owmForecastHour18Timestamp	"18h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"		<time>			(gOwmForecastHour,gOwmForecastHour18) {channel="openweathermap:hourly-forecast:api:local:forecastHours18#time-stamp"}

// Forecast Hour21
Image					owmForecastHour21Icon			"21h Vorhersage Wetterlage Icon"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#icon"}
String					owmForecastHour21Condition		"21h Vorhersage Wetterlage [%s]"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#condition"}
String				    owmForecastHour21ConditionId	"21h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour21)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours21#condition-id"}
String				    owmForecastHour21IconId			"21h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour21)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours21#icon-id"}
Number:Temperature		owmForecastHour21Temperature	"21h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#temperature"}
Number:Pressure			owmForecastHour21Pressure		"21h Vorhersage Luftdruck [%.1f %unit%]"			<pressure>		(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#pressure"}
Number:Dimensionless	owmForecastHour21Humidity		"21h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#humidity"}
Number:Speed			owmForecastHour21WindSpeed		"21h Vorhersage Windgeschwindigkeit [%.1f km/h]"	<wind>			(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#wind-speed"}
Number:Dimensionless	owmForecastHour21WindDirection	"21h Vorhersage Windrichtung [SCALE(wind.scale):%s]"	<wind>      (gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#wind-direction"}
Number:Dimensionless	owmForecastHour21Cloudiness		"21h Vorhersage Bewölkung [%.1f %unit%]"			<sun_clouds>	(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#cloudiness"}
Number:Length			owmForecastHour21Rain			"21h Vorhersage Regen [%.1f %unit%]"				<rain>			(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#rain"}
Number:Length			owmForecastHour21Snow			"21h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#snow"}
DateTime	owmForecastHour21Timestamp	"21h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"		<time>			(gOwmForecastHour,gOwmForecastHour21) {channel="openweathermap:hourly-forecast:api:local:forecastHours21#time-stamp"}

// Forecast Hour24
Image					owmForecastHour24Icon			"24h Vorhersage Wetterlage Icon"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#icon"}
String					owmForecastHour24Condition		"24h Vorhersage Wetterlage [%s]"					<sun_clouds>	(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#condition"}
String				    owmForecastHour24ConditionId	"24h Vorhersage Wetterlage ID [%s]"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour24)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours24#condition-id"}
String				    owmForecastHour24IconId			"24h Vorhersage Wetterlage Icon ID"				    <sun_clouds>	/*(gOwmForecastHour,gOwmForecastHour24)*/ {channel="openweathermap:hourly-forecast:api:local:forecastHours24#icon-id"}
Number:Temperature		owmForecastHour24Temperature	"24h Vorhersage Temperatur [%.1f %unit%]"		    <temperature>	(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#temperature"}
Number:Pressure			owmForecastHour24Pressure		"24h Vorhersage Luftdruck [%.1f %unit%]"			<pressure>		(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#pressure"}
Number:Dimensionless	owmForecastHour24Humidity		"24h Vorhersage Luftfeuchtigkeit [%.1f %unit%]"	    <humidity>		(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#humidity"}
Number:Speed			owmForecastHour24WindSpeed		"24h Vorhersage Windgeschwindigkeit [%.1f km/h]"	<wind>			(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#wind-speed"}
Number:Dimensionless	owmForecastHour24WindDirection	"24h Vorhersage Windrichtung [SCALE(wind.scale):%s]"	<wind>      (gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#wind-direction"}
Number:Dimensionless	owmForecastHour24Cloudiness		"24h Vorhersage Bewölkung [%.1f %unit%]"			<sun_clouds>	(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#cloudiness"}
Number:Length			owmForecastHour24Rain			"24h Vorhersage Regen [%.1f %unit%]"				<rain>			(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#rain"}
Number:Length			owmForecastHour24Snow			"24h Vorhersage Schneefall [%.1f %unit%]"		    <snow>			(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#snow"}
DateTime	owmForecastHour24Timestamp	"24h Vorhersage Zeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"		<time>			(gOwmForecastHour,gOwmForecastHour24) {channel="openweathermap:hourly-forecast:api:local:forecastHours24#time-stamp"}

// Forecast Hourly Station Details
String		owmForecastHourStationId		"Wetterstation ID"					<house>		(gOwmForecastHour,gOwmForecastHourStation) {channel="openweathermap:hourly-forecast:api:local:station#id"}
String		owmForecastHourStationName		"Wetterstation Name"				<house>		(gOwmForecastHour,gOwmForecastHourStation) {channel="openweathermap:hourly-forecast:api:local:station#name"}
Location	owmForecastHourStationLocation	"Wetterstation Geokoordinaten [%2$s,%3$s]"	<house>		(gOwmForecastHour,gOwmForecastHourStation) {channel="openweathermap:hourly-forecast:api:local:station#location"}

wind.scale in transform folder (be sure you have the transformation service activated in PaperUI

[0..11.25[ = N - Nord
[11.25..33.75[ = NNE - NordNordOst
[33.75..56.25[ = NE - NordOst
[56.25..78.75[ = ENE - OstNordOst
[78.75..101.25[ = E - Ost
[101.25..123.75[ = ESE - OstSüdOst
[123.75..146.25[ = SE - SüdOst
[146.25..168.75[ = SSE - SüdSüdOst
[168.75..191.25[ = S - Süd
[191.25..213.75[ = SSW - SüdSüdWest
[213.75..236.25[ = SW - SüdWest
[236.25..258.75[ = WSW - WestSüdWest
[258.75..281.25[ = W - West
[281.25..303.75[ = WNW - WestNordWest
[303.75..326.25[ = NW - NordWest
[326.25..348.75[ = NNW - NordNordWest
[348.75..360] = N - Nord

YOUR_SITEMAP.sitemap

	Frame label="Lokales Wetter" {
		Image item=owmCurrentIcon
		Text item=owmCurrentCondition
		/*Text item=owmCurrentConditionId
		Text item=owmCurrentIconId*/
		Text item=owmCurrentTemperature
		Text item=owmCurrentPressure
		Text item=owmCurrentHumidity
		Text item=owmCurrentWindSpeed
		Text item=owmCurrentWindDirection
		Text item=owmCurrentCloudiness
		Text item=owmCurrentRain
		Text item=owmCurrentSnow
		Group item=gOwmCurrentStation label="Lokales Wetter Station Details"
		Group item=gOwmForecastHour label="Wetter Vorhersage" {
			Frame label="3h Wetter Vorhersage" {
				Image item=owmForecastHour03Icon
				Text item=owmForecastHour03Condition
				//Text item=owmForecastHour03ConditionId
				//Text item=owmForecastHour03IconId
				Text item=owmForecastHour03Temperature
				Text item=owmForecastHour03Pressure
				Text item=owmForecastHour03Humidity
				Text item=owmForecastHour03WindSpeed
				Text item=owmForecastHour03WindDirection
				Text item=owmForecastHour03Cloudiness
				Text item=owmForecastHour03Rain
				Text item=owmForecastHour03Snow
				Text item=owmForecastHour03Timestamp
				Group item=gOwmForecastHour03 label="3h Wetter Vorhersage"
				Group item=gOwmForecastHour06 label="6h Wetter Vorhersage"
				Group item=gOwmForecastHour09 label="9h Wetter Vorhersage"
				Group item=gOwmForecastHour12 label="12h Wetter Vorhersage"
				Group item=gOwmForecastHour15 label="15h Wetter Vorhersage"
				Group item=gOwmForecastHour18 label="18h Wetter Vorhersage"
				Group item=gOwmForecastHour21 label="21h Wetter Vorhersage"
				Group item=gOwmForecastHour24 label="24h Wetter Vorhersage"
				Group item=gOwmForecastHourStation label="Wetter Vorhersage Station Details"
			}
		}
	}

Have Fun! Cheers…


[SOLVED] Copy not eng items and change to eng
(—M.Yoda) #68

item definition e.g.

Location owmStationGeolocation "Wetterstation (Koordinaten)" <zoom> {
    channel="openweathermap:weather:api:local:station#geolocation"
}

sitemap e.g.

// display map
Mapview item=owmStationGeolocation

// display text
Text item=owmStationGeolocation label="Koordinaten [Lat %2$s Long %3$s]"

@kugelsicha
That is working fine in my enviroment - does it work for you? :wink:


(Holger Eisold) #69

Awesome… never used those vars and never thought they exist… Yes that works for me aswell! Thank You!
I’m using it this way in my .items file:

Location	owmCurrentStationLocation   "Wetterstation Geokoordinaten [%2$s,%3$s]"

(Nanna Agesen) #70

Hi

I have problems with the channel for icon, I have no images and cant see any error in log.

Anyone have an example I can verify mine with?


(Christoph Weitkamp) #71

Hi @Nanna_Agesen,

Did you see the post of @kugelsicha? It contains a working configuration for the icon.


(Nanna Agesen) #72

Hi :slight_smile:

Im using that example, everything works, except icons.


(Christoph Weitkamp) #73

@Nanna_Agesen Okay. I have the slight feeling that you do not have the latest version of the OWMbinding installed. The channel for the icon has been introduced one month ago. Can you please verify your binding version?


(Nanna Agesen) #74

Hi

I think you’re right i’m using this version 0.10.0.201806190707-SNAPSHOT, from the Eclipse Marked Place.

Do you have a link to a newer version?

Best
Nanna


(Christoph Weitkamp) #75

Yes, of course. Here you are.


(Nanna Agesen) #76

Thanks :slight_smile:

I updated the binding, but there is no icon showing up - And I can’t any errors in log.
Do you have any other ideas?


(Christoph Weitkamp) #77

Please try to recreate your weather and forecast things. New channels are not added automatically to an existing thing.


(Holger Eisold) #78

as Christoph already wrote:

and i noticed… if you change something in your items file… you sometimes need to wait for the binding to update those (new) items to receive a update from the api… up to half an hour…


(Nanna Agesen) #79

I managed to get the Icons for Local Weather to work, as you wrote the channels were not updated.

However I can’t get the forecast to work, can you explain the best way recreate the weather and forecast thing?


(Holger Eisold) #80

in PaperUI OWM API thing make sure the 3 day forecast is active (should be by default):

then you need to add the new Thing and make sure its online:
2018-08-26%2014_35_23-Window


(Nanna Agesen) #81

I have enabled 3 hour forecast, and it is online and retrieving data except Icon.

In PaperUI I only have the Icon for the local weather, when I go to 3 Days Forecast that is missing.