New Weather Underground binding for Eclipse SmartHome / openHAB2


(Ferry) #61

This line gives me an issue as well. Uncommenting (/*** line ***/) solves the issue and loads everything.


(Lolodomo) #64

I can see in Designer that using Location as item name genrates an error. So that is certainly the problem, Location is a keyword (type) and cannot be used as an item name. I am updating the example in the documentation immediately.


(Kai Kreuzer) #65

Correct, it is a keyword, but it can nonetheless be used as an item name. To do so, the keyword needs to be escaped as ^Location.


(Neil) #66

is there a way to get the solar radiation in lux, rather than in w/m2?

My weather station sends the data to wunderground as lux, but wunderground gives it back as w/m2.

Could a SourceUnit option be added to convert it, please?


(Matthias) #67

Hi @Lolodomo,

I’m on Openhab 2.1, with the binding from the marketplace (0.9.0.201703181903). My binding setup is based on files according the docs. Everythings is fine appart from the display of weather icons in my local language (German, DL) for the Conditions item in Basic UI / iOS app.

String  vWeather_Conditions  "Wetter [%s]"  <wu>  (gWeather)  {channel="weatherunderground:weather:local:current#conditions"}
Image   vWeather_Icon        "Icon"               (gWeather)  {channel="weatherunderground:weather:local:current#icon"}

Afaik item type Image is not yet supported in the mentioned UIs, right?

So, I went for a small set of dynamic icons in /etc/openhab2/icons/classic/

wu-bedeckt.png -> wu-cloudy.png
wu-bedeckt.svg -> wu-cloudy.svg
wu-chancerain.png
wu-chancerain.svg
wu-cloudy.png
wu-cloudy.svg
wu-mostlycloudy.png
wu-mostlycloudy.svg
wu-partlycloudy.png
wu-partlycloudy.svg
wu.png
wu-regen möglich.png -> wu-chancerain.png
wu-regen möglich.svg -> wu-chancerain.svg
wu.svg
wu-teils wolkig.png -> wu-partlycloudy.png
wu-teils wolkig.svg -> wu-partlycloudy.svg
wu-wolkig.png -> wu-mostlycloudy.png
wu-wolkig.svg -> wu-mostlycloudy.svg

Now I’m facing two issues:

  1. it’s quite tedious to find and download all weather icons from weather undergrund (I used the *.svg from http://icons.wxug.com/i/c/v4/... as a starting point)
  2. some of my icons will not show up, but the default icon is used instead (wu.svg vs. wu-teils wolkig.svg, but wu-regen möglich.svg is fine)

What is the recommended way to to approach these issues?


Weather Underground 2.0 binding: missing property Common-id and Windspeed in Bft
(Lolodomo) #68

In the version in the marketplace, the weather icon was not available as an image item but as a string URL. You can check channels available in Paper UI.
I will probably suppress the version in the marketplace soon.


(Matthias) #69

Hm, how can I switch to the latest snapshot version?


(Lolodomo) #70

The official binding is included in any OH 2.2 snapshot.


(Neil) #71

I’m using the ‘current#icon’ channel to return the current weather image. It works great on a sitemap that’s loaded in a browser, but doesn’t display in the android app and creates a proxy error in the logs.

Does anyone know how to display the current weather icon in the android app, please?


(Lolodomo) #72

I submitted a fix for the Android app to support such images. Until a merge and a release, you cannot display this image in the Android app.


(Neil) #73

OK, thanks. It’s good to hear there’s a fix coming somewhen. :slight_smile:


(Lolodomo) #74

My fix in Android app is now merged. Remains to wait for the next release in the store.


(Nick Galfas) #75

Can anybody give a nice sitemap result with the new 2.2 binding images for current conditions ?


(Arno) #76

I get a communication error on every second request. It is absolutely regular, one request is ok, the next goes wrong, next is ok, next wrong etc. etc. No matter what the interval is, or whether I provoke a manual update. Any pointers what might be the problem?


(softy) #77

Dear Lolodomo,

first of all congratulations for this very nice binding, which I am using since you 1st posted it. It works really well.
I am wondering, if you may can extend it to the “hourly10days” channel. The interesting information I am looking for is the “sky” field, which is needed(among other parameters) to calculate the expected Solar watts per sqm for the next days. With this information it is possible to significant increase the self-used Solarpower, as you may not need to store energy in your batteries as enough Solarpower is forecasted. Here is a link(in german) of somebody who has disclosed a solution for that unrelated to your binding and openhab. http://www.kkopv.com/2014/10/eigenverbrauch-und-eigenverbrauchsoptim.html
For sure this kind of “empowering the smart home” will get more and more important.

What do you think?


(Scott Rushworth) #78

Are the channels dynamically made available based on the data that is being pulled in for the specified location? I’m specifically trying to get solarRadiation, but I do not see a channel for it. I thought it might be the location I was using, but I’ve specified large cities for the location and the channel still does not show up. I know there are a few stations near me reporting it, but I’d prefer not to specify a specific pws because occasionally the data is bad for the ones I’ve tried.

OH 2.3 snapshot build 1159
WeatherUnderground Binding 0.10.0.201712141004


(Lolodomo) #79

All channels are static.
If you don’t see it, maybe your thing is very old and was created when this channel did not yet exist.
In this case, try to delete and create again your thing.


(Scott Rushworth) #80

I found it! I am not used to using PaperUI and was being slow… I just needed to click on Show More :roll_eyes: In migrating from the Weather 1.x binding, there are three pieces of data that I do not see in the new binding. the current chance of precipitation (current#probaPrecipitation?), commonId, and the pressure trend. The last two I could create in a rule though. But you mentioned this…

Where did the discussion end up (or were you referring to this)? Thank you for putting this binding together!

Feature request: I should put this into GH, but thought I could try to gauge interest here first. It would be great if you could pull in weather alerts, which can be grabbed in the same API call. I use them for audio notifications. Here are some items I create with the data:

String      Weather_Alert_Message_Raw      "Severe Weather Alert (Raw) [%s]"	    <text>  (gWeather,gNotification)
String      Weather_Alert_NWS_VTEC         "Severe Weather Alert NWS VTEC [%s]"	    <text>  (gWeather,gNotification)
String      Weather_Alert_Type             "Severe Weather Alert Type [%s]"	        <text>  (gWeather,gNotification)
DateTime    Weather_Alert_Expiration       "Severe Weather Alert Expiration [%1$tA, %1$tB %1$te, %1$tY at %1$tl:%1$tM%1$tp]"	<calendar>  (gWeather,gNotification)

I had posted about this here:


(Christian) #81

Did you solve this? I have the exact same problem. Every second request fails with “(COMMUNICATION_ERROR): An error occurred while running the Weather Underground request.”


(Arno) #82

No, still same symptoms. events.log:


2018-01-25 01:09:50.977 [hingStatusInfoChangedEvent] - 'weatherunderground:weather:local' changed from OFFLINE (COMMUNICATION_ERROR): An error occurred while running the Weather Underground request. to ONLINE
2018-01-25 01:09:51.015 [vent.ItemStateChangedEvent] - CurrentConditions changed from UNDEF to Teils Wolkig
2018-01-25 01:09:51.017 [vent.ItemStateChangedEvent] - CurrentRelativeHumidity changed from UNDEF to 86
2018-01-25 01:09:51.018 [vent.ItemStateChangedEvent] - CurrentTemperature changed from UNDEF to 9.1
2018-01-25 01:09:51.019 [vent.ItemStateChangedEvent] - CurrentWindDirection changed from UNDEF to Süd-Südwest
2018-01-25 01:09:51.021 [vent.ItemStateChangedEvent] - CurrentWindSpeed changed from UNDEF to 0
2018-01-25 01:09:51.022 [vent.ItemStateChangedEvent] - CurrentWindGust changed from UNDEF to 4.8
2018-01-25 01:09:51.023 [vent.ItemStateChangedEvent] - CurrentPressure changed from UNDEF to 1016
2018-01-25 01:09:51.024 [vent.ItemStateChangedEvent] - CurrentDewPoint changed from UNDEF to 7
2018-01-25 01:09:51.025 [vent.ItemStateChangedEvent] - CurrentFeelingTemperature changed from UNDEF to 9
2018-01-25 01:09:51.026 [vent.ItemStateChangedEvent] - CurrentPrecipitationHour changed from UNDEF to 0
2018-01-25 01:10:10.169 [vent.ItemStateChangedEvent] - ForecastTodayConditions changed from UNDEF to Regen
2018-01-25 01:10:10.178 [vent.ItemStateChangedEvent] - ForecastTodayMinTemperature changed from UNDEF to 6
2018-01-25 01:10:10.190 [vent.ItemStateChangedEvent] - ForecastTodayMaxTemperature changed from UNDEF to 10
2018-01-25 01:10:10.194 [vent.ItemStateChangedEvent] - ForecastTodayProbaPrecipitation changed from UNDEF to 90
2018-01-25 01:10:10.198 [vent.ItemStateChangedEvent] - ForecastTodayPrecipitationDay changed from UNDEF to 15
2018-01-25 01:10:10.201 [vent.ItemStateChangedEvent] - ForecastTodaySnow changed from UNDEF to 0.0
2018-01-25 01:10:10.205 [vent.ItemStateChangedEvent] - ForecastTodayMaxWindSpeed changed from UNDEF to 16
2018-01-25 01:10:10.208 [vent.ItemStateChangedEvent] - ForecastTodayAverageWindSpeed changed from UNDEF to 14
2018-01-25 01:10:10.256 [vent.ItemStateChangedEvent] - ForecastTodayIcon changed from UNDEF to raw type (image/gif): 1730 bytes
2018-01-25 01:20:29.545 [hingStatusInfoChangedEvent] - 'weatherunderground:weather:local' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): An error occurred while running the Weather Underground request.
2018-01-25 01:20:29.574 [vent.ItemStateChangedEvent] - CurrentConditions changed from Teils Wolkig to UNDEF
2018-01-25 01:20:29.579 [vent.ItemStateChangedEvent] - CurrentTemperature changed from 9.1 to UNDEF
2018-01-25 01:20:29.581 [vent.ItemStateChangedEvent] - CurrentRelativeHumidity changed from 86 to UNDEF
2018-01-25 01:20:29.582 [vent.ItemStateChangedEvent] - CurrentWindDirection changed from Süd-Südwest to UNDEF
2018-01-25 01:20:29.584 [vent.ItemStateChangedEvent] - CurrentWindSpeed changed from 0 to UNDEF
2018-01-25 01:20:29.585 [vent.ItemStateChangedEvent] - CurrentWindGust changed from 4.8 to UNDEF
2018-01-25 01:20:29.587 [vent.ItemStateChangedEvent] - CurrentPressure changed from 1016 to UNDEF
2018-01-25 01:20:29.589 [vent.ItemStateChangedEvent] - CurrentDewPoint changed from 7 to UNDEF
2018-01-25 01:20:29.591 [vent.ItemStateChangedEvent] - CurrentFeelingTemperature changed from 9 to UNDEF
2018-01-25 01:20:29.595 [vent.ItemStateChangedEvent] - CurrentPrecipitationHour changed from 0 to UNDEF
2018-01-25 01:20:29.600 [vent.ItemStateChangedEvent] - ForecastTodayConditions changed from Regen to UNDEF
2018-01-25 01:20:29.602 [vent.ItemStateChangedEvent] - ForecastTodayMinTemperature changed from 6 to UNDEF
2018-01-25 01:20:29.607 [vent.ItemStateChangedEvent] - ForecastTodayMaxTemperature changed from 10 to UNDEF
2018-01-25 01:20:29.609 [vent.ItemStateChangedEvent] - ForecastTodayProbaPrecipitation changed from 90 to UNDEF
2018-01-25 01:20:29.613 [vent.ItemStateChangedEvent] - ForecastTodayPrecipitationDay changed from 15 to UNDEF
2018-01-25 01:20:29.615 [vent.ItemStateChangedEvent] - ForecastTodaySnow changed from 0.0 to UNDEF
2018-01-25 01:20:29.618 [vent.ItemStateChangedEvent] - ForecastTodayMaxWindSpeed changed from 16 to UNDEF
2018-01-25 01:20:29.620 [vent.ItemStateChangedEvent] - ForecastTodayAverageWindSpeed changed from 14 to UNDEF
2018-01-25 01:20:29.627 [vent.ItemStateChangedEvent] - ForecastTodayIcon changed from raw type (image/gif): 1730 bytes to UNDEF
2018-01-25 01:30:30.167 [hingStatusInfoChangedEvent] - 'weatherunderground:weather:local' changed from OFFLINE (COMMUNICATION_ERROR): An error occurred while running the Weather Underground request. to ONLINE
2018-01-25 01:30:30.174 [vent.ItemStateChangedEvent] - CurrentConditions changed from UNDEF to Teils Wolkig
2018-01-25 01:30:30.177 [vent.ItemStateChangedEvent] - CurrentTemperature changed from UNDEF to 8.9
2018-01-25 01:30:30.180 [vent.ItemStateChangedEvent] - CurrentRelativeHumidity changed from UNDEF to 86
2018-01-25 01:30:30.182 [vent.ItemStateChangedEvent] - CurrentWindDirection changed from UNDEF to Süd-Südwest
2018-01-25 01:30:30.185 [vent.ItemStateChangedEvent] - CurrentWindSpeed changed from UNDEF to 0
2018-01-25 01:30:30.189 [vent.ItemStateChangedEvent] - CurrentWindGust changed from UNDEF to 8.0
2018-01-25 01:30:30.192 [vent.ItemStateChangedEvent] - CurrentPressure changed from UNDEF to 1016
2018-01-25 01:30:30.194 [vent.ItemStateChangedEvent] - CurrentDewPoint changed from UNDEF to 7
2018-01-25 01:30:30.198 [vent.ItemStateChangedEvent] - CurrentFeelingTemperature changed from UNDEF to 9
2018-01-25 01:30:30.201 [vent.ItemStateChangedEvent] - CurrentPrecipitationHour changed from UNDEF to 0
2018-01-25 01:30:49.138 [vent.ItemStateChangedEvent] - ForecastTodayConditions changed from UNDEF to Regen
2018-01-25 01:30:49.154 [vent.ItemStateChangedEvent] - ForecastTodayMaxTemperature changed from UNDEF to 10
2018-01-25 01:30:49.156 [vent.ItemStateChangedEvent] - ForecastTodayMinTemperature changed from UNDEF to 6
2018-01-25 01:30:49.157 [vent.ItemStateChangedEvent] - ForecastTodayProbaPrecipitation changed from UNDEF to 90
2018-01-25 01:30:49.159 [vent.ItemStateChangedEvent] - ForecastTodayPrecipitationDay changed from UNDEF to 15
2018-01-25 01:30:49.160 [vent.ItemStateChangedEvent] - ForecastTodaySnow changed from UNDEF to 0.0
2018-01-25 01:30:49.161 [vent.ItemStateChangedEvent] - ForecastTodayMaxWindSpeed changed from UNDEF to 16
2018-01-25 01:30:49.162 [vent.ItemStateChangedEvent] - ForecastTodayAverageWindSpeed changed from UNDEF to 14
2018-01-25 01:30:49.191 [vent.ItemStateChangedEvent] - ForecastTodayIcon changed from UNDEF to raw type (image/gif): 1730 bytes
2018-01-25 01:41:08.394 [hingStatusInfoChangedEvent] - 'weatherunderground:weather:local' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): An error occurred while running the Weather Underground request.
2018-01-25 01:41:08.430 [vent.ItemStateChangedEvent] - CurrentConditions changed from Teils Wolkig to UNDEF
2018-01-25 01:41:08.446 [vent.ItemStateChangedEvent] - CurrentTemperature changed from 8.9 to UNDEF
2018-01-25 01:41:08.449 [vent.ItemStateChangedEvent] - CurrentRelativeHumidity changed from 86 to UNDEF
2018-01-25 01:41:08.450 [vent.ItemStateChangedEvent] - CurrentWindDirection changed from Süd-Südwest to UNDEF
2018-01-25 01:41:08.451 [vent.ItemStateChangedEvent] - CurrentWindSpeed changed from 0 to UNDEF
2018-01-25 01:41:08.453 [vent.ItemStateChangedEvent] - CurrentWindGust changed from 8.0 to UNDEF
2018-01-25 01:41:08.454 [vent.ItemStateChangedEvent] - CurrentPressure changed from 1016 to UNDEF
2018-01-25 01:41:08.455 [vent.ItemStateChangedEvent] - CurrentDewPoint changed from 7 to UNDEF
2018-01-25 01:41:08.456 [vent.ItemStateChangedEvent] - CurrentFeelingTemperature changed from 9 to UNDEF
2018-01-25 01:41:08.457 [vent.ItemStateChangedEvent] - CurrentPrecipitationHour changed from 0 to UNDEF
2018-01-25 01:41:08.458 [vent.ItemStateChangedEvent] - ForecastTodayConditions changed from Regen to UNDEF
2018-01-25 01:41:08.460 [vent.ItemStateChangedEvent] - ForecastTodayMinTemperature changed from 6 to UNDEF
2018-01-25 01:41:08.461 [vent.ItemStateChangedEvent] - ForecastTodayMaxTemperature changed from 10 to UNDEF
2018-01-25 01:41:08.462 [vent.ItemStateChangedEvent] - ForecastTodayProbaPrecipitation changed from 90 to UNDEF
2018-01-25 01:41:08.463 [vent.ItemStateChangedEvent] - ForecastTodayPrecipitationDay changed from 15 to UNDEF
2018-01-25 01:41:08.464 [vent.ItemStateChangedEvent] - ForecastTodayMaxWindSpeed changed from 16 to UNDEF
2018-01-25 01:41:08.465 [vent.ItemStateChangedEvent] - ForecastTodayAverageWindSpeed changed from 14 to UNDEF
2018-01-25 01:41:08.466 [vent.ItemStateChangedEvent] - ForecastTodaySnow changed from 0.0 to UNDEF
2018-01-25 01:41:08.467 [vent.ItemStateChangedEvent] - ForecastTodayIcon changed from raw type (image/gif): 1730 bytes to UNDEF

And on and on and on it goes…


Weatherunderground binding undef