Professional Documents
Culture Documents
Ansiweather - Weather in The Terminal Linux Magazine
Ansiweather - Weather in The Terminal Linux Magazine
Search:
Search
News Features Blogs White Papers Archives Special Editions DigiSub Shop
Productivity Sauce
Apr 27, 2016 GMT
Dmitri Popov
Sometimes the simplest tool can also prove to be an indispensable one. Take
Ansiweather, for example: this one-trick pony displays the current weather conditions
and forecast right in the terminal, and that's all it does. But if your daily computing
revolves around the terminal, having the ability to view weather info from the command
line can come in rather handy.
Ansiweather depends on a few packages which are available in the official software repositories of most
mainstream Linux distributions. To install them on Ubuntu and its derivatives, run the sudo apt-get install curl jq
http://www.linux-magazine.com/Online/Blogs/Productivity-Sauce/Ansiweather-Weather-in-the-Terminal 1/4
11/21/2018 Ansiweather: Weather in the Terminal » Linux Magazine
bc command, and you are done. Clone then the project's GitHub repository, and use the following commands to
copy the ansiweather script to the /usr/local/bin/ directory and change the script's ownership and permissions:
Run then the ansiweather command to view current weather conditions. By default, Ansiweather displays
weather info for your current location, but you can use the -l parameter to check the weather in other cities, for
example: weather -l berlin. To view a 5-day forecast, use the -F switch. Instead of specifying parameters on the
fly, you can create a configuration file, and the README file explains how to do that.
LOG IN WITH
OR SIGN UP WITH DISQUS ?
Name
✉ Subscribe d Add Disqus to your siteAdd DisqusAdd 🔒 Disqus' Privacy PolicyPrivacy PolicyPrivacy
Issue 217/2018
Content
Order Print Issue
Subscribe
DevOps
http://www.linux-magazine.com/Online/Blogs/Productivity-Sauce/Ansiweather-Weather-in-the-Terminal 2/4
11/21/2018 Ansiweather: Weather in the Terminal » Linux Magazine
Security As Code
AWX
Become a certified DevOps professional with the new Linux Professional Institute DevOps Tools Engineer
certification.
News
Red Hat Reports $823 Million in Revenue for Second Quarter 2019
Red Hat , Red Hat Linux
Strong performance for cloud and container products leads to a 14% increase over last year.
A security researcher says Linux vendors wait too long to patch the kernel.
NextCloud 14 Arrives
The new version adds two new security features for users.
Tag Cloud
http://www.linux-magazine.com/Online/Blogs/Productivity-Sauce/Ansiweather-Weather-in-the-Terminal 3/4
11/21/2018 Ansiweather: Weather in the Terminal » Linux Magazine
Administration Community Events Hardware Linux Linux New Media Linux Pro Magazine
Mobile Programming Software Ubuntu Web Development Windows free software open source
ut Us
e for Us
tact
al Notice
acy Policy
nage Subscription
http://www.linux-magazine.com/Online/Blogs/Productivity-Sauce/Ansiweather-Weather-in-the-Terminal 4/4