News for hackers. Stuff that matters.
Re:Weather reports with curl by emwjacobson on Sunday July 08, 2018 @08:18PM (#17487093)
Calling it on its own always returns the weather for Ottawa. Id expect it to use the requesting IP's location at the least. Using wttr.in/~LosAngeles returns the weather for "Rua Professora Maria Losângeles Navarro", a street in Brazil.
Re:Weather reports with curl by moviuro on Monday July 09, 2018 @03:27AM (#17488534)
You're looking for `http://wttr.in/Los%20Angeles`
Re:Weather reports with curl by opk on Monday July 09, 2018 @05:28AM (#17488988)
It gives me the weather for "Italy, United States of America". So having got the country of Italy from the geolocation, it must then be doing a US-centric text search for the location.

The weather report is nice but doesn't work too well with rxvt-unicode or with a light-coloured background.

Re:Weather reports with curl by sudosushi on Sunday July 08, 2018 @09:17PM (#17487313)
Mine returned Oymyakon, Russia. Nearly 8,000km from my location, or IP address geoloc. I'm assuming it's possibly picking up some hop in between, maybe?
Re:Weather reports with curl by jedberg on Sunday July 08, 2018 @09:30PM (#17487356)
Mine too, but at the very bottom, it says "We were unable to find your location so we have brought you to Oymyakon, one of the coldest permanently inhabited locales on the planet."
Re:Weather reports with curl by 4O4 on Monday July 09, 2018 @01:18AM (#17488122)
There's an explanation below the weather table:

> We were unable to find your location so we have brought you to Oymyakon, one of the coldest permanently inhabited locales on the planet.

Re:Weather reports with curl by theptrk on Monday July 09, 2018 @03:02AM (#17488442)
I have no idea how it parses text. `curl wttr.in/~LosAngelesCA` gave me an address in Russia `curl wttr.in/~LosAngeles,CA` gave me LA in California
Re:Weather reports with curl by gkoberger on Sunday July 08, 2018 @08:58PM (#17487229)
For me, it used my IP and got the correct location.
Re:Weather reports with curl by bkanber on Sunday July 08, 2018 @09:06PM (#17487262)
It found my correct location automatically.