We're an ISO27001:2013 Certified Supplier

wttr output

Just for fun: here’s how to get the weather forecast for the next three days on your console (or terminal):

$ curl wttr.in/

By default, wttr.in will use your IP address to determine your location, so it may not be particularly accurate. You can specify a location:

$ curl wttr.in/london

The full output is shown in the image at the top of this page.

American Default

However, as is often the case, the service is US-centric, so specifying wttr.in/monmouth showed me the weather in “Monmouth, United States of America”:

monmouth, usa, weather

This can be fixed by giving a “search” location, specified by preceding the location with a tilde (~) and separating words with a plus sign:

monmouth, wales, weather

The search facility is flexible: curl -s wttr.in/~eiffel+tower does what you’d expect.

Did This Linux Tip Brighten Your Day?

Let us know in the comments below.

Leave a Reply

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

Secure. Reliable. Scalable.

If that doesn't describe your current Linux systems, check out our FREE Linux Survival Guide to help you get your systems up to scratch today!

  • This field is for validation purposes and should be left unchanged.