the proxy didnt make it appear. it was the scope issue. however, when i went to darksky api site they said to add a proxy to protect your api key when you make requests.
before lat and long were coming back as undefined when you made the get request to darksky, this is because you had initialized lat and long but not defined them in the beginning of your program. you defined lat and long when you made your navigator.geolocation call BUT that was inside the get function in the if statement. so when you tried to use those versions of lat and long to get the weather the program went to your initial lat and long NOT the lat and long with the actual data…sorry its hard to explain but it was for sure a scope thing.
var a = 2;
var a = 1;
so you will get two different values for a in this example if that helps make sense of it. copy and paste it and play with it to get a feel for scope
i am new as well and am just passing on some stuff that has helped me. trust me i am a newb. but no prob i like helping when i can. peeps here have helped me a ton.