Weather Underground widget with forecast

If Yahoo supports your language, you can set your language in the services/weather.cfg file.
https://docs.openhab.org/addons/bindings/weather1/readme.html#location-configuration

It would be nice if you post your CSS file here, so it can be reused :slight_smile:

Beside the language problem (I already used my correct country code) I had more issues with yahoo as provider. Right now Iā€™m trying openweathermap, so my css is only half done. But maybe a starting point for somebody else :slight_smile:

wu-icons-style.min.css (35 KB)

Hello,

Thank you for this great binding, itā€™s almost working normally except a small issue which is the icons when the current condition is composed by 2 words.

For example Partly Cloudy, Mostly Cloudy, etcā€¦ the icons are not showing.

Noting that when the condition is clear, rain, etcā€¦ the icons are showing properly.

Please advise !!

thanks for the widget, I finally got it up and running.
how can I choose the iconsize so it will fit my android phone?
grafik
I can see that icons are available in different sized, but how do I get the widget to choose the right one?
thx
EDIT: found out how to change the icon size:

<i class="wu wu-{{IconSet}} wu-64 wu-{{itemValue('Weather_ConditionId')}} current-icon pull-right"></i>

changed wu-256 to wu-64 shows resized imagesā€¦
if I want to change the font size I need to edit h5 to h7ā€¦ the higher the number the smaller the font???

<h5><img style="height:16px;" src="{{ServerPath}}/images/humidity.png"/> {{itemValue('Weather_Humidity')}} %</h5>

shouldnĀ“t that somehow work automatically?

my new problem is this:
grafik
forecast is from top to downā€¦
someone knows how to change this?

is there a way to get the max & min forecast temperatures in HABpanel without each of them having the ā€˜Ā°Cā€™ suffix?

iā€™m running v.2.4-M3, and have updated my wunderground thing to the new bridge & location format. Iā€™ve also cleared the cache and restarted with no change.

Iā€™ve tried a replace with the following code that someone suggested, but it doesnā€™t work for displaying the item value and instead displays itself exactly as entered

{{'%.0f' | sprintf:itemValue('W_F_0_Temp_Max').replace('Ā°C',''}}

Does anyone have any ideas, please? Thanks in advance.

Yes, change your items file and remove the degrees:

Change this:

Number		Weather_Temp_Min0		"Temperature min [%.2f Ā°C]"		{channel="weatherunderground:weather:local:forecastToday#minTemperature"}

To

Number		Weather_Temp_Min0		"Temperature min [%.2f]"		{channel="weatherunderground:weather:local:forecastToday#minTemperature"}

Extā€¦

thanks, but Iā€™ve already done that (and cleared the cache) to no effect.

I was supplied a working answer in another topic, but felt it would be good to post it here tooā€¦

{{'%.0f' | sprintf:itemState('Temp_Max0').split(' ')[0]}}

Great work and thank you for putting together this widget! Unfortunately, It looks like Weather Underground will be phasing out their free API by the end of this year. They plan to announce more details about a replacement API by October. Hopefully we will be able to continue to use this widget one way or another in the future.

I would really appreciate, if you would share your widget!

Weather Underground isnā€™t free anymore. Is there a way to switch to another provider?

The link to download the widget is in the first post of the thread.

Iā€™m looking for the one of Corban987

Update:
Iā€™ve found it on GitHub: https://github.com/Corban987/OpenHab-Weather-Widget-12345/tree/master/weather12345
But it also uses Weather Underground which isnā€™t free anymore.

I added the WU binding and link to existing weather-items, but the widget in HABPanel is still empty. Do you have any recommendation, how you have managed it?

1 Like

All, Iā€™m willing to rewrite the widget to fit to another weather binding. Which binding do you all prefer? Which one is currently most used?

Iā€™d vote for OpenWeatherMap

Iā€™d really like to get this widget working but am struggling. Iā€™ve got the latest version of OH2 on an Openhabian RPi 3 B+. I installed the WU binding via PaperUI and itā€™s working fine. I have a Local Weather thing.

I installed the widget via HabPanel and created the .items file. The widget seems to be working fineā€¦ accept there are no icons/images!

My Openhabian RPi has the following folder structure: /openHAB2-config/html so I copied the weather-underground-icons-master folder into the html folder and set the serverpath to /openHAB-conf/html/weather-underground-icons-master/dist. I copied the three png files into /openHAB-conf/html/weather-underground-icons-master/dist/imagesā€™.

I cleared the cache/temp files and rebooted OH2. But donā€™t have any WU icons or png images.

Can anyone tell me what Iā€™m doing wrong?

Iā€™ve created a new weather widget based on this one but working with the OpenWeatherMap binding. You can use a free API key with this one: OpenWeatherMap widget for HABPanel

1 Like

I had this widget working once but when I tried to set it up again after a clean OpenHAB2 install, I can no longer get it working. This is what Iā€™m seeing:

I have the WeatherUnderground installed and configured correctly and am receiving weather data:

Iā€™ve followed the widget set up instructions exactly a number of times on clean OpenHAB 2.4.0 installs but Iā€™m not getting anywhere. I tried most of the recommended tweaks and fixes in this thread to no avail. What could I be missing?

Should the localization settings be populated? Mine donā€™t seem to be but I donā€™t recall having to touch them when the widget did work:

HELP!!!

Just for fun I tried it again. Same result. This time I put the *.items file in first. In the instructions, when you say

Add and configure these items:

Do you mean add them to an *.items file and put that file in conf/items or did you mean something else?

Oh! I just noticed that if I edit Local Weather and click on one of the channels it says ā€œChannel unlinked.ā€ When I click on it again to link it, it says ā€œERROR: 404 - not foundā€ and the log shows:

[temChannelLinkRemovedEvent] - Link 'weatherunderground_weather_local_current_conditions => weatherunderground:weather:local:current#conditions' has been removed.