Get Weather Forecast from the Command Line with wttr.in

Productivity Sauce
Of all the weather forecast applications and tools I have tried and reviewed over the years, wttr.in is probably the most ingenuous and useful one. There are several reasons for that. First of all, wttr.in requires no installation, nor does it need a dedicated client. You can use the good old cURL tool to fetch the current weather forecast by simply running the curl wttr.in command.
This gives you a quasi-graphical 3-day weather forecast right in the terminal. Needless to say, the sheer convenience of this approach makes wttr.in a great tool for users who spend a significant part of their daily computing in the terminal. Need to check the weather in another city? No problem, just run the curl wttr.in/CITY command, for example: curl wttr.in/Tokyo. wttr.in supports not only city name but also 3-letter airport codes, and you can even use IP addresses and domain names to get the weather forecast for alternate locations. The code that powers wttr.in is available on GitHub, so you can roll out a self-hosted wttr.in instance if you are so inclined.
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
ONLYOFFICE v9 Embraces AI
Like nearly all office suites on the market (except LibreOffice), ONLYOFFICE has decided to go the AI route.
-
Two Local Privilege Escalation Flaws Discovered in Linux
Qualys researchers have discovered two local privilege escalation vulnerabilities that allow hackers to gain root privileges on major Linux distributions.
-
New TUXEDO InfinityBook Pro Powered by AMD Ryzen AI 300
The TUXEDO InfinityBook Pro 14 Gen10 offers serious power that is ready for your business, development, or entertainment needs.
-
Danish Ministry of Digital Affairs Transitions to Linux
Another major organization has decided to kick Microsoft Windows and Office to the curb in favor of Linux.
-
Linux Mint 20 Reaches EOL
With Linux Mint 20 at its end of life, the time has arrived to upgrade to Linux Mint 22.
-
TuxCare Announces Support for AlmaLinux 9.2
Thanks to TuxCare, AlmaLinux 9.2 (and soon version 9.6) now enjoys years of ongoing patching and compliance.
-
Go-Based Botnet Attacking IoT Devices
Using an SSH credential brute-force attack, the Go-based PumaBot is exploiting IoT devices everywhere.
-
Plasma 6.5 Promises Better Memory Optimization
With the stable Plasma 6.4 on the horizon, KDE has a few new tricks up its sleeve for Plasma 6.5.
-
KaOS 2025.05 Officially Qt5 Free
If you're a fan of independent Linux distributions, the team behind KaOS is proud to announce the latest iteration that includes kernel 6.14 and KDE's Plasma 6.3.5.
-
Linux Kernel 6.15 Now Available
The latest Linux kernel is now available with several new features/improvements and the usual bug fixes.