Daniel G. Cosenza

Daniel G. Cosenza

About me
Code of Conduct

Video
LBRY - YouTube

Contact me
Send me an email

Social Networks
Twitter - Facebook
LinkedIn - Instagram
Reddit - ICObench

Development
GitHub - Docker

My Current Projects
Seed of World™
How to Find the Current Weather from Linux Command Line [Linux]
Date & Time Nov 21, 2019 - 11:58 AM
Tags Linux Command Line Weather

If you are a command line enthusiast, you can find the weather with a few lines.

You can simply enter the following in a terminal to find the weather:

curl wttr.in
You will get your location from 'timezone' in the folder 'etc'.

Weather Timezone

If you want to find the weather of an specific city, enter this code:

curl wttr.in/Rosario
Weather Rosario

You can also compares the weather of two cities with this code:

diff -Naur <(curl -s http://wttr.in/Rosario ) <(curl -s http://wttr.in/Buenos-Aires)
Weather Two Cities

There's a plenty of ways to find the weather from command line on Linux, but I like this service among the rest

Feel free to email me and make any suggestions.

Return to home