wetWeatherForecast5Days v0.2.5

by Dan Dan

returns the number of days before the next wet weather.
IMPORTANT: The state “Today” means a wet weather is forecasted to be within the next 24hours, rather than on today’s date. So is Next Day = 48hours, 2 Days Later = 72hours, so on.
NOTE: Wet weather types are defined in the script and may not include more specific terms such as tornado.
Endpoint: http://api.openweathermap.org/data/2.5/forecast

States

  • Not Found: no weather data can be found for given city.
  • Today
  • Next Day
  • 2 Days Later
  • 3 Days Later
  • 4 Days Later
  • None: No wet weather is found within the 5 days forecast

Properties

  • city
  • openWeatherAPIKey - required here in properties or global settines as OPENWEATHER_KEY

Raw Data

  • cityId
  • cityName
  • cityCountry
  • totalRainVolume (mm)
  • wetWeatherList {timestamp, timestampMS, weatherType, description, icon, rain{}, humidity}
  • wetTypes (e.g. [‘Rain’,‘Drizzle’,‘Thunderstorm’,‘Snow’])
  • avgHumidity (%)
  • nextRainVolume (mm)
  • daysTillNextRain (decimal, e.g. 0.8 = Today)

Required properties:

  • city
  • openWeatherAPIKey

External Settings:

  • OPENWEATHER_KEY

States:

  • Next Day
  • 2 Days Later
  • 3 Days Later
  • 4 Days Later
  • Today
  • Not Found
  • None

Raw data:

  • cityId (integer)
  • cityName (string)
  • cityCountry (string)
  • totalRainVolume (double)
  • wetWeatherList (string[])
  • wetTypes (string[])
  • avgHumidity (double)
  • nextRainVolume (double)
  • daysTillNextRain (double)