ASCII weather app for the terminal
Check the Weather
After saving .wegorc
, you can call up the weather forecast as a normal user by typing wego
. The program references the file you just edited. If you want to discover what the weather is like elsewhere, enter wego <locatio> <[country]> <[days]>
in a terminal window (Figure 3). If you do not specify a number, Wego starts with the current date and gives a preview for the next two days.
Sometimes you need to play around a little and possibly omit the country or switch to a larger city nearby. This is true especially for sparsely populated or remote areas.
Along with cities, Wego also accepts IATA codes for airports. For example, wego BER
gives you the weather forecast for the notorious Berlin Brandenburg airport (still incomplete), and wego NRT
gives you Tokyo Narita. This feature can be useful: For example, typing LAX is faster than typing Los Angeles.
Alternatives
Other tools are available for displaying the weather at the command line. Another tool called Ansi-weather is quickly installed and offers useful options [2]. Because Ansi-weather comes with an API key, you won't need to complete online registration in order to use Ansi-weather. Using the Python Weather-CLI script [3] or the plain Weather [4] is even easier.
The fastest approach, however, is probably finger <city>@graph.no
. This variant only requires that the finger utility is installed, which is the default for many distributions. The slightly cryptic output does require some patience and practice when you come to interpreting the information (Figure 4).
Conclusions
Checking weather has never been faster: Press F12 to drop the Yakuake [5] terminal, then type wego
– you'll get to the weather in less than one second. Wego's ASCII art also has its charm. Command-line veterans will love this handy weather app, and Wego is also great for users who only occasionally launch a terminal.
Infos
- Wego: https://github.com/schachmat/wego
- Ansiweather: https://github.com/fcambus/ansiweather
- Weather-CLI: https://github.com/brianriley/weather-cli
- Weather: http://fungi.yuggoth.org/weather/
- Yakuake: https://en.wikipedia.org/wiki/Yakuake
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe 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
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.