[oS-en] [curio] [OT] CLI weather report
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Run in a terminal: curl wttr.in Found on Usenet, alt.os.linux Apparently, "curl wttr.in/your_zip" works. If you don't enter it, it geolocates your IP. - -- Cheers Carlos E. R. (from 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYcTNkhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV7aQAn3ddsGrkdGzIw87fVOdh 8avvtxCzAJ4i9hNbmUav66+gkFgvOh8c7HQIfw== =/koS -----END PGP SIGNATURE-----
bravo! On Thu, Dec 23, 2021 at 1:27 PM Carlos E. R. <robin.listas@telefonica.net> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Run in a terminal:
curl wttr.in
Found on Usenet, alt.os.linux
Apparently, "curl wttr.in/your_zip" works. If you don't enter it, it geolocates your IP.
- -- Cheers
Carlos E. R. (from 15.2 x86_64 at Telcontar)
-----BEGIN PGP SIGNATURE-----
iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYcTNkhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV7aQAn3ddsGrkdGzIw87fVOdh 8avvtxCzAJ4i9hNbmUav66+gkFgvOh8c7HQIfw== =/koS -----END PGP SIGNATURE-----
Carlos E. R. wrote:
Run in a terminal:
curl wttr.in
Found on Usenet, alt.os.linux
Apparently, "curl wttr.in/your_zip" works. If you don't enter it, it geolocates your IP.
It looks nice, but it is gobbledegook :-) My "zip code" is 8704, which it interprets to mean: Location: Fierzë, Bashkia Tropojë, Qarku i Kukësit, Shqipëria veriore, 8704, Shqipëria [42.2653096,20.0293587] Without adding "your_zip", it is even worse. Then I tried our old postcode from London - result: We were unable to find your location so we have brought you to Oymyakon, one of the coldest permanently inhabited locales on the planet. -- Per Jessen, Zürich (5.6°C)
On 2021-12-23 2:56 p.m., Per Jessen wrote:
Carlos E. R. wrote:
Run in a terminal:
curl wttr.in
Found on Usenet, alt.os.linux
Apparently, "curl wttr.in/your_zip" works. If you don't enter it, it geolocates your IP. It looks nice, but it is gobbledegook :-)
My "zip code" is 8704, which it interprets to mean:
Location: Fierzë, Bashkia Tropojë, Qarku i Kukësit, Shqipëria veriore, 8704, Shqipëria [42.2653096,20.0293587]
Without adding "your_zip", it is even worse.
Then I tried our old postcode from London - result:
We were unable to find your location so we have brought you to Oymyakon, one of the coldest permanently inhabited locales on the planet.
Canadian postal codes don't work either. However, running it without the postal code puts me in the right city.
Hallo Per Jessen, op 23-12-2021 om 20:56 schreef je:
Carlos E. R. wrote:
Run in a terminal:
curl wttr.in
Found on Usenet, alt.os.linux
Apparently, "curl wttr.in/your_zip" works. If you don't enter it, it geolocates your IP.
It looks nice, but it is gobbledegook :-)
My "zip code" is 8704, which it interprets to mean:
Location: Fierzë, Bashkia Tropojë, Qarku i Kukësit, Shqipëria veriore, 8704, Shqipëria [42.2653096,20.0293587]
Without adding "your_zip", it is even worse.
Then I tried our old postcode from London - result:
We were unable to find your location so we have brought you to Oymyakon, one of the coldest permanently inhabited locales on the planet.
Sorry for mailing you first instead of the list. har@harbeidbak:~> curl -s wttr.in/CH-8704 Weather report: CH-8704 Overcast .--. +3(2) °C .-( ). ↗ 7 km/h (___.__)__) 10 km 0.0 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Thu 23 Dec ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ Overcast │ Overcast │ \ / Partly cloudy │ \ / Partly cloudy │ │ .--. -3(-4) °C │ .--. +2(1) °C │ _ /"".-. 0(-1) °C │ _ /"".-. +1(0) °C │ │ .-( ). ↑ 4-8 km/h │ .-( ). ↗ 4-6 km/h │ \_( ). ↑ 5-11 km/h │ \_( ). ↑ 5-10 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% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Fri 24 Dec ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ Overcast │ Overcast │ _`/"".-. Patchy rain po…│ _`/"".-. Patchy rain po…│ │ .--. 0(-1) °C │ .--. 4 °C │ ,\_( ). +2(1) °C │ ,\_( ). 3 °C │ │ .-( ). ↑ 5-10 km/h │ .-( ). ↑ 4-6 km/h │ /(___(__) ↑ 5-11 km/h │ /(___(__) ↑ 2-5 km/h │ │ (___.__)__) 10 km │ (___.__)__) 10 km │ ‘ ‘ ‘ ‘ 10 km │ ‘ ‘ ‘ ‘ 10 km │ │ 0.0 mm | 0% │ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.1 mm | 86% │ ‘ ‘ ‘ ‘ 0.1 mm | 70% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Sat 25 Dec ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ Overcast │ Overcast │ Overcast │ Mist │ │ .--. 2 °C │ .--. 5 °C │ .--. 4 °C │ _ - _ - _ - 3 °C │ │ .-( ). ↗ 3-6 km/h │ .-( ). ↑ 3-4 km/h │ .-( ). ↗ 2-4 km/h │ _ - _ - _ ↑ 2-5 km/h │ │ (___.__)__) 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ _ - _ - _ - 2 km │ │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Location: Herrliberg, Bezirk Meilen, Zürich, 8704, Schweiz/Suisse/Svizzera/Svizra [47.28982190315098,8.615513460698832] Follow @igor_chubin for wttr.in updates har@harbeidbak:~>
Harrie Baken wrote:
Sorry for mailing you first instead of the list.
No prob - it looks good, even if not accurate. I did try also try it with our old London postcode, prefixed with GB or UK, no luck :-) -- Per Jessen, Zürich (5.9°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland.
Hallo Per Jessen, op 23-12-2021 om 21:14 schreef je:
Harrie Baken wrote:
Sorry for mailing you first instead of the list.
No prob - it looks good, even if not accurate.
I did try also try it with our old London postcode, prefixed with GB or UK, no luck :-)
Well, after your comment I don't blindly trust the data, but UK/London/Big Ben :) works: har@harbeidbak:~> curl -s wttr.in/UK-SW1A 0AA Weather report: UK-SW1A \ / Clear .-. +10(8) °C ― ( ) ― ↗ 19 km/h `-’ 10 km / \ 0.0 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Thu 23 Dec ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Partly cloudy │ Overcast │ _`/"".-. Patchy rain po…│ Cloudy │ │ _ /"".-. +5(4) °C │ .--. +8(6) °C │ ,\_( ). +11(9) °C │ .--. +9(7) °C │ │ \_( ). ↑ 8-15 km/h │ .-( ). ↑ 15-24 km/h │ /(___(__) ↗ 15-24 km/h │ .-( ). ↗ 14-21 km/h │ │ /(___(__) 10 km │ (___.__)__) 10 km │ ‘ ‘ ‘ ‘ 10 km │ (___.__)__) 10 km │ │ 0.0 mm | 0% │ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.1 mm | 87% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Fri 24 Dec ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ Overcast │ Overcast │ .-. Moderate rain │ .-. Moderate rain │ │ .--. +8(7) °C │ .--. +10(9) °C │ ( ). +9(8) °C │ ( ). +9(8) °C │ │ .-( ). ↗ 6-10 km/h │ .-( ). ↑ 5-8 km/h │ (___(__) ← 9-12 km/h │ (___(__) ↖ 7-10 km/h │ │ (___.__)__) 10 km │ (___.__)__) 10 km │ ‚‘‚‘‚‘‚‘ 7 km │ ‚‘‚‘‚‘‚‘ 7 km │ │ 0.0 mm | 0% │ 0.0 mm | 0% │ ‚’‚’‚’‚’ 3.4 mm | 74% │ ‚’‚’‚’‚’ 5.0 mm | 75% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Sat 25 Dec ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ _`/"".-. Light rain sho…│ Overcast │ Overcast │ .-. Light rain │ │ ,\_( ). +7(3) °C │ .--. +7(3) °C │ .--. +6(3) °C │ ( ). +7(3) °C │ │ /(___(__) ↙ 21-28 km/h │ .-( ). ← 18-24 km/h │ .-( ). ← 20-28 km/h │ (___(__) ← 19-27 km/h │ │ ‘ ‘ ‘ ‘ 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ ‘ ‘ ‘ ‘ 9 km │ │ ‘ ‘ ‘ ‘ 0.2 mm | 75% │ 0.0 mm | 0% │ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 1.4 mm | 78% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Location: Royal Mail, St. James's Street, St. James's, Mayfair, City of Westminster, London, Greater London, England, SW1A 1HJ, United Kingdom [51.5068419,-0.1398312] Follow @igor_chubin for wttr.in updates har@harbeidbak:~>
Hallo Harrie Baken, op 23-12-2021 om 21:26 schreef je:
Well, after your comment I don't blindly trust the data, but UK/London/Big Ben :) works:
har@harbeidbak:~> curl -s wttr.in/UK-SW1A 0AA Weather report: UK-SW1A
Of course the space was wrong. I tried now: curl -s wttr.in/UK-SW1A-0AA Location result: Location: City of Westminster, London, Greater London, England, SW1A 0AA, United Kingdom [51.499425200000005,-0.12444777279476393] Seems better. :) -- Harrie
* Per Jessen <per@computer.org> [12-23-21 15:17]:
Harrie Baken wrote:
Sorry for mailing you first instead of the list.
No prob - it looks good, even if not accurate.
I did try also try it with our old London postcode, prefixed with GB or UK, no luck :-)
try it in a browser w/o "curl" wttr.in wttr.in/<postal-code> -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...
* Patrick Shanahan <paka@opensuse.org> [12-23-21 15:35]:
* Per Jessen <per@computer.org> [12-23-21 15:17]:
Harrie Baken wrote:
Sorry for mailing you first instead of the list.
No prob - it looks good, even if not accurate.
I did try also try it with our old London postcode, prefixed with GB or UK, no luck :-)
try it in a browser w/o "curl" wttr.in wttr.in/<postal-code>
also possible wttr.in/<CityName> -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...
On Friday 24 December 2021, Patrick Shanahan wrote:
* Patrick Shanahan <paka@opensuse.org> [12-23-21 15:35]:
* Per Jessen <per@computer.org> [12-23-21 15:17]:
Harrie Baken wrote:
Sorry for mailing you first instead of the list.
No prob - it looks good, even if not accurate.
I did try also try it with our old London postcode, prefixed with GB or UK, no luck :-)
try it in a browser w/o "curl" wttr.in wttr.in/<postal-code>
also possible wttr.in/<CityName>
Street addresses seem to work: curl wttr.in/ohiro_rd yields: Ohiro Road, Aro Valley, Wellington, Wellington City, Wellington, 6021, New Zealand / Aotearoa [-41.2972192,174.7689097] Street numbers seem to narrow the coordinates further. I guess it using the IP address to narrow to at least the country (it gets the city wrong on IP address alone).
Hallo Patrick Shanahan, op 23-12-2021 om 21:33 schreef je:
* Per Jessen <per@computer.org> [12-23-21 15:17]:
Harrie Baken wrote:
Sorry for mailing you first instead of the list.
No prob - it looks good, even if not accurate.
I did try also try it with our old London postcode, prefixed with GB or UK, no luck :-)
try it in a browser w/o "curl" wttr.in wttr.in/<postal-code>
Yes, it gives the same results. Also with nice colors. :) https://wttr.in/UK-SW1A-0AA https://wttr.in/CH-8704 -- Harrie
On 23/12/2021 20.56, Per Jessen wrote:
Carlos E. R. wrote:
Run in a terminal:
curl wttr.in
Found on Usenet, alt.os.linux
Apparently, "curl wttr.in/your_zip" works. If you don't enter it, it geolocates your IP.
It looks nice, but it is gobbledegook :-)
My "zip code" is 8704, which it interprets to mean:
Location: Fierzë, Bashkia Tropojë, Qarku i Kukësit, Shqipëria veriore, 8704, Shqipëria [42.2653096,20.0293587]
Without adding "your_zip", it is even worse.
For me, it works perfectly, both methods :-) I don't know how to find information about the site. I found this only: https://github.com/chubin/wttr.in/tree/master/doc Try "https://v3.wttr.in/Bayern" There is https://github.com/chubin/wttr.in/blob/master/README.md try "curl wttr.in/Berna" It accepts 3 letter airport codes. And GPS locations Ah! curl wttr.in/:help Supported location types: /paris # city name /~Eiffel+tower # any location (+ for spaces) /Москва # Unicode name of any location in any language /muc # airport code (3 letters) /@stackoverflow.com # domain name /94107 # area codes /-78.46,106.79 # GPS coordinates -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
On 12/23/21 12:27 PM, Carlos E. R. wrote:
Run in a terminal:
curl wttr.in
Worked swell here, in glorious color, without the zip code (86404). Egad! It's only going to be 62F, with patchy rain, tomorrow. All the way down to 48F by morning. :-( Thanks, I'll set an alias for it. I always have 2 bash terminals, at a minimum, running.
Hallo Bill Swisher, op 23-12-2021 om 21:38 schreef je:
On 12/23/21 12:27 PM, Carlos E. R. wrote:
Run in a terminal:
curl wttr.in
Worked swell here, in glorious color, without the zip code (86404).
Egad! It's only going to be 62F, with patchy rain, tomorrow. All the way down to 48F by morning. :-(
Thanks, I'll set an alias for it. I always have 2 bash terminals, at a minimum, running.
When you enter impossible data, you get: "We were unable to find your location so we have brought you to Oymyakon, one of the coldest permanently inhabited locales on the planet." -- Harrie Baken | Tekstbureau TekstBaken
participants (8)
-
Bill Swisher
-
Carlos E. R.
-
Harrie Baken
-
James Knott
-
Michael Hamilton
-
Patrick Shanahan
-
Per Jessen
-
tooth pik