Get Weather info from Linux Command Line | Cloud Resolve LLC

I have been using Linux since 1996 and just found out about this quick tip recently so I thought I would share. If you are ever curious about the weather conditions you can quickly access this information from the Linux Command Line. You can use a simple command to find out.

This simple command will give you the current weather for your location:

curl http://wttr.in

Or you can specify the location by placing the city at the end of the URL:

curl http://wttr.in/dallas or http://wttr.in/Dallas. 

There is also an optional Windows PowerShell version that seems to require a bit more work:

 (Invoke-WebRequest https://wttr.in/Dallas).RawContent

There is an additional view you can use with possible mixed results depending on your installed fonts.

Alternative URL:

curl http://v2d.wttr.in

In conclusion, we’ve shown you some of the more fun and interesting Linux commands that you can use to show your geeky side or just have a little bit of fun. We hope you enjoyed learning about them as much as we enjoyed writing this article. What are some of your favorite Linux commands? Let us know in the comments below!