Custom widget: Current Weather

Hi @zacofunny,

thanks for sharing! Have you a sample json for widget or is the default iframe widget the best solution?

Hi,
As im new to this material of openhab and habpanel, i have a little trouble of getting it done for my location in Germany.
As for now, im using the weather binding on openHAB 2.2.0~20171211135820-1 (Build #1130).
Files Look like this:

And with this, the Panel looks like this:

As u can see: I already put the icons.jar in the right folder, but the translation doesnt work and i think its not the right temperature.

Do you have any hints for me to get this done?

Best regards,
Chris

Hi.

I create the widget in the HABPanel and the temperature is correctly displayed. But I have some issues with the icons.

Can anyone tell me the correct path for the icons-file in openhab 2.2

I run a RaspberryPi 2 with openhabianpi.

Many thanks in advance.

I jumped to OH2.2 and I need the also the right path to the Icons.

Thanks

Installing the icons from above links works and leads to a working widget, but this I find in the logs:

017-12-21 09:02:20.492 [ERROR] [org.openhab.ui.iconset.climacons    ] - [org.openhab.ui.iconset.climacons(232)] unbind method [removeTranslationProvider] not found; Component will fail
2017-12-21 09:02:20.497 [ERROR] [org.openhab.ui.iconset.climacons    ] - [org.openhab.ui.iconset.climacons(232)] unbind method [removeTranslationProvider] not found

OK, I drop the icons.jar in

/usr/share/openhab2/addons

and now the weather icon is showed.

But now my location name is not displayed. What can I do?

1 Like

Hi

I´m having problems with the display of the temperatures. I get a strange A-character directly efter the temperature. Should be 3 degrees Celsius. I´m using Weather underground binding and the temperature in the Paper UI control panel displays 3.0 degrees.

weather

Solved it, found the A-character in the code, before the degree-character. Deleted it and it´s gone!
Strange why it was there from the beginning?

Where do the .map files go?

In the transform folder: https://docs.openhab.org/addons/transformations/map/readme.html

1 Like

The icons are doing this in Chrome now for me. They rotate around the top centre point rather than the middle.

Has anyone else found this and found a solution?

Thanks!

Anyone?

Thanks!

There is a ticket in GitHub with a potential solution. I haven’t tried it yet, but have the same issue.

Thanks, I didn’t see that. I suppose every icon file needs editing separately with the fix (unless someone’s already done it!)

I have the latest openhab2 (1.4.1) on R Pi 3 and most recent iconset (org.openhab.ui.iconset.climacons-2.3.0-SNAPSHOT.jar) in addons. Items defined as in instalation detail and weather.cfg is in place, set to Yahoo and my WOID. Unfortunatelly the widget does not work. Items returns no value. I have nulls only.

Does someone of you experienced similar issue? Mayby this is related to the OH2 1.4.1 release? I thing my configuration is ok.

This has solved my issue:

Where i cac create API key for Wundergorund Widget?

Hi all.
Firstly, great to see so many people helping to get the animated climacons working.
I have them installed and working great. I just need advice to how to change the color of the icons. Can anyone point me somewhere to how to change the code?

Currently using:

<img width="100" style="filter: invert(60%) sepia(100%) hue-rotate(185deg) saturate(1000%);"
src="/icon/climacon?iconset=climacons&format=svg&state={{itemValue('CommonId').replace(' ','-') | lowercase }}" />

Thanks in advance!

map transformation file in turkish

weather_tr.map

thunder=gök gürültüsü
storm=fırtına
rain-and-snow=yağmur ve kar
rain-and-sleet=yağmur ve sulu kar
snow-and-sleet=kar ve sulu kar
freezing-drizzle=donma çiselemesi
few-showers=Sağanak yağmur
freezing-rain=dondurucu yağmur
rain=yağmur
snow-flurries=kar yağışı
light-snow=hafif kar
blowing-snow=Kar fırtınası
snow=Kar
sleet=sulu kar
dust=kum fırtınası
fog=sis
wind=rüzgar
cold=soğuk
cloudy=bulutlu
mostly-cloudy-night=çoğunlukla bulutlu gece
mostly-cloudy-day=çoğunlukla bulutlu gün
partly-cloudy-night=parçalı bulutlu gece
partly-cloudy-day=parçalı bulutlu gün
clear-night=açık gece
sunny=güneşli
hot=sıcak
scattered-thunder=dağınık gök gürültüsü
scattered-showers=dağınık sağanak yağışlar
thundershowers=Ağır fırtınalar
snow-showers=Kar yağışı
scattered-thundershowers=dağınık Ağır fırtınalar
unknown=bilinmeyen

days_tr.map

Monday=Pazartesi
Tuesday=Salı
Wednesday=Çarşamba
Thursday=Perşembe
Friday=Cuma
Saturday=Cumartesi
Sunday=Pazar

pressure_tr.map

up=artar
down=azalır
equal=değişiklik yok

season_tr.map

Spring=Bahar
Summmer=Yaz
Autumn=Sonbahar
Winter=Kış
-=veri yok

tr.map

CLOSED=kapalı
OPEN=açık
undefined=tanımsız
-=veri yok
NULL=veri yok

humidex_tr.scale

-=veri yok
[-40,20]=ilgisiz
[20,29]=rahat
[29,38]=hafif rahatsızlık
[38,45]=çabadan kaçın
[45,54]=tehlikeli
[54,100]=sıcak çarpması riski

Hi @kubawolanin

The link to download the file to place in /addons/ does not work anymore, could you updated it?

Thanks

2 Likes