ZeevG/python-forecast.io

Question on extracting weather data

Closed this issue · 0 comments

I am still familiarising myself with the data structure in darksky. Could I get some help with it?

When I ran the example script to get the daily data, it returns with:
<ForecastioDataPoint instance: Mostly Cloudy at 2018-01-25 16:18:40>

I checked the data type and it appears to be a list. I then tried to use index, but there was only one data listed in by_day.data[0]. There is no data in by_day.data[1] when I queried. How can I obtain the individual data, like 'Mostly Cloudy' excluding the other bits as the whole chunk of info seems to come together when queried?