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
Hi! This is not working to me 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.
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.
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
Great! Thanks for the follow-up.