Project Local Weather Finished!


#1

This in my project local weather:

I would like your feedback. Thanks a lot!!!


#2

Not seeing anything… just a black background and a sliding switch.

There’s this error though.

XMLHttpRequest cannot load https://api.darksky.net/forecast/53f16da52fdc6bd6411a39ff1f02a6b3/36.062470700000006,-86.7768273. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://s.codepen.io’ is therefore not allowed access.


#3

Yes, you are right… for correct visualization its necessary use this:

https://chrome.google.com/webstore/category/extensions?utm_source=chrome-app-launcher-info-dialog.

I’m going to work for solve it. I’m sorry and thanks.


#4

The ‘cannot load’ issue in weather apps is appearing a lot right now. You’ll find the solution in other recent weather posts. Look for solutions regarding jsonp and the callback that goes with that. :grinning:


#5

@owel please try again, It was necessary to include in the url a third party url because I have not achieved to implement a solution in my javaScript code for ‘Access-Control-Allow-Origin’. I keep trying.


#6

Awesome… works now for me. C to F conversion also works.

  • But it gives my location as Chicago. About 470 miles away.

#7

:sweat_smile: OMG !!!