The Nerdy Sixty | (47/60) Weather in Terminal | Solution

Get a weather forecast in the terminal using a simple curl command. What service can you use?

Hint 1: Think of an online service that provides weather info as plain text via curl.

Hint 2: Try `curl wttr.in` or `curl wttr.in/London`.

 

Solution:

You can get weather info in the terminal by running `curl wttr.in`. It returns the current weather and a 3-day forecast in an ASCII-art format. Add a city name (e.g., wttr.in/Paris) for specific locations.

 

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Cookie Notice by Real Cookie Banner