boradesanket13 / Blaze

Weather application with geolocation using OpenWeatherAPI and RestCountries API
https://blaze-silk.vercel.app/
MIT License
17 stars 44 forks source link

Automatic get Weather of current city using IP #20

Closed devXprite closed 2 years ago

devXprite commented 2 years ago

:arrow_right: Live Preview

netlify[bot] commented 2 years ago

Deploy Preview for sanket1308-weather-app ready!

Name Link
Latest commit 973f07ebd7f2c4b09092c25461a90a0fce858812
Latest deploy log https://app.netlify.com/sites/sanket1308-weather-app/deploys/633932285d2977000addafd2
Deploy Preview https://deploy-preview-20--sanket1308-weather-app.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

GreenJ84 commented 2 years ago

My live preview doesn't show automatic the city i'm in. Is the .catch above your .then changing the outcome? is it an api error with my city/location? My IP is 10.0.0.226.

devXprite commented 2 years ago

My live preview doesn't show automatic the city i'm in. Is the .catch above your .then changing the outcome? is it an api error with my city/location? My IP is 10.0.0.226.

This is happening because 10.0.0.226 is a bogon IP which is used in local networks.

I think it might be because of Live Preview extension as it is working properly in hosted websites and My Live Server.

https://devxprite.github.io/Weather-App/

devXprite commented 2 years ago

Thanks @Sanket1308.