wttr.in icon indicating copy to clipboard operation
wttr.in copied to clipboard

Constantly wrong location shown since some time

Open Moonbase59 opened this issue 3 years ago • 12 comments

I use the curl "wttr.in/?format=3" command on my Linux laptop.

For months, it has shown the correct location (Krumbach, Germany)—even after IP changes— but since maybe 1 or 2 weeks it constantly shows the data for Bochum, Germany, which is hundreds of kilometres away.

I’m on the same network (WLAN, Fritz!Box router, Deutsche Telekom VDSL) and my IP hasn’t changed since 2021-04-14. According to https://www.wieistmeineip.de/ I have both an IPv6 and an IPv4 address.

I cannot hard-code "Krumbach" into the call (which would deliver the correct data) but rely on wttr.in’s geolocation features so when I’m on the road my laptop will show the weather for the location I’m currently at.

Anything I can do to assist finding the problem?

Moonbase59 avatar Apr 27 '21 11:04 Moonbase59

Can you please share your IP with me ([email protected]) or here? (you can check it with curl ifconfig.me for example)

chubin avatar Apr 27 '21 11:04 chubin

Sure, I sent you an email.

Moonbase59 avatar Apr 27 '21 13:04 Moonbase59

Thank you! Investigating

chubin avatar Apr 27 '21 15:04 chubin

I've replied to your email; please, ping if you received no reply

chubin avatar Apr 27 '21 16:04 chubin

Thanks for checking. Seems some IPv6 geo databases return real wrong results. Sent you some more emails.

Moonbase59 avatar Apr 28 '21 06:04 Moonbase59

Just to keep others informed: After some testing and discussions "behind the scenes", we find that the available databases sometimes deliver grossly wrong results, especially with IPv6 addresses (since there are so much more of them). This is not a fault of wttr.in per se.

Trying to geolocate based on IPs is still a very imprecise science. Just think of all the ever-changing home customer DSL connections.

Moonbase59 avatar Apr 29 '21 09:04 Moonbase59

Even if we attach several location providers, the question is still how we could detect what provider should be used in this case; maybe it could be configured on the network basis

chubin avatar May 01 '21 09:05 chubin

Yeah that's weird, it used to always pick up on my location but now it's showing the town over as the locations unless I manually specify. I have moved to a different house but in the same city, so maybe that's the issue?

Scarlov avatar Jul 04 '21 08:07 Scarlov

Could you please test it again; several problems in this area were fixed recently

chubin avatar Oct 31 '21 12:10 chubin

Same problem here I'm in Québec city, Province of Québec, Canada and it returns the temperature for "Nichikun" wich is a very small place exactly in the center of the province of Quebec. But this place is hundred of kilometers north of Quebec city and a lot colder ! Isn't there any way to specify the correct city when we call wttr ???

PerfMonk avatar Feb 13 '23 05:02 PerfMonk