I am working on the weather challenge and my queries to the weather API are not returning an icon.
https://fcc-weather-api.glitch.me/api/current?lat=45&lon=-123
returns (relevant portions)
"weather":[
{
"id":500,
"main":"Rain",
"description":"light rain"
},
{
"id":701,
"main":"Mist",
"description":"mist",
"icon":"50n"
}
],
However, if I change the longitude one degree it works as expected:
https://fcc-weather-api.glitch.me/api/current?lat=45&lon=-122
"weather":[
{
"id":500,
"main":"Rain",
"description":"light rain",
"icon":"https://cdn.glitch.com/6e8889e5-7a72-48f0-a061-863548450de5%2F10n.png?1499366021399"
}
For reference here’s my pen: https://codepen.io/mikegcoleman/pen/xPgxrp
Any thoughts?