Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

11/21/2018 Ansiweather: Weather in the Terminal » Linux Magazine

Search:

Search

News Features Blogs White Papers Archives Special Editions DigiSub Shop

Desktop Development Hardware Security Server Programming Operating Systems Software


Networking Administration
Home » Online » Blogs » Productivity Sauce » Ansiweather: We... Login

Ansiweather: Weather in the Terminal

« previous post next post »

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:

sudo cp ansiweather /usr/local/bin/


sudo chown root:root /usr/local/bin/ansiweather
sudo chmod 755 /usr/local/bin/ansiweather

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.

« previous post next post »

0 Comments Linux Magazine 


1 Login

 Recommend t Tweet f Share Sort by Best

Start the discussion…

LOG IN WITH
OR SIGN UP WITH DISQUS ?

Name

Be the first to comment.

✉ Subscribe d Add Disqus to your siteAdd DisqusAdd 🔒 Disqus' Privacy PolicyPrivacy PolicyPrivacy

Issue 217/2018
Content
Order Print Issue
Subscribe

Buy this issue as a PDF


Digital Issue: Price $12.99
(incl. VAT)

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

Reinvent your network with DevOps tools and techniques:


Kubernetes Kickoff

Security As Code

AWX

Infrastructure as Code with Terraform

Ansible Configuration Management

Become a certified DevOps professional with the new Linux Professional Institute DevOps Tools Engineer
certification.

News

OpenStack Foundation Changes Name of the OpenStack Summit


New event will be known as the Open Infrastructure Summit

System76 Announces a Line of US-Made PCs


Thelio series is available for pre-order and will ship in early December.

IBM Acquires Red Hat


IBM is acquiring Red Hat, the most successful open source company.

Fedora 29 and Ubuntu 18.10 Released


New releases focus on boot time, new hardware, and modular design.

Redis Labs Modules Forked


New Commons Clause license rider causes Debian and Fedora developers to fork Redis Labs modules.

Microsoft Offers its Patent Portfolio


The company ends its long war; vows to protect Linux.

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.

Debian, Ubuntu, and Other Distros are Leaving Users Vulnerable


Security

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.

Linus Torvalds Takes a Break, Apologizes


The creator of Linux is admitting his abusive behavior on LKML and plans to change.

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

Glossary © 2018 Linux New Media USA, LLC

http://www.linux-magazine.com/Online/Blogs/Productivity-Sauce/Ansiweather-Weather-in-the-Terminal 4/4

You might also like