OpenWeatherMap widget for HABPanel

Hi there, anyone still experiencing problems with the “small” icons .png in /images.

I’m running Openhab on Raspbian (RPi 3B+) and I couldn’t even open the .png files in file explorer on my pi!
It showed me a message saying file format was corrupt.

What I did is this:

  • Open png files on Windows with Irfanview (maybe other program works too)
  • Save the images as .png again.
  • Copy to destined folder at Openhab on my pi
  • reloaded twice → worked

You need to expand the widget to you resolution.

Try to edit the json file and remove these two parts:

tborder-right: 1px solid #d7d7d7;
tborder-left: 1px solid #d7d7d7;

You can change the dimensions of each widget yourselfs. Go into edit mode and drag the right bottom corner.

You are right, the API returns m/s not km/h. I have corrected the items file.

Hello everyone,
I picked the free API und installed the habpanel widget.
But I only get 24 h forecast?
I am runnig OH 3 an raspberry und I can´t add more hours:

Hi I have tried running though the guide but for some reason the items are not linking to the channels.

so its showing null on the widget

I have changed the id in the items file and put it in /etc/openhab2/items

Might just be me not being so familiar with openhab, hope you can help.

Hello Everybody

I’ve have a different trouble: the widget OWM is empty.
I’m using OH3.
I followed the instruction.
The “local weather and forcast” thing is running and I think that all items are correctly linked to the channels because they have an updated value instead of NULL.

I’ve copied images folder, the owm.controller.js file and weather-icons-master folder in /etc/openhab/html/openweathermap. I changed the ownner of the file in the user openhab .

I imported the widget OWM in HABPanel, I tryed to edit and save it, but the widget appears always empty.

Could somebody suggest any possible reasons?

Same for me… Oh3, all placed in right directories, things working… If I add a dummy tile with direct link(ex temp) it works, but widget is always empty

I got the linking to work, but are still just seeing a empty widget. looking in pagerui I see all the data.

I solved. The problem was in the download of owm.controller.js file.
I’ve downloaded it again and overwrited it.

Now, I enjoy the OpenWeatherMap widget. Thanks Bastiaan for your job.

2 Likes

Hi There,

stupid question: where to put the .js-file in OH3? :open_mouth:

hmmm… I have now created an archive “openweathermap” in etc/openhab/html and put the js-file inside. It started working, but only partially:

What did I do wrong?

Hi,
I have same problem.
The “config.show_current” is empty, so it dosen’t work.

Hello together,

I am new here and new to openHAB. I like the OpenWeatherMap widget solution and want to import and configure that on my openHAB. I followed the installiation guide and can see all item in my Paper UI:

My folder structure on my openHAB looks as expected But as I put the corresponding widget to my HABPanel I see nothing. What could be the issue? Thanks for your help!

Best,
Martin

Hi Everyone,

I’m new here too, but I think I worked out that a possible solution to post #289 might come from the comment in post #287. I believe this is saying to make a directory called “openweathermap” in a different location than the OP has listed on their github page. I’m running OH3 with OWM 3 (on a Raspberry Pi 3 running Raspian stretch) and in order to solve the blank widget issue, I did the following utilizing the command line and the information in this thread:

  • Follow all instructions from the OP’s git hub page for the installation of the widget, but change the location of where you copy the files according to the next points.
  • Create a new directory “openweathermap” inside openhab/html/ instead of inside openhab/conf/html.
  • copy the owm.controller.js file and the weather-icons-master and images directories indicated by the OP into the openhab/html/openweathermap directory.
  • refresh the panel and see if it worked

I hope this might fix the partial and/or blank widget issue since it seemed to work for me.

Many thanks to Bastiaan for making this wonderful resource!
Cheers!

1 Like

Hi,

I put the files into the “openhab-conf” samba folder. That meens, that I copied the needed files into your proposed directory: “/etc/openhab/html/openweathermap”, but it does not work as in many posts described.

So your solution is installed on my Pi …

Hi, i copied the “owm-widget.items”-file from the descriped “/openweathermap”-folder into the “/items”-folder and than it worked.

Hi,
On the PC the widget works perfect, but on the IPad mini i use as Panel the widget is only white. Can someone help me?

Thank you very much for the widget. It’s working out of the box and looks great!

Is there a possibility that nighttime icons will also be used in the future? Or did I miss something within the configuration?

Best regards

EDIT: Have you thought about using the onecall api data for the 4-day forecast? The api delivers the daily minimum and maximum values, so you don´t need a calculation (and it is a bit more precise :wink: ). You only need a second thing.