Open Scream85 opened 10 months ago
I wasn't able to get San Jose exactly, but at least got close. The 2 IATA airport codes don't work because there are cities elsewhere in the world named Oco and Sjo, which seems like an opportunity introduce helpers that might help identify the intended input type. For whatever reason longitude/latitude also didn't work for me (never tried that before, might not have done it right). I was at least able to get the country:
$ curl -s 'wttr.in/Costa+Rica?F&format=v2'
┌┤ Weather report for: Costa+Rica ├────────────────────────────────────┐
│ │
│ │
│ Thu 11 Jan Fri 12 Jan Sat 13 Jan │
│ ╷ ╷ │
│ │
│ │
│+91 ⡐⠉⠑⡄ ⢀⠤⢄ │
│ ⡰⠁ ⢱ ⢠⠂ ⢣ │
│ ⢠⠃ ⡇ ⢠⠃ ⢇ │
│ ⡎ ⢸ ⡎ ⠘⡄ │
│ ⡸ ⡇ ⢰⠁ ⢱ ⢀⠔⠒⠒⠤⢄⡀ │
│ ⢠⠃ ⢸ ⡎ ⢇ ⠎ ⠈⢆ │
│ ⢀⠇ ⢇ ⢰⠁ ⠈⢆ ⡸ ⢣ │
│ ⢀⠎ ⠘⢄ ⡎ ⠒⢄⣀ ⢠⠃ ⠣⡀ │
│⣀⡀ ⡠⠃ ⠑⠒⠒⠤⠤⣀⣀⡀ ⢰⠁ ⠉⠉⠒⠒⠢⢄⡀ ⡎ ⠑⢄⣀⡀│
│+68⠉⠉ ⠈⠢⣀⠡⠃ ⠈⠒⠋ │
│ │
│─────┴─────┼─────┴─────╂─────┴─────┼─────┴─────╂─────┴─────┼─────┴─────╂│
│ 6 12 18 6 12 18 6 12 18 │
│ │
│ 0.99mm|99% │
│ ██ │
│ ███▅ │
│ ▇████ │
│ ▇█████▇ │
│ _▁▄████████ │
│ │
│ │
│ 🌫 🌫 ☁️ 🌦 ☁️ ☀️ 🌦 ⛅️ 🌫 🌫 🌫 ⛅️ ⛅️ 🌦 🌦 🌫 🌫 ⛅️ 🌫 🌦 🌦 🌦 🌫 🌫│
│ ↖ ↖ ↖ ↙ ← ← ↗ ↖ ↑ ↑ ↖ ← ← ↙ ← ↖ ↖ ↑ ↗ ↙ ↙ ← ↖ ↖ │
│ 2 1 1 3 5 7 9 2 1 1 1 2 4 6 3 2 1 0 1 1 6 4 3 2 │
│ │
│🌑 🌑 🌒 🌒│
│ ─━━━━━━━━━━━─ ─━━━━━━━━━━━─ ─━━━━━━━━━━━─ │
│ │
│ │
└────────────────────────────────────────────────────────────────────────┘
Weather: 🌦 Light rain, mist, +75°F, 83%, ↗9mph, 1017hPa
Timezone: America/Costa_Rica
Now: 18:12:26-0600 | Dawn: 05:34:55 | Sunrise: 05:57:56
Zenith: 11:44:28 | Sunset: 17:31:38 | Dusk: 17:54:38
Location: Costa Rica [10.3985,-84.1378]
I'm wondering if anyone can help how to request weather info for San José in Costa Rica with wttr.in. I tried everything, I found so far with Google search and it defaults back to Los Angeles.
curl -s 'wttr.in/SanJose,CR?F&format=v2'
curl -s 'wttr.in/SanJose,CostaRica?F&format=v2'
curl -s 'wttr.in/SanJosé?F&format=v2'
curl -s 'wttr.in/3621849?F&format=v2'
curl -s 'wttr.in/3621849?F&format=v2'