OpenWeatherMap-Alerts-Weather-Driver

Thanks!

This URL works: https://raw.githubusercontent.com/HubitatCommunity/WeatherIcons/master/39.png
image

However, this does not: https://tinyurl.com/y6xrbhpf/

I'm not explicitly blocking tinyurls that I'm aware of, but I'll poke around and see if I can figure out what blocking. Oddly, this worked previously so not sure what has changed.

Settings:
image

Changed the icon settings url to the full base URL and it's working. Thanks!
image

Could be Pi-Hole, virus/malware protection etc... I recommend you whitelist tinyurl.com to work with this driver. You can use the direct URL, but that adds 42 characters for each URL and there are eight icons on the myTile. So that is 336 more character closer to the 1,024 maximum tile character limitation. That is why I use tinyurl.com, to save those characters for more data/formatting. The code will reduce/eliminate icons if the 1,024 characters are exceeded.

Thanks for that additional info.

Yup - I have a couple of blockers in place, starting w/a router-based DNS adblock/blacklisting setup. I have a feeling it likely is that one I'll have to update. Just need my wife to decide she wants to go off and do something on her own for a bit and I'll have time... :wink:

Ended up easiest approach was to create a bitly shortened URL - that works/sneaks through whatever I have that is blocking tinyurl. :slight_smile:

Just wanted to double check if anyone is having issues with weather alerts being reported? I'm running v0.4.7 and am under a Tornado Watch right now, but this keeps saying "No current weather alerts for this area" and it updates every 5 min.

I still have Dark Sky running on my Hubitat at the moment and I know they are not the same, but Dark Sky is displaying the Tornado Watch correctly.

I understand why the US centric NWS alerts were replaced by the OWM alerts. However, I received a Tornado Watch alert on my phone and email around 13:10 EST and as of now at 13:48, there is nothing showing in OWM.

I understand the app reports what OWM provides and what I'm asking for is an option allowing alerts from NWS, any other available source that could be coded, or OWM.

NWS info
** Hazardous Weather Conditions

OWM Info

  • alert : No current weather alerts for this area
  • alertDescr : No current weather alerts for this area
  • alertSender :
  • alertTile : No Weather Alerts for xxxxxx, NJ
    No current weather alerts for this area
    @ 13:48

Update: just noticed @maxq10's posting, same issue

The app does look like it is reporting what the OWM API is providing. Unfortunately the OWM API is not reporting any weather alerts (at least around @arnb's location) when weather.gov is reporting weather alerts. The Tornado Watch was issued at 1:11 PM EST until 5:00 PM EST and as of my writting this, over a hour and 30 minutes later) it is still not showing on OWM?

I don't know if OWM is having issues right now, or if it is just consistently unrealiable?

I am reluctant to offer an option to use weather.gov because: 1) of the added complexity in both programming and debugging that introduces; 2) I never got the weather.gov alerts working flawlessly before I moved away from that source (which was part of the motivation to move away from that source); and 3) it adds no value to anyone outside of the United States (and there are quite a few users of this driver from outside of the United States).

Please keep reporting instances such as these, or if they improve. Hopefully OWM improves their service and the issue will go away. If it continues, ..... I will probably consider adding the options as @arnb has suggested.

1 Like

@arnb, Maybe complain to OWN directly about your findings (without necessarily talking about this app), they might have issues like @Matthew said and they are not even aware of it?

2 Likes

Reported the issue to OWM support.

A number of weeks ago I reported the NJ USA City link shows London, UK radar. That has not been fixed, so I'm not holding my breath waiting for an OWM fix to the latest issue. OWM weather alerts previously worked, however a missing Tornado alert gives me a lot of concern

I'm not in a Tornado prone area, but I can understand the concerns. At least this is not the main communication device for alerts, it's just another way to make sure you don't miss it.

I'm in NJ, USA, generally the state gets a few weak tornadoes per year. However, I'm home much of the time, and with my phone wandering to unusual locations in the house, or hiding in the coat pocket in the closet, I rely upon RM TTS based upon the OWM device's Current State Alert fields.

As with all things, a good backup plan is important.

1 Like

Installed @nh.schottfam's Noaa Weather Alert app until OWM corrects their USA NWS alert issue.

It immediately spoke the alert on my tablet with Fully, but it was unusually long winded due to the default selecting all the counties impacted and the alert covering a large geographic area. Adjusting the default message variables should correct this issue.

Just received (Nov 30, 2020 17:56EST ) a severe Thunderstorm warning, +1 on OWM app. It has a strange time on the alert in the OWM weather data and the link data shows +2, so I suspect OWM is having an issue with NWS alerts

Strange time info
Severe Thunderstorm Warning
Nov 30, 10:46pm - Nov 30, 11:15pm

...A SEVERE THUNDERSTORM WARNING REMAINS IN EFFECT UNTIL 615 PM.........

image

[UPDATED]
v0.4.8
12/01/2020

Changes:

  • Added ability to select the Weather Alert source (None/OWM/Weather.gov {US Only}).
    There is a new preference selection:
    image

Please note that the source weather.gov only provide alerts for locations within the United States.

4 Likes

This is fantastic! Thank you.

1 Like

@Matthew, I'm a user user from Canada. We you first supported alerts from Canada it worked great. No complaints. Now the last alert that came was in French. I know there are many ways this can screw up from my localization to the web call. Is there anything in the call about the language returned?

There is nothing in the poll request to the API that specifies language. If you look at the OWM API documentation, you can specify a language, but the driver does NOT do so. If this was reporting in English and that changed to French, then OWM must have changed their default for Canada to French as I did not make any changes in the driver that would have caused that.

If you wanted to force the language to English (or another language as described in the documentation link above), you should be able to by editing line 338 of the code from:
ParamsOWM = [ uri: 'https://api.openweathermap.org/data/2.5/onecall?lat=' + (String)altLat + '&lon=' + (String)altLon + '&exclude=minutely,hourly&mode=json&units=imperial&appid=' + (String)apiKey, timeout: 20 ]

to
ParamsOWM = [ uri: 'https://api.openweathermap.org/data/2.5/onecall?lat=' + (String)altLat + '&lon=' + (String)altLon + '&lang=en&exclude=minutely,hourly&mode=json&units=imperial&appid=' + (String)apiKey, timeout: 20 ]

Hope that helps. Thanks.

@Matthew
Thanks for the fast response. I am going to play around with this the next time there is a warning. And thanks for the documentation link.

[UPDATED]
v0.4.9
12/03/2020

Changes:

  • New tinyurl for icons. https://tinyurl.com/icnqz/ points to the same location as the previous tinyurl, but is three characters shorter. With nine icons in the myTile, that frees up 27 characters for other data/formatting. If you are updating you may want to copy the new tinyurl for the alternative icon location into your preferences as it will not automatically replace what you have now.
    image
  • Added tinyurl for weather.gov alert hyperlink to save characters in the tiles. No acton required to get this one.
  • Bug fixes.

Hi, I am using the same weather utility, have you been able to have it show in a window constantly or do you have to open the tile to see the data? thank you

Received this response from OWM regarding missing tornado alerts

Hello,

Thank you for your inquiry.

There were few missed alert records in the API at the given time. We have fixed the issue, and it should not present anymore.

3 Likes