vendredi 11 septembre 2015

Wego: weather forecasts at any time in your terminal!

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?

weather

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 :
  • sudo pacman -S go
  • Debian / Ubuntu :
  • sudo apt-get install golang
  • Fedora :
  • sudo yum install golang

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 

yaourt -S wego-git

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:

nano ~/.wegorc
{
        "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:
wego

Aucun commentaire:

Enregistrer un commentaire