Weather Underground widget with forecast

widgetgallery
weatherunderground
Tags: #<Tag:0x00007f0152a99048> #<Tag:0x00007f0152a98788>

(fandy) #22

Hi

Im able to get everything working, however the item

String Weather_ConditionId “ConditionId [%s]” {channel=“weatherunderground:weather:local:current#iconKey”}

is not returning any value where everything else does, anything i could have missed?


(The Squid) #24

Did you see this above?


(fandy) #25

ahh i missed that thanks


(The Squid) #26

And this makes it even more confusing…

If I swap the name of the image for another file that I have placed in that same directory…it works.

Changing wind.png to video2.jpg works…changing back to wind.png does not.

image


(fandy) #27

Hei do u know where to find that #1212 build?

And for your problem can u use ur browser to inspect what is the image url it tries to load? from there u can troubleshoot


(The Squid) #28

No, I’ve been looking to see where Eclipse Smart Home stores their builds…

I’m using the inspector to check the images…what’s weird is the top one fails, but the one where I used one of my images works fine…same file path.

image


(fandy) #29

did you click on that and open in a new tab of your browser? check the permission of your file.


(The Squid) #30

yup, no permission issues at all it’s only an issue in HabPanel


(fandy) #31

I dont think its a HaBpanel issue, the image tag and the url is properly populated. just the image url isnt accessible.


(The Squid) #32

The browser component within habpanel is not rendering the png. It will render a jpg.


(fandy) #33

Cool at least u know whats the problem then.

Anyone could tell me where i can find build #1212 and download the jar binding?


(The Squid) #34

And Success…at least on one part!!
image

It seems like the images I had downloaded from GITHUB were corrupted somehow and HabPanel would not display them, Chrome would however. On a wild hair I decided to download the assets again and they popped right up. Now I need to figure out why I’m not getting the weather icons…it’s probably due to not having the latest version of the binding…now just need to see where to grab it from as I don’t see it on cloudbees.


(The Squid) #35

And now…total success!!!

image

@fandy I found the location of the latest build of the weatherunderground binding.

  1. Go to https://openhab.ci.cloudbees.com/job/openHAB-Distribution/

  2. Download the openhab-addons-2.3.0-SNAPSHOT.kar file which is just a zip archive of the latest build’s bindings.

  3. Navigate to the following path inside the zip file. \repository\org\eclipse\smarthome\binding\org.eclipse.smarthome.binding.weatherunderground

  4. Inside you will find the latest version of the binding, which you can copy into your ADDONS folder. You must remove the old binding via PaperUI first, you also need to delete your current thing. Reboot, add the thing back in and you should be good to go.

Squid


(Bastiaan van Haastrecht) #36

If you download the latest openhab-2.3.0-SNAPSHOT.tar.gz starting from version #1212, the updated Weather Underground binding is included. Otherwise use @KidSquid steps to update the binding itself.


(Lolodomo) #37

Note that using a recent compiled binding in an old distribution could of course lead to incompatibility. But it could work in case there were not too many changes in ESH core.


(fandy) #38

Congratulation Squid, stay indoor its gonna be thunderstorm next 3days. =P

Btw how do i unzip the .kar file


(fandy) #39

FINALLY I GOT IT WORKING, for those who is having some issues i have:

  1. Weather icon is not showing, even though u got all the icon path correct, follow @KidSquid instruction by unzip the file using any program like “The unarchiver” for mac
  2. Today shows in some different language you need to update the widget itself, and hardcode it

(Jan) #40

Hi,

since I really like this widget, but had to update it quite a bit to fit to my local configuration, I have updated it to allow widget-level configuration of the items. Thought that might be interesting for others as well. When placing the widget, you can configure all items that are being displayed, the static directory, as well as the icon family (white or black). For installation, please follow the same logic as in @bastiaan_van_h’s post above, except that you do not need to configure the icons and ServerPath in the code (in the config parameters after placing the widget instead). The only thing that needs to be adapted/localized in the code are the names of the weekdays.

weather_widget

The tricky thing will be the icons… I found the easiest solution to edit the css file and rename the css definition to reflect the localized condition description. As an example, for German I would change “partlycloudy” to “teils_wolkig” (note, the widget code will replace space with underscore).

.wu-white.wu-partlycloudy { background: url(/static/weather/white/svg/partlycloudy.svg); }

.wu-white.wu-teils_wolkig { background: url(/static/weather/white/svg/partlycloudy.svg); }

Hope this is of any use for anybody else.

weather-underground-localisation.widget.json (8.8 KB)


(Bastiaan van Haastrecht) #41

Thank you.

You can change the language of the Weather Underground response in the Thing, and HABpanel follows the Openhab system localization. This way everything in the widget is auto localized except for the iconKey, which needs to be English for correct alignment with the weather-underground-icon css. No need for translations or so.


(Timur) #42

Hello!
How i can change language of day names?
I had install system with EN locale, but then change on RU, but it not help (
locale in thing config work fine. Problem only with day names (not with “today”, this i have hardcoded easy) (

P.S. Test locale in openhab:
2018-02-21 19:56:30.008 [INFO ] [clipse.smarthome.model.script.locale] - ru_RU

It’s not help (