TNW Conference 2022 will be bigger, bolder, and better! Get your tickets now >>

The heart of tech

This article was published on February 19, 2016

Real geeks get their weather forecasts in the terminal

Real geeks get their weather forecasts in the terminal
Owen Williams
Story by

Owen Williams

Former TNW employee

Owen was a reporter for TNW based in Amsterdam, now a full-time freelance writer and consultant helping technology companies make their word Owen was a reporter for TNW based in Amsterdam, now a full-time freelance writer and consultant helping technology companies make their words friendlier. In his spare time he codes, writes newsletters and cycles around the city.

If you’re a developer, you probably already spend a lot of your timing living in the terminal. Well, now there’s a live weather service you can call and it’ll draw the forecast for the week right in your terminal window.

Head over to terminal and paste in the following line, substituting the city name for wherever you want to check:

curl -4 http://wttr.in/Amsterdam

Screen Shot 2016-02-19 at 11.38.10 AM

Boom, you’ll get a beautifully ASCII-rendered forecast of the weather for the week. If you want to use it long term, Wttr.in is actually just an online frontend for the wego package, which can run locally on your machine to get the weather.

Take it to the next level and install wego on your machine, then drop ‘wego yourcityhere’ in your .profilerc file and you’ll get the latest weather every time you open the terminal.

Given that you can control your music player and even browse Reddit in the terminal, why would you ever leave?

Wttr.in