Checking the Weather Forecast at the Command Line
18 October, 2021
Here’s the latest in an irregular series of short posts that introduce a few Linux terminal tricks.
Besides sticking your head out the window, what do you do when you want to find out what the day’s weather is going to be like? Chances are you jump over to a weather service website or fire up an app on your phone.
Why not crack open a terminal window instead? All you need is a command line utility called cURL. cURL is standard kit with most Linux distributions. If it isn’t installed on your computer, you can get cURL using your package manager.
How do you use cURL to check a weather forecast? At the command line, type this:
curl wttr.in
Then, press Enter. Something like this displays after a few moments: