Ansiweather: Weather in the Terminal
Productivity Sauce
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 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.
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.