question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weather for St. Petersburg, Russia use incorrect place

See original GitHub issue

Hi! I found a problem with an incorrect passing location somewhere in the code. When I use the default format, it detects the correct location (City + Country), but the weather is wrong.

$ curl wttr.in/?0

Weather report: St Petersburg, Russia

    \  /       Partly cloudy
  _ /"".-.     12-13 °C
    \_(   ).   ↙ 19 km/h
    /(___(__)  16 km
               0.0 mm

Checking the same request with the custom format, we can find the reason: the returning location is the coordinates for Saint Petersburg, Florida, United States

$ curl wttr.in/?format=4

27.7703796,-82.6695085: ⛅️ 🌡️+13⁰C 🌬️↙19 km/h

But when I provide the city explicitly, the weather is correct.

$ curl wttr.in/Saint-Petersburg?format=4

Saint-Petersburg: ☁️ 🌡️-2⁰C 🌬️←19 km/h

I suppose wttr.in use city without country somewhere and that is the cause for the incorrect location

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chubincommented, Feb 1, 2019

I think we’ve just fixed a nasty bug, that was annoying many people 👍 Thank you for reporting it once again!

1reaction
chubincommented, Feb 1, 2019

I believe I’ve fixed it. Please test

Read more comments on GitHub >

github_iconTop Results From Across the Web

Saint Petersburg, Russia 10-Day Weather Forecast
Saint Petersburg, Russia 10-Day Weather Forecaststar_ratehome ; Pressure. 29.58 · in ; Visibility. 6 · miles ; Dew Point. 20 · F ;...
Read more >
14 Day Weather St Petersburg - Meteoblue
This chart shows the 14 day weather trend for St Petersburg (St.-Petersburg, Russia) with daily weather symbols, minimum and maximum temperatures, ...
Read more >
St Petersburg weather guide: best time to visit the city
The average autumn temperature of St. Petersburg ranges from +8.3 to 3 ° C. ... Winter in St. Petersburg begins a little later...
Read more >
Autumn in St Petersburg Russia | What to Pack, Do & See
Usually, from September to October the weather in St Petersburg is still warm and dry, with average temperatures over +11 °C/52°F. Also, at...
Read more >
OPINION: November in Russia is the worst!
Wrong ! It's total BS. This was the first time in my life someone praised ... And places like Moscow and St. Petersburg...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found