OpenWeatherMap-Alerts-Weather-Driver

This was discussed three and half years ago here. At that time you could click on the OWM Logo and it was a hyperlink that would take to OWM's site for your location. That still works. If there are alerts you could click on the alert message on their site and it would open extended details of the alert(s). Because of that existing functionality this driver never recreated that capability in the driver itself, it just pointed you to the location where that was provided.

I just looked and the OWM location specific site does list a weather alert for my location, as it did before, but clicking on that alert does nothing. Clicking on that weather alert (circled in the screenshot attached) use to take you to a more detailed alert description page that showed all current alerts for that location. I will notify OWM that this functionality has gone away and is still requested. I do not plan on re-creating that functionality in the driver.

Yes, that is normal. The driver does the conversion from imperial to the unit of measure you specified in the driver, if necessary.

2 Likes

Yes, you are right that does work, however it’s not useful for me as I want to use the data to automate my battery storage reserve capacity.

Essentially I want to search the text of the warnings for “strong winds” etc in an RM rule and raise my reserve capacity when power outages are likely. Eg

As you can see, I’ve done this using the Weather Underground driver I maintain. However I’ve added your excellent driver to my toolkit due to WU alerts no longer being provided via the API for some unpublished reason.

Aside from being cold, I don’t have any today, but I’m keeping an eye for you. :+1:

[UPDATED V0.7.1 07/29/2024]

Added attribute called 'alertDescrFull' that contains the full text of the first 10 weather alerts if using OWM as your alert source. You must have this turned on:
image

Then you can use Rule Machine or WebCoRE to do text searches of the attribute 'alertDescrFull' for specific strings that may be in any of the alerts to trigger your actions.

If using HPM do an Update or a Repair. Otherwise open the driver code and re-import the code. Thanks.

Thank you Matthew, that works perfectly! :ok_hand:

I have upgraded to V0.7.1
image
but I do not see


is there a step I am missing?

Update; Sorry forgot to turn on Display All Optional Attributes, disregard.

2 Likes

Hi! I must say I love your driver, having been using it for 2 years or more!
Can somebody please remind me: where can I find description of the different forecast attributes? I couldn't find in the wiki and the API doc for openweather didn't help me either.

I am trying to figure, for example, if I want to know how could will it be tonight (so the lowest temp from of tonight, including past midnight hours) .
I see the forecastNight and forecastLow and they have different numbers. Could somebody please explain?

That data point in not provided in the API. The API provides:

So forecastLow could be today's date just before midnight, or if could be today's date just after midnight. If you wanted to you could take the lowest temp of forecastLow or forecastLow1 That would assure that if the temp drops after midnight that forecastLow1 should show that lower number.

1 Like

Hi there,

It looks like AQI is in the API now. Can you integrate that into the code for this driver?

Thanks!
Madk

1 Like

I don't see that? Can you point to there that is documented?

It seems to be part of 2.5 Air Pollution API

1 Like

Short answer is I will not be integrating another API into this driver.

This driver uses the One Call By Call API. While I can see how this may be useful for some, it is not for me as I have my own personal weather station and several air quality measurement devices already. Perhaps someone who wants AQI stats and does not have their own equipment might be willing to develop a driver for the Air Pollution API? It is always an option to take the open source code of this driver and further develop it (add in the Air Pollution API calls) to meet your needs.

Thanks.

Thanks for considering it. I have been using a separate driver but it doesn’t seem to be polling and I have no idea how the code works - I’ve poked around but it’s still not working. I like how this driver has a polling option that’s intuitive. I use it to decide when to run my fresh air intake as part of a thermostat rule. Thanks-

I'd like to offer info - maybe it's known already - I recently got an email from OWM that 2.5 API is completely disabled and I had to move to 3.0.

I use 2 AQI and monitor both (and avg them in one instance)
image

With great help from @csteele I adjusted an existing driver for Airnow.gov (I think - this was about a year and 1/2 ago) to give me a tile. I had tiles for both OWM and AirNow - this year I merged them to a grid tile in Tile Builder:
AirNow- image
OWM -
image
In both cases, I customized the original driver so my tiles met my needs. The OWM 2.5 API is still being supported JUST for Pollution (Air Quality) but OWM Weather is not supporting that.

If you altered a driver to fetch AQI values from another OWM API, would you consider sharing the code so that others can use it?

That’s essentially what @Matthew suggested above.

I'd be happy too - however, just leaving for a work trip in 15 mins.

I think my WIP and Git are synced - try :
OWM -AQI

and AirNow AQI

If they don't work link wise, it'll need to wait until this evening so I can check more carefully.

2 Likes

My driver seems to have quit a couple of days ago, getting a 401 unauthorized. I know my API is good, as I have a stand-alone weather monitor in the kitchen. That system uses this format "http://api.openweathermap.org/data/2.5/weather?q=Melksham,UK&APPID=your_OWM_API_key&mode=json&units=metric&cnt=1 "
I tested with both of my API on my format, and get a response, but not with the one from the logs.
Any ideas?

It’s still working here in Australia, is it a cloud service outage in your region?

Ps It’s 7:48am on the 23rd here.

It stopped working on the 15th. My weather station is still working, and if I copy the format with my API into my browser, I get a reply. If I copy the http request from the logs into my browser, it kicks back a 401