My Local Weather App project

My Local Weather App project
0

#1

Hello guys,
I’ve been working lately on my local weather app. Please take a look at it and feel free to submit your feedback,
Local weather app


#2

Hi! This is not working to me :no_mouth: On the console, it says

getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

This is because you’re trying to use html5’s geolocation feature. It would work with https, but then the openweathermap wont work. As a result you should use another service to get the location of the user by his ip address, and then use that (not much accurate though) location to feed the openweather api.


#3

Thanks for the hint. The main reason I didn’t use it previously is because of accuracy. I just updated it ,please let me know if it works.


#4

Now works like a charm! Good job!
Yeah I know about the accuracy but seems like there is no other way to get this working with codepen :slight_frown:


#5

Great! Thanks for the follow-up.