Weather api icons

Problem 1)I am working on my weather api and hope that someone could take a look at it? At home I get the location to show up, but I am out and its not showing . Did I do something wrong or is the slow connection I have while I am out?
Problem 2) I cannot figure out how to add the icons. I have an idea, but not sure where to start, darksky doesn’t directly supply the icon…they direct you to the info, its a script using canvas…majorly confusing me. I do believe i should use a switch statement though!
Thanks in advance

Could you post your codepen?

You need skycons.js (it’s in this repo:, there’s also instructions on using skycons in the README). The darksky API supplies the value that you’ll plug into skycons.