Fixing missing Daily Forecasts

October 29, 2021 By admin

I have now fixed an issue where some subscribers were not receiving daily forecasts. WxNotify obtains daily forecast data from the National Weather Service API, and for some users, the API was returning empty current condition data for the user’s closest reporting station. The code now looks at the 10 closest weather stations and loops through each one (sorted in ascending order by distance) and returns the first one that returns data.