Click here to Skip to main content
15,904,822 members

Comments by Member 14629414 (Top 53 by date)

Member 14629414 29-Jun-22 1:38am View    
AMARNATH REDDY SURAPUREDDY Thank you for your suggestion. This question was for my graduate project and I've finished it. Anyways thank you ^
Member 14629414 29-Jun-22 1:36am View    
Actually I was very surprised that my 3 years old question still receive suggestions from others and I don't think it was any kinds of abusing from people.
Member 14629414 8-Jun-22 4:19am View    
thanks for that
Member 14629414 8-Jun-22 4:09am View    
When I tried to access all the data (example for 'current') I got this:
'wind_deg': 99,
'wind_gust': 2.55,
'wind_speed': 3.27},
{'clouds': 17,
'dew_point': 15.66,
'dt': 1654758000,
'feels_like': 25.26,
'humidity': 58,
'pop': 0.48,
'pressure': 1012,
'rain': {'1h': 0.24},
'temp': 25.17,
'uvi': 1.49,
'visibility': 10000,
'weather': [{'description': '小雨',
'icon': '10d',
'id': 500,
'main': 'Rain'}],

you can see the list 'rain' which is the amount rain for 1h
Member 14629414 8-Jun-22 3:47am View    
@Richard MacCutchan Add the command : pp.pprint(f"rain : {data['rain']}") to the print sections of the codes and you will see the errors