Having the
weather on your desktop environment for GNU / Linux is a very easy thing by adding widgets and other applets, so how to do with those who just use the terminal?
Wego: weather forecasts at any time in your terminal
Wego is a stylish
weather app for the
terminal. Thanks to a ncurses-based interface, this application allows you to see the conditions and
forecasts at a glance. It retrieves the weather forecast for next 5 days weather forecast via
API.
Install Wigo on your GNU / Linux distribution
Wego is written in
Go language, so the first step is to install the
Go language. After installation of
Go, proceed to
Wego installation.
GO Installation
- Arch Linux / Manjaro :
- Debian / Ubuntu :
sudo apt-get install golang
|
- Fedora :
Wego Installation
Copy these lines in a terminal:
go get github.com /schachmat/wego
echo 'export PATH="$PATH:$GOPATH/bin"' >> ~/.bashrc
source ~/.bashrc
|
Otherwise on Archlinux & Manjaro, use yaourt and it's all good
Wego requires an API key for weather forecasts. you can take the key from this site https://developer.worldweatheronline.com/ after registration.
You have to copy the key in Wego's configuration file:
{
"APIKey" : "COLLER-LA-CLE-ICI" ,
"City" : "Paris" ,
"Imperial" : false ,
"Lang" : "fr"
}
|
Once the key is copied into the configuration file, just run Wego as follows:
Aucun commentaire:
Enregistrer un commentaire