Weather Underground widget with forecast

widgetgallery
weatherunderground
Tags: #<Tag:0x00007f51df264098> #<Tag:0x00007f51df263e90>

( . ) #186

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:


(Markus Wolters) #187

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)


(Elie Hanna) #188

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 !!


(Matthias P) #189

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?


(Neil) #190

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.


(Bastiaan van Haastrecht) #191

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…


(Neil) #192

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


(Neil) #193

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]}}

(Justin Randall) #194

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.


(Tom) #195

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


(Tom) #196

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


(The Squid) #197

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


(Tom) #198

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.


(Barnecke) #199

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?


(Bastiaan van Haastrecht) #200

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?


(david) #201

I’d vote for OpenWeatherMap


(jamac) #202

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?


(Bastiaan van Haastrecht) #203

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


(Ahnyerkeester) #205

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!!!


(Ahnyerkeester) #206

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.