can't get weather binding to work

2,090 views
Skip to first unread message

Daan Dewinne

unread,
May 12, 2015, 2:42:05 AM5/12/15
to ope...@googlegroups.com

I used the examples of the wiki for salsburg with yahoo.
I used the following settings:

CONFIG FILE:
weather:location.home.name=sals
weather:location.home.latitude=47.8011
weather:location.home.longitude=13.0448
weather:location.home.provider=Yahoo
weather:location.home.language=de
weather:location.home.updateInterval=10


SITEMAP
Text item=Temperature

ITEMS
Number   Temperature   "Temperature [%.2f °C]"   {weather="locationId=home, type=temperature, property=current"}
Number   Humidity      "Humidity [%d %%]"        {weather="locationId=home, type=athmosphere, property=humidity"}

When I look on the user interface, I see the label "Temperature" and this if followed by "-°C".
The temperature value is not displayed!

I checked everything in the wiki under  troubleshooting and it is present in my log file.
What else can I check to get this working?

Thanks

michael...@outlook.com

unread,
May 12, 2015, 4:25:19 AM5/12/15
to ope...@googlegroups.com
Hello Daan

I use also yahoo weather and it works fine.
I've looked at my config and I have 5 digits after the .(dot).
May you try this coordinates for salzburg (Austria, I mention)...

Latitude: 47.79941
Longitude: 13.04399



The item-confi looks fine for me.
May you increase the update-intervall, because the weather isn't changing in minutes ;-)

Regards
Michael

Daan Dewinne

unread,
May 12, 2015, 5:07:34 AM5/12/15
to ope...@googlegroups.com
Michael,

Thanks for the reaction.
I'm going to try this again later today with 5 digits.
I use 4 digits because it is so in the examples from wiki.
My example of Salzburg is just a copy from the wiki page. I assume that the examples from the wiki are working ones to test and get the binding up and running.

the update interval of 10 min. is just for testing.

regards
Daan


Op dinsdag 12 mei 2015 10:25:19 UTC+2 schreef michael...@outlook.com:

Daan Dewinne

unread,
May 12, 2015, 4:34:29 PM5/12/15
to ope...@googlegroups.com
Change the coordinates from 4 digits to 5 digits isn't the sollution.
I still don't get any temperatures.

When I look into the log file I get this:

17:46:47.889 [DEBUG] [i.internal.GenericItemProvider:334  ] - Start processing binding configuration of Item 'Temperature5 (Type=NumberItem, State=Uninitialized)' with 'WeatherGenericBindingProvider' reader.

17:46:47.894 [DEBUG] [.WeatherGenericBindingProvider:57   ] - Adding item Temperature5 with WeatherBindingConfig[locationId=home2,type=temperature,property=current,roundingMode=HALF_UP,scale=2]

17:46:47.898 [DEBUG] [i.internal.GenericItemProvider:334  ] - Start processing binding configuration of Item 'Humidity5 (Type=NumberItem, State=Uninitialized)' with 'WeatherGenericBindingProvider' reader.

17:46:47.903 [DEBUG] [.WeatherGenericBindingProvider:57   ] - Adding item Humidity5 with WeatherBindingConfig[locationId=home2,type=athmosphere,property=humidity,roundingMode=HALF_UP,scale=2]


17:46:48.141 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=atmosphere.humidity,target=athmosphere.humidity,converter=INTEGER]

17:46:48.176 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=atmosphere.visibility,target=athmosphere.visibility,converter=DOUBLE]

17:46:48.212 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=atmosphere.pressure,target=athmosphere.pressure,converter=DOUBLE]

17:46:48.415 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=text,target=condition.text,converter=STRING]

17:46:48.505 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=lastBuildDate,target=condition.observationTime,converter=FULL_UTC_DATE]

17:46:48.510 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=forecast.date,target=condition.observationTime,converter=SIMPLE_DATE]

17:46:48.530 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=code,target=condition.id,converter=STRING]

17:46:48.684 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=condition.temp,target=temperature.current,converter=DOUBLE]

17:46:48.716 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=forecast.low,target=temperature.min,converter=DOUBLE]

17:46:48.829 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=forecast.high,target=temperature.max,converter=DOUBLE]

17:46:48.891 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=wind.speed,target=wind.speed,converter=DOUBLE]

17:46:48.973 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=wind.direction,target=wind.degree,converter=INTEGER]

17:46:49.051 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=wind.chill,target=wind.chill,converter=DOUBLE]

17:46:49.137 [TRACE] [b.w.i.metadata.MetadataHandler:87   ] - Added provider mapping YAHOO: ProviderMappingInfo[source=error.description,target=weather.error,converter=STRING]

17:46:49.254 [TRACE] [b.w.i.metadata.MetadataHandler:98   ] - Added forecast mapping YAHOO: query.results.channel.item.forecast

17:46:49.635 [DEBUG] [.w.internal.gfx.WeatherServlet:72   ] - Starting up weather servlet at /weather

17:46:49.775 [INFO ] [o.o.b.w.i.common.WeatherConfig:232  ] - LocationConfig[providerName=YAHOO,language=de,updateInterval=10,latitude=47.79941,longitude=13.04399,locationId=home2,name=sals2]

The strange thing is that I never see any lines where I can see that openhab is getting weather info!
can someone help me with this?


Op dinsdag 12 mei 2015 11:07:34 UTC+2 schreef Daan Dewinne:

Daan Dewinne

unread,
May 14, 2015, 3:47:42 AM5/14/15
to ope...@googlegroups.com
will someone share his working settings (config, item & Sitemap) with me so I can try that settings on my set-up?

Op dinsdag 12 mei 2015 08:42:05 UTC+2 schreef Daan Dewinne:

michael...@outlook.com

unread,
May 15, 2015, 3:51:28 AM5/15/15
to ope...@googlegroups.com
Hey Daan

Here is my config:

openhab.cfg:
weather:location.Home.name=Mörschwil
weather:location.Home.latitude=47.468320
weather:location.Home.longitude=9.423960
weather:location.Home.provider=Yahoo
weather:location.Home.language=de
weather:location.Home.updateInterval=20

SITEMAP (Sample)
Text item=Current_Temp_Outside

ITEMS
Number Current_Temp_Outside "Temperatur draussen [%.1f °C]" <temperature> {weather="locationId=Home, type=temperature, property=current"}
Number Current_Wind_Outisde "Windgeschwindigkeit[%.1f km/h]" <selfWind> {weather="locationId=Home, type=wind, property=speed"}
Number Wind_Outside_Beaufort "Windgeschwindigkeit Beaufort [%d]" <wind> {weather="locationId=Home, type=wind, property=speed, unit=beaufort"}

After that, you should see
2015-05-15 09:02:05.409 [INFO ] [runtime.busevents             ] - Current_Wind_Outisde state updated to 8.05

Daan Dewinne

unread,
May 16, 2015, 8:14:45 AM5/16/15
to ope...@googlegroups.com
Hey Michael,

Thank you for your config.
Unfortunately it is still not working.
I don't get the item updates in my log.

Do I, outside the weather, need another binding to make the weather work?

I work with openhab 1.6.2 and you?

regards, Daan


Op vrijdag 15 mei 2015 09:51:28 UTC+2 schreef michael...@outlook.com:

Marcel Erkel

unread,
May 16, 2015, 12:18:25 PM5/16/15
to ope...@googlegroups.com
Hi Daan,

Just wondering, can you ping query.yahooapis.com from your openhab node?

# ping query.yahooapis.com

If you cannot ping query.yahooapis.com, then check if you have the correct gateway configured for you network. If you get a reply from query.yahooapis.com then you don't have an ip problem and I would remove your current items, sitemap and rules file(s). Leave the configuration of the binding in openhab.cfg as is.

Next create an default.items file with just the following line:

Number Temperature  "Huidige temperatuur [%.2f °C]"  {weather="locationId=home, type=temperature, property=current"}

Create a sitemap file default.sitemap with the following content:

sitemap default label="Hoofd menu"
{
    Frame label="Weer"
    {
        Text item=Temperature
    }
}


Don't create a rules file. Restart OpenHAB.

If this works, then start by adding your items files again, restart OpenHAB and then check if the weather binding is still working. If not, then you have a problem in your items file(s). If all is still ok, then add your sitemap file(s) again and restart OpenHAB. If it still works, add you rules file(s) and restart OpenHAB.

I'm using OpenHAB 1.6.2 with the 1.7.0 weather binding, but I also successfully used the 1.6.2 version of the binding.

I do notice timeout exceptions in the log openhab.log logfile every now and then and they mess up my openhab.log logfile. Therefor I'm currently moving away from the weather binding and use the input form xml.buienradar.nl which has a weather station available from the vilage where I live. Updates every 10 minutes and since we have a military airbase here, I'm assuming it's pretty accurate. For this I'm using the http binding and XSL transform files to get the required data from the XML into OpenHAB.

Not sure where you are from (Netherlands or Belgium) and if this could be interesting for you as well.

Cheers,
Marcel
Reply all
Reply to author
Forward
0 new messages