ZeevG / python-forecast.io

A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API
http://zeevgilovitz.com/python-forecast.io/
Other
423 stars 88 forks source link

alerts not functioning correctly #52

Closed bonedaddy closed 7 years ago

bonedaddy commented 7 years ago

alerts doesn't appear to function correctly .>>> forecast = forecastio.load_forecast(api_key, lat, long) .>>> alerts = forecast.alerts() .>>> alerts []

ZeevG commented 7 years ago

Hi. There won't always be weather alerts and so sometimes that list is empty. This is from the Dark Sky docs

An alerts array, which, if present, contains any severe weather alerts pertinent to the requested location.

You can read more about alerts here https://darksky.net/dev/docs/response#alerts