Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying from my current location returns weather from a different town with the same name #986

Open
mschaaf opened this issue May 1, 2024 · 5 comments

Comments

@mschaaf
Copy link

mschaaf commented May 1, 2024

I am currently located in
"Halle (Saale), Sachsen-Anhalt, Germany" and
https://wttr.in returns the weather for
"Halle, Nordrhein-Westfalen, Germany"

Update:

curl https://wttr.in/ from a Wi-Fi connection of a local ISP provider in Halle (Saale) returns the weather of Halle (Westfalen) instead of Halle (Saale). The same happens by opening https://wttr.in in a browser. My expectation is that the location chosen is Halle (Saale) as I am currently using a Wi-Fi connection inside the town. wttr.in seems to know the name of the town I am in but does pick the wrong one with the same name.

@vitusson
Copy link

vitusson commented May 1, 2024

curl wttr.in/Halle,Germany?1
Weather report: Halle,Germany

  \   /     Sunny
   .-.      20 °C          
― (   ) ―   ← 22 km/h      
   `-’      10 km          
  /   \     0.0 mm         
                                                   ┌─────────────┐                                                       

┌──────────────────────────────┬───────────────────────┤ Wed 01 May ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ \ / Sunny │ \ / Sunny │ \ / Sunny │ \ / Clear │
│ .-. 19 °C │ .-. 22 °C │ .-. 19 °C │ .-. 16 °C │
│ ― ( ) ― ← 26-32 km/h │ ― ( ) ― ← 27-32 km/h │ ― ( ) ― ← 29-49 km/h │ ― ( ) ― ← 23-40 km/h │
-’ 10 km │ -’ 10 km │ -’ 10 km │ -’ 10 km │
│ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
Location: Halle (Saale), Sachsen-Anhalt, 06108, Deutschland [51.4825041,11.9705452]

@mschaaf
Copy link
Author

mschaaf commented May 1, 2024

curl https://wttr.in/ from a Wi-Fi connection of a local ISP provider in Halle (Saale) returns the weather of Halle (Westfalen) instead of Halle (Saale). The same happens by opening https://wttr.in/ in a browser. My expectation is that the location chosen is Halle (Saale) as I am currently using a Wi-Fi connection inside the town. wttr.in seems to know the name of the town I am in but does pick the wrong one with the same name.

@vitusson
Copy link

vitusson commented May 1, 2024

Then the geoiplookup database is wrong, nothing wtrr.in can do about. No wonder if there are like a dozen Halles here in Germany.
Just use the right URl and everything is fine…

@mschaaf
Copy link
Author

mschaaf commented May 1, 2024

ip2location returns the correct town, state and country and also the correct geo coordinates for my ip.

@mschaaf
Copy link
Author

mschaaf commented May 1, 2024

wttr.in does not use the region for Germany. See code in

# In United States region is important, because there are a lot of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants