gjonesme / MMM-WeatherAlerts

MIT License
2 stars 0 forks source link

Are alerts working with the api version 2.5 #3

Open mlcampbe opened 9 months ago

mlcampbe commented 9 months ago

Can you confirm that the openweathermap api v2.5 still returns alerts? I have tested it this morning and none of the calls with the 2.5 version of the api for any lat/lon I specify seems to include the alerts array. Is it possible that the alerts now require the 3.0 api subscription?

gjonesme commented 9 months ago

To confirm you would probably need to reach out to openweathermap to see if they had made a change. Their documentation still includes the alerts object for 2.5: https://openweathermap.org/api/one-call-api

Assuming the lat/lon that you have been providing do have active weather alerts, I suspect that onecall 2.5 is temporarily not including the alerts object for some reason. I have seen in the past where onecall does not have an alert object for a period of time (e.g. 6-12 hours). I had sent openweathermap an email with info on the missing data and the issue was resolved within a couple hours, though it's not clear to me if my email triggered the resolution or if the error would have recovered on its own.

I suggest waiting a few hours and checking again; if you're still not seeing the expected data, then sending openweathermap an email might get you results.