chubin / wttr.in

:partly_sunny: The right way to check the weather
https://wttr.in
Apache License 2.0
24.58k stars 1.11k forks source link

Update GeoIP database? #135

Closed gnikandrov closed 5 years ago

gnikandrov commented 7 years ago

Hello,

It would be nice to update GeoIP database on server from time to time. Fresh GeoLite2 database correctly shows my IP address (in 89.179.112.0/20) as St. Petersburg, whereas your service returns data for Moscow.

Anyway, thanks for the great work.

chubin commented 7 years ago

Yes, it's a good idea. On the other hand, the majority of IP addresses are not in the database anyway, and for those addresses, we use an external service (ip2location) for geolocating (but your address was found in the local GeoLiite2 database, I think).

Thank you for reporting!

gnikandrov commented 7 years ago

Oh, I didn't bother to check ip2location. Yes, it returns obsolete data (Moscow). Anyway, fresh GeoLite2-City should solve the problem.

Thanks again.

chubin commented 5 years ago

@gnikandrov The problem is fixed now (I hope). Please check if it works for you. And thank you for reporting

gnikandrov commented 5 years ago

Ooops. Now it says that I'm from Port Credit, Canada :) The IP is still the same, and recent GeoLite databases seem to be correct.

chubin commented 5 years ago

@gnikandrov Thank you for reporting. I hope it works now. Could you please test it once again?

gnikandrov commented 5 years ago

@chubin Oh, now it works just fine! Thank you!