I have put the code below my for a simple weather app using Open Weather
The code to get the icon code from the JSON works in the first block but not in the second? i