Detrous / darksky

Python API wrapper for the DarkSky (async&sync)
https://pypi.org/project/darksky_weather/
MIT License
81 stars 22 forks source link

DailyForecast #13

Closed MujtabaAlk closed 5 years ago

MujtabaAlk commented 5 years ago

can't access any attribute in the DailyForecast object other than summery and icon. if i try accessing any other attribute i get an error stating thet it doesnt have this attribute for example: print(forecast.daily.time) AttributeError: 'DailyForecast' object has no attribute 'time'

Detrous commented 5 years ago

Hi! You need use forecast.daily.data[index].time DailyForecast has three fields - 'summary', 'icon' and 'data' (list of items by day)

I will update readme later.