OpenWeatherMap widget for HABPanel

Hi, I’m new here and I’ve just start my adventure with OpenHAB. I’ve stared with setting upd weather and found this widget. Unfortunately after one day spending on implementing it I only cen get this:
image
I’ve checked and on dummy widget I can see data from OpenWeather
Any ideas what else should I check to make it work?

That’s what I am currently after:
I am checking the temperature at 4am and 12PM and I assume these to be the minimum and maximum.

One question:

I am using the rain forecast like:

Number:Length W_OWM_Rain3 "FC Rain [%d %unit%]" (G_jdbc) {channel="openweathermap:weather-and-forecast:OWM:local:forecastHours03#rain"}

The widget displays m (of course, because of SI).
How to get it to mm intead?
My code in the widget:

<h5>{{'%.1f' | sprintf:itemValue('W_OWM_RainDay0').split(' ')[0]}}{{itemValue('W_OWM_RainDay0').split(' ')[1]}}</h5>

EDIT: I don’t know, what happend, but it suddenly mm :slight_smile:

By the way: I don’t get the rain populated with data.
Does someone have this issue as well?

EDIT 2: Need to check for the 2nd issue (too sunny right know :wink:

I was able to see this with no i images:
image
when type:

	<div ng-controller="ngOwmCtrl">
    <div class="row owm-row-current">
      <div class="col-xs-9">
        <i class="wi wi-owm-{{ itemValue('Weather_OWM_ConditionId') }} pull-right" ng-style="{ 'color' : (config.icon_color_current == NULL ? primary-color : config.icon_color_current), 'font-size' : (config.icon_size_current == NULL ? '10em' : config.icon_size_current + 'em') }"></i>
        <h2 class="text-left owm-to-upper">{{ itemValue('openweathermap_weather_and_forecast_d3b95f3f_local_current_condition') }}</h2>
      </div>
      <div class="col-xs-3 text-right">
        <h2>{{ '%.1f' | sprintf:itemValue('openweathermap_weather_and_forecast_d3b95f3f_local_current_temperature').split(' ')[0] }} {{ itemValue('openweathermap_weather_and_forecast_d3b95f3f_local_current_temperature').split(' ')[1] }}</h2>
        <h5><img style="height:16px;" src="/static/openweathermap/images/humidity.png"/> {{itemValue('openweathermap_weather_and_forecast_d3b95f3f_local_current_humidity') }}</h5>
        <h5><img style="height:16px;" src="/static/openweathermap/images/wind.png"/> {{ '%.1f' | sprintf:itemValue('openweathermap_weather_and_forecast_d3b95f3f_local_current_wind_speed').split(' ')[0] }} {{ itemValue('openweathermap_weather_and_forecast_d3b95f3f_local_current_wind_speed').split(' ')[1] }}</h5>
        <h5>{{ itemValue('openweathermap_weather_and_forecast_d3b95f3f_local_current_time_stamp') | date: 'HH:mm' }}</h5>
      </div>
    </div>

When tried get icons I got this:

data:image/png;base64,iVB....

My OpenHAB is on Windows. Any idea how to get it work?

But it doesn’t work for

    <div class="row owm-row-forecast">
      <div class="col-xs-3 col-md-border">
        <h4 class="owm-to-upper">{{ date_time0 | date:(config.config.day_format == NULL ? 'EEEE' : config.day_format) }}</h4>
        <i class="wi wi-owm-{{ condition_id0 }}" ng-style="{ 'color' : (config.icon_color_forecast == NULL) ? primary-color : config.icon_color_forecast, 'font-size' : (config.icon_size_forecast == NULL) ? '3em' : config.icon_size_forecast + 'em' }"></i>
        <h5 class="owm-condition owm-to-upper">{{ condition0 }}</h5>
        <h4><b>{{ temp0 == NULL ? '' : '%.1f' | sprintf:temp0.split(' ')[0]}} {{temp0.split(' ')[1] }}</b></h4>
      </div>
      <div class="col-xs-3 col-md-border">
        <h4 class="owm-to-upper">{{ date_time1 | date:(config.config.day_format == NULL ? 'EEEE' : config.day_format) }}</h4>
        <i class="wi wi-owm-{{ condition_id1 }}" ng-style="{ 'color' : (config.icon_color_forecast == NULL) ? primary-color : config.icon_color_forecast, 'font-size' : (config.icon_size_forecast == NULL) ? '3em' : config.icon_size_forecast + 'em' }"></i>
        <h5 class="owm-condition owm-to-upper">{{ condition1 }}</h5>
        <h4><b>{{ temp1 == NULL ? '' : '%.1f' | sprintf:temp1.split(' ')[0]}} {{temp1.split(' ')[1] }}</b></h4>
      </div>
      <div class="col-xs-3 col-md-border">
        <h4 class="owm-to-upper">{{ date_time2 | date:(config.config.day_format == NULL ? 'EEEE' : config.day_format) }}</h4>
        <i class="wi wi-owm-{{ condition_id2 }}" ng-style="{ 'color' : (config.icon_color_forecast == NULL) ? primary-color : config.icon_color_forecast, 'font-size' : (config.icon_size_forecast == NULL) ? '3em' : config.icon_size_forecast + 'em' }"></i>
        <h5 class="owm-condition owm-to-upper">{{ condition2 }}</h5>
        <h4><b>{{ temp2 == NULL ? '' : '%.1f' | sprintf:temp2.split(' ')[0]}} {{temp2.split(' ')[1] }}</b></h4>
      </div>
      <div class="col-xs-3 col-md-border">
        <h4 class="owm-to-upper">{{ date_time3 | date:(config.config.day_format == NULL ? 'EEEE' : config.day_format) }}</h4>
        <i class="wi wi-owm-{{ condition_id3 }}" ng-style="{ 'color' : (config.icon_color_forecast == NULL) ? primary-color : config.icon_color_forecast, 'font-size' : (config.icon_size_forecast == NULL) ? '3em' : config.icon_size_forecast + 'em' }"></i>
        <h5 class="owm-condition owm-to-upper">{{ condition3 }}</h5>
        <h4><b>{{ temp3 == NULL ? '' : '%.1f' | sprintf:temp3.split(' ')[0]}} {{temp3.split(' ')[1] }}</b></h4>
      </div>

Couple of thoughts. First, go to the Paper UI and look at the Control tab. Is OpenWeatherMap shown in Local Weather? Are you getting data?

Next, if that’s good, you may be missing the Items from the setup. Copy the text and paste it into a plain text file with the .items extension and save it to /srv/openhab2-conf/items Once you do that, check the log viewer and you should see OpenHAB refresh the items list.

If you’ve tried setting up other weather widgets and already have a .items file, consider removing those other things first. I had some in there that were incorrectly formed and OpenHAB wouldn’t refresh the items till I removed them. If you’re not using items for anything else, consider just deleting that file and starting over.

Let us know how it turns out!

Okay so you’re getting some data, that’s good. Looks like it is only the current stuff. When you set up the OpenWeatherMaps binding, did you add the forecast data? You don’t need them all. You have the current weather so that’s good. Make sure you added things for Forecast Time, Condition, and Icon for 3, 24, 48, and 72 hours.

Once we get the data working we can take a look at the icon problem.

Looks familiar. Probably your Items have a different name than the Item names the default OWM widget is expecting to see. As a result, the widget is not populated.

In HABPanel, go to the HABPanel settings (cogwheel at the bottom of the left column), and click “Manage custom widgets”. Click the OWM widget so you can see and edit the source code. Mine looks like this:

<div id="container">
  <div class="row owm-row-current">
  	<div class="col-md-9">
      <i class="wi wi-owm-{{itemValue('Weather_OWM_Current_ConditionId')}} pull-right" ng-style="{ 'color' : (config.icon_color_current == NULL) ? primary-color : config.icon_color_current, 'font-size' : (config.icon_size_current == NULL) ? '10em' : config.icon_size_current + 'em' }"></i>
      <h2 class="text-left owm-to-upper">{{itemValue('Weather_OWM_Current_Condition')}}</h2>
    </div>
...

Look for the {{itemValue('Weather_OWM_Current_ConditionId')}} entries in your OWM widget code, and adapt the names in the widget so they match the names you defined in your openweathermaps.items file.

For instance, I named all my OWM weather items as follows:

  1. Current values: Weather_OWM_Current_XXX (replace XXX with: Wind, Snow, Temperature, …)
  2. Forecast values: Weather_OWM_Forecast_XXX_YYh (replace XXX as above, and YY with 03, 06, 09… until 96 for the 3-hour forecast values)

This way they differ from what the default OWM HABPanel widget is expecting.

Ok, thanks for all feedbaks I will check all. For now I can see this:


So I believe I have forecast. I can seen that it is populatet in events.log

That’s my errors in openhab.log

2019-02-22 11:24:53.027 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'home_items.items' has errors, therefore ignoring it: [1,1]: missing EOF at 'ď'

2019-02-22 11:25:03.542 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.eclipse.smarthome.binding.openweathermap.internal.handler.OpenWeatherMapWeatherAndForecastHandler@6d2a78': Duplicate channels openweathermap:weather-and-forecast:d3b95f3f:local:forecastHours27#time-stamp
java.lang.IllegalArgumentException: Duplicate channels openweathermap:weather-and-forecast:d3b95f3f:local:forecastHours27#time-stamp

2019-02-22 11:25:03.558 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'openweathermap:weather-and-forecast:d3b95f3f:local': Duplicate channels openweathermap:weather-and-forecast:d3b95f3f:local:forecastHours27#time-stamp
java.lang.IllegalArgumentException: Duplicate channels openweathermap:weather-and-forecast:d3b95f3f:local:forecastHours27#time-stamp

2019-02-22 11:25:15.496 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Set random image URLs': The name 'ImageURL' cannot be resolved to an item or type; line 138, column 16, length 8
2019-02-22 11:25:20.121 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Set random image URLs': The name 'ImageURL' cannot be resolved to an item or type; line 138, column 16, length 8
2019-02-22 11:25:20.246 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Set random wifi variations': The name 'Wifi_Level' cannot be resolved to an item or type; line 128, column 16, length 10

So it seems that .items file is ignored, hmm?

I have copied files 1:1 from github so I have same same names in .items and in widget

HA :slight_smile: I’ve recreate .items file from scrach and paste config lines again and it start to work finaly. No EOF error anymore.
Still have problems with images

data:image/png;base64,iVB....

I have a feeling that sth is nof fully correct here :wink:


Two times Staturday… and for second one -4.5 is here all day since it get start to work.
Strange isn’t it?

Hello,

I followed your installation guide. Under control in PaperUI I see all values, so settings should be fine.

I added the widget in habpanel but it stayes without showing something.

Strange thing, no entry in openhab.log …

Any ideas what could be wrong or where to look for solution?

That is strange. Did you set up the items file?

Yes I did:

// Open Weather Map 
Number:Temperature		Weather_OWM_Temperature			"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:current#temperature"}
Number:Dimensionless 	Weather_OWM_Humidity			"Humidity [%d %unit%]"				            {channel="openweathermap:weather-and-forecast:893c3708:current#humidity"}
Number:Speed    		Weather_OWM_Wind_Speed			"Windspeed [%.1f km/h]"			                {channel="openweathermap:weather-and-forecast:893c3708:current#wind-speed"}
String		Weather_OWM_Station_Name		            "Station Name [%s]"				                {channel="openweathermap:weather-and-forecast:893c3708:station#name"}
DateTime	Weather_OWM_ObservationTime		            "Observation time [%1$tY-%1$tm-%1$td]"		    {channel="openweathermap:weather-and-forecast:893c3708:current#time-stamp"}
String		Weather_OWM_Condition			            "Condition [%s]"				                {channel="openweathermap:weather-and-forecast:893c3708:current#condition"}
String		Weather_OWM_ConditionId			            "ConditionId [%s]"				                {channel="openweathermap:weather-and-forecast:893c3708:current#condition-id"}
Image		Weather_OWM_ConditionIcon			        "Icon [%s]"				                        {channel="openweathermap:weather-and-forecast:893c3708:current#icon"}
String		Weather_OWM_ConditionIconId			        "IconId [%s]"			                        {channel="openweathermap:weather-and-forecast:893c3708:current#icon-id"}

Number:Temperature		Weather_OWM_Temp0		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#temperature"}
Number:Temperature		Weather_OWM_Temp1		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#temperature"}
Number:Temperature		Weather_OWM_Temp2		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#temperature"}
Number:Temperature		Weather_OWM_Temp3		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#temperature"}

DateTime	Weather_OWM_Forecast_Time0		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#time-stamp"}
DateTime	Weather_OWM_Forecast_Time1		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#time-stamp"}
DateTime	Weather_OWM_Forecast_Time2		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#time-stamp"}
DateTime	Weather_OWM_Forecast_Time3		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#time-stamp"}

String		Weather_OWM_Condition0		"Condition [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#condition"}
String		Weather_OWM_Condition1		"Condition [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#condition"}
String		Weather_OWM_Condition2		"Condition [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#condition"}
String		Weather_OWM_Condition3		"Condition [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#condition"}

String		Weather_OWM_ConditionId0		"Icon [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#condition-id"}
String		Weather_OWM_ConditionId1		"Icon [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#condition-id"}
String		Weather_OWM_ConditionId2		"Icon [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#condition-id"}
String		Weather_OWM_ConditionId3		"Icon [%s]"		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#condition-id"}

Number:Temperature		Weather_OWM_Temp_h3		    "Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#temperature"}
Number:Temperature		Weather_OWM_Temp_h6		    "Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours06#temperature"}
Number:Temperature		Weather_OWM_Temp_h9		    "Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours09#temperature"}
Number:Temperature		Weather_OWM_Temp_h12		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours12#temperature"}
Number:Temperature		Weather_OWM_Temp_h15		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours15#temperature"}
Number:Temperature		Weather_OWM_Temp_h18		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours18#temperature"}
Number:Temperature		Weather_OWM_Temp_h21		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours21#temperature"}
Number:Temperature		Weather_OWM_Temp_h24		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#temperature"}
Number:Temperature		Weather_OWM_Temp_h27		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours27#temperature"}
Number:Temperature		Weather_OWM_Temp_h30		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours30#temperature"}
Number:Temperature		Weather_OWM_Temp_h33		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours33#temperature"}
Number:Temperature		Weather_OWM_Temp_h36		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours36#temperature"}
Number:Temperature		Weather_OWM_Temp_h39		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours39#temperature"}
Number:Temperature		Weather_OWM_Temp_h42		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours42#temperature"}
Number:Temperature		Weather_OWM_Temp_h45		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours45#temperature"}
Number:Temperature		Weather_OWM_Temp_h48		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#temperature"}
Number:Temperature		Weather_OWM_Temp_h51		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours51#temperature"}
Number:Temperature		Weather_OWM_Temp_h54		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours54#temperature"}
Number:Temperature		Weather_OWM_Temp_h57		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours57#temperature"}
Number:Temperature		Weather_OWM_Temp_h60		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours60#temperature"}
Number:Temperature		Weather_OWM_Temp_h63		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours63#temperature"}
Number:Temperature		Weather_OWM_Temp_h66		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours66#temperature"}
Number:Temperature		Weather_OWM_Temp_h69		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours69#temperature"}
Number:Temperature		Weather_OWM_Temp_h72		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#temperature"}
Number:Temperature		Weather_OWM_Temp_h75		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours75#temperature"}
Number:Temperature		Weather_OWM_Temp_h78		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours78#temperature"}
Number:Temperature		Weather_OWM_Temp_h81		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours81#temperature"}
Number:Temperature		Weather_OWM_Temp_h84		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours84#temperature"}
Number:Temperature		Weather_OWM_Temp_h87		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours87#temperature"}
Number:Temperature		Weather_OWM_Temp_h90		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours90#temperature"}
Number:Temperature		Weather_OWM_Temp_h93		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours93#temperature"}
Number:Temperature		Weather_OWM_Temp_h96		"Temperature [%.1f %unit%]" <temperature>		{channel="openweathermap:weather-and-forecast:893c3708:forecastHours96#temperature"}

String		Weather_OWM_Condition_h3		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#condition"}
String		Weather_OWM_Condition_h6		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours06#condition"}
String		Weather_OWM_Condition_h9		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours09#condition"}
String		Weather_OWM_Condition_h12		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours12#condition"}
String		Weather_OWM_Condition_h15		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours15#condition"}
String		Weather_OWM_Condition_h18		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours18#condition"}
String		Weather_OWM_Condition_h21		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours21#condition"}
String		Weather_OWM_Condition_h24		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#condition"}
String		Weather_OWM_Condition_h27		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours27#condition"}
String		Weather_OWM_Condition_h30		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours30#condition"}
String		Weather_OWM_Condition_h33		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours33#condition"}
String		Weather_OWM_Condition_h36		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours36#condition"}
String		Weather_OWM_Condition_h39		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours39#condition"}
String		Weather_OWM_Condition_h42		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours42#condition"}
String		Weather_OWM_Condition_h45		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours45#condition"}
String		Weather_OWM_Condition_h48		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#condition"}
String		Weather_OWM_Condition_h51		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours51#condition"}
String		Weather_OWM_Condition_h54		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours54#condition"}
String		Weather_OWM_Condition_h57		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours57#condition"}
String		Weather_OWM_Condition_h60		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours60#condition"}
String		Weather_OWM_Condition_h63		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours63#condition"}
String		Weather_OWM_Condition_h66		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours66#condition"}
String		Weather_OWM_Condition_h69		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours69#condition"}
String		Weather_OWM_Condition_h72		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#condition"}
String		Weather_OWM_Condition_h75		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours75#condition"}
String		Weather_OWM_Condition_h78		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours78#condition"}
String		Weather_OWM_Condition_h81		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours81#condition"}
String		Weather_OWM_Condition_h84		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours84#condition"}
String		Weather_OWM_Condition_h87		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours87#condition"}
String		Weather_OWM_Condition_h90		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours90#condition"}
String		Weather_OWM_Condition_h93		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours93#condition"}
String		Weather_OWM_Condition_h96		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours96#condition"}

String		Weather_OWM_ConditionId_h3		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#condition-id"}
String		Weather_OWM_ConditionId_h6		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours06#condition-id"}
String		Weather_OWM_ConditionId_h9		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours09#condition-id"}
String		Weather_OWM_ConditionId_h12		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours12#condition-id"}
String		Weather_OWM_ConditionId_h15		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours15#condition-id"}
String		Weather_OWM_ConditionId_h18		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours18#condition-id"}
String		Weather_OWM_ConditionId_h21		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours21#condition-id"}
String		Weather_OWM_ConditionId_h24		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#condition-id"}
String		Weather_OWM_ConditionId_h27		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours27#condition-id"}
String		Weather_OWM_ConditionId_h30		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours30#condition-id"}
String		Weather_OWM_ConditionId_h33		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours33#condition-id"}
String		Weather_OWM_ConditionId_h36		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours36#condition-id"}
String		Weather_OWM_ConditionId_h39		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours39#condition-id"}
String		Weather_OWM_ConditionId_h42		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours42#condition-id"}
String		Weather_OWM_ConditionId_h45		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours45#condition-id"}
String		Weather_OWM_ConditionId_h48		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#condition-id"}
String		Weather_OWM_ConditionId_h51		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours51#condition-id"}
String		Weather_OWM_ConditionId_h54		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours54#condition-id"}
String		Weather_OWM_ConditionId_h57		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours57#condition-id"}
String		Weather_OWM_ConditionId_h60		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours60#condition-id"}
String		Weather_OWM_ConditionId_h63		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours63#condition-id"}
String		Weather_OWM_ConditionId_h66		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours66#condition-id"}
String		Weather_OWM_ConditionId_h69		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours69#condition-id"}
String		Weather_OWM_ConditionId_h72		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#condition-id"}
String		Weather_OWM_ConditionId_h75		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours75#condition-id"}
String		Weather_OWM_ConditionId_h78		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours78#condition-id"}
String		Weather_OWM_ConditionId_h81		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours81#condition-id"}
String		Weather_OWM_ConditionId_h84		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours84#condition-id"}
String		Weather_OWM_ConditionId_h87		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours87#condition-id"}
String		Weather_OWM_ConditionId_h90		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours90#condition-id"}
String		Weather_OWM_ConditionId_h93		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours93#condition-id"}
String		Weather_OWM_ConditionId_h96		"Condition [%s]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours96#condition-id"}

DateTime		Weather_OWM_    DateTime_h3		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours03#time-stamp"}
DateTime		Weather_OWM_    DateTime_h6		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours06#time-stamp"}
DateTime		Weather_OWM_    DateTime_h9		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours09#time-stamp"}
DateTime		Weather_OWM_    DateTime_h12		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours12#time-stamp"}
DateTime		Weather_OWM_    DateTime_h15		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours15#time-stamp"}
DateTime		Weather_OWM_    DateTime_h18		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours18#time-stamp"}
DateTime		Weather_OWM_    DateTime_h21		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours21#time-stamp"}
DateTime		Weather_OWM_    DateTime_h24		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours24#time-stamp"}
DateTime		Weather_OWM_    DateTime_h27		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours27#time-stamp"}
DateTime		Weather_OWM_    DateTime_h30		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours30#time-stamp"}
DateTime		Weather_OWM_    DateTime_h33		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours33#time-stamp"}
DateTime		Weather_OWM_    DateTime_h36		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours36#time-stamp"}
DateTime		Weather_OWM_    DateTime_h39		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours39#time-stamp"}
DateTime		Weather_OWM_    DateTime_h42		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours42#time-stamp"}
DateTime		Weather_OWM_    DateTime_h45		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours45#time-stamp"}
DateTime		Weather_OWM_    DateTime_h48		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours48#time-stamp"}
DateTime		Weather_OWM_    DateTime_h51		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours51#time-stamp"}
DateTime		Weather_OWM_    DateTime_h54		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours54#time-stamp"}
DateTime		Weather_OWM_    DateTime_h57		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours57#time-stamp"}
DateTime		Weather_OWM_    DateTime_h60		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours60#time-stamp"}
DateTime		Weather_OWM_    DateTime_h63		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours63#time-stamp"}
DateTime		Weather_OWM_    DateTime_h66		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours66#time-stamp"}
DateTime		Weather_OWM_    DateTime_h69		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours69#time-stamp"}
DateTime		Weather_OWM_    DateTime_h72		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours72#time-stamp"}
DateTime		Weather_OWM_    DateTime_h75		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours75#time-stamp"}
DateTime		Weather_OWM_    DateTime_h78		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours78#time-stamp"}
DateTime		Weather_OWM_    DateTime_h81		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours81#time-stamp"}
DateTime		Weather_OWM_    DateTime_h84		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours84#time-stamp"}
DateTime		Weather_OWM_    DateTime_h87		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours87#time-stamp"}
DateTime		Weather_OWM_    DateTime_h90		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours90#time-stamp"}
DateTime		Weather_OWM_    DateTime_h93		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours93#time-stamp"}
DateTime		Weather_OWM_    DateTime_h96		"Forecast time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	{channel="openweathermap:weather-and-forecast:893c3708:forecastHours96#time-stamp"}

Wow, yes you did! :slight_smile:
If you were to edit it and save it, does it show in the OpenHAB Log Viewer that it is refreshing the items? Something like:

2019-02-24 07:44:02.490 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'home.items'
2019-02-24 17:45:03.240 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'openweathermap.items'

again a clear: yes

Is there more to do as to add the widget?

I am with Homer-Sim.

I followed through things exactly. I can see all items, in the correct units, on PaperUI and can create a Dummy widget to display particular items.

BUT, the created widget is blank. Tried all items on this thread with no luck.

Also, when I import the widget manually (from downloaded file, not from “get more”), I get an error which states:

Error

Widget import error: SyntaxError: Unexpected token < in JSON at position 6

Any ideas?


Thanks, I did the same stupid mistake, this saved me

Okay, that’s weird. I had a problems like this with the WeatherUnderground widget and never figured it out so I switched to the OpenWeatherMap one. Still had some problems but was able to work through them.

I think the best way to troubleshoot this is to pick one weather item and see if we can get it working. If we can, that should tell us what is wrong with all of them.

Try this, go to Paper UI > Configuration > Things > Local weather and forecast and take a look at Weather Condition

Expand the thing by click on the arrows to the right of it and see what it says for Linked Items. Here’s what I have, what are you seeing?

25%20AM

@Homer-Sim Do you have the file owm.controller.js in conf/html/openweathermap?

I don’t and it is working. What is that?