OpenWeatherMap-Alerts-Weather-Driver

See this post for a walk through on how to add the built-in tiles this driver provides. You may also be referring to the additional formatting that that some of my screenshot have because I use have use Smartly to customize the CSS formatting of some of my dashboards.

Hope that helps.

Thanks - I thought it may have been an error!!

I have this displayed in a Node Red dashboard, so this must be how Maker API hands off the data.
If I make the tile smaller, it doesn't reduce in size. Just means i need to scroll to see whole image.
In saying that, i'm sure there are ways to reduce the tile size without the need for scrolling.

I will also look at how to change background image colour to see icons!!

@Matthew first of all thanks for the great driver, it is absolutely fantastic!
I would like to ask if it is possible to add also "illuminated" to "myTile" (current day forecast) ?
Thanks in Advance

It is possible, but not something I will do in the published version. The tile already exceeds the maximum characters of 1,024 in some circumstances. There is coding to help when that happens, but it does limit the formatting and functionality (removes hyperlinks) of the tile. You can add a standalone dashboard tile with the attribute of 'illuminated' (or any other available attribute) to show that result. That is what I do.

@Matthew thanks for the information and fully understand. I already have a tile with attribute just was thinking to have everything in one tile.

I keep getting the following error in logs

java.lang.NullPointerException: Cannot invoke method toBigDecimal() on null object on line 845 (updateLux)

Make sure you are the latest version, V0.4.6 11/06/2020. There is no toBigDecimal() on line 845 in the current version of the code.

I'm getting this error when I check for updates in Package Manager:

The driver name changed to remove 'NWS' from the name back in V0.3.2. There were instructions provided for HPM users after many updates subsequent to that change, but I have stopped including them after multiple additional updates were released. Those instructions are below:

==============================

The suggested updated method with HPM is to do a new install with the new driver (without the 'NWS' in the filename. Once installed, go to your virtual device and update the driver to use the new driver. You can use HPM to delete the old driver as follows: Do an 'Uninstall. If there are two drivers listed with the same name, click on the first "OpenWeatherMap-Alerts Weather Driver". The app asked if I wanted to delete "OpenWeatherMap- NWS -Alerts Weather Driver". Should you pick the wrong one (the one WITHOUT 'NWS' in the name), cancel and retry with the other selection.

Thanks for your speedy reply! I must have missed the last step as I didn't actually have the NWS driver installed or in use. But "deleting" it seems to have done the trick, even though it wasn't actually there. ¯_(ツ)_/¯ Thanks again. My bad.

@mathew-
Just wanted to report the following error. Only received it once so far....

2020-11-25 01:23:01.101 pm errorjava.lang.NullPointerException: Cannot invoke method toInteger() on null object on line 811 (updateLux)

Thanks. I'll put in some more logic to correct for a null value in the next release to try to catch that.

1 Like

Thank you! And thanks for all of your hard work with this project!

[UPDATED]
v0.4.7
11/26/2020

Changes:

1 Like

Thanks for the Update :blush:

Not sure why, but the 3 day tile is displaying thunderstorm looking icons.... Here's a screenshot from the driver and another one from the Android wx app that uses data from weather.com... it's forecasted to be sunny for the next several days with 0% precip.

The icon displayed is driven by the condition code returned by OWM. I did see where I had mapped a 'Thunderstorm' icon to to condition code 801, which is 'Few clouds'. I updated the code to show this instead:
image

I did NOT update the version number. To get this minor icon mapping change, you can do a 'Repair' if you use HPM. If you do not use HPM, open the code and 'Import' the new code.

Thank you!

2 Likes

Thanks! I tried a "Repair" but still have the same Thunderstorm icons showing. I can manually import the new code, but I wanted to let you know that the HPM Repair did not work.

!!UPDATE: Please disregard-- I guess it took a few minutes, but the latest data refresh is now displaying the correct icons.

Icons are broken on the driver page...

image

Wondering what I'm doing wrong, or need to update to resolve this. Using Poll Data and Refresh does not help.

Thanks!

Icons are pulled from Github, unless you changed the location default. Make sure you are not blocking access to 'https://tinyurl.com/y6xrbhpf/' or to 'https://raw.githubusercontent.com/HubitatCommunity/WeatherIcons/master/' (which is the location that the tinyurl location points to). You can check this by putting those URLs in your browser followed by a icon file ame (e.q. 'https://raw.githubusercontent.com/HubitatCommunity/WeatherIcons/master/39.png') The icon should show in your browser.
image
If not, you are blocking access and that location and that will need to be corrected.

1 Like