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.

Leave a Reply