Awesome Linux Weather App to Forecast For 1 to 5 Days

wego is a cool weather client for your Linux terminal, it will display the weather in ASCII. It can show you the forecast for 1 to 5 days, in metric or imperial and also can use SSL for security. It will show you the temperature, the wind speed and direction, the viewing distance and the precipitation amount and probability

How to install

To install wego we must first install the dependencies using the following command in Ubuntu:

$ sudo apt-get install golang-go git

Next you are ready to install wego like this

$ export GOPATH=/home/yourusername/gocode
$ go get github.com/schachmat/wego
$ cd ~/gocode/bin

Now we will run wego for the first time to create the configuration file, it should give you the following message:

$ ./wego
2015/05/21 20:06:36 No API key specified. Setup instructions are in the README.

Next you will need to go to Worldweatheronline website to get an API key for your little app. The following page will appear:

register page

You will have to enter you valid email address, name and password to get an API key, after you register you will need to verify the account from the email you receive. The next thing you will see will look like this:

api-key

Next open the file ~/.wegorc with your favorite text editor and add your API key to it, the file should look something like this:

wego-api

You can also set the city you wish to get weather by default with the app.

Using wego

You are all set you can now run the application from it's directory using the ./wego command, you should get a result like this:

$ ./wego

wego

You can also use to get weather information from other cities like so:

$ ./wego bucharest

wego bucharest

That's it, we hope you will enjoy your cool Linux console weather application, if you have any issue with the installation or using it you can leave us a comment.

About Adrian Dinu

I’ve been a Linux enthusiast since 1998 and been working as a Linux Admin in the past 8 years with a lot of love for computers and networks.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.

6 Comments

  1. Hi, I am on Linux Mint 17.1 Mate 32. I installed the app following your steps. Now when I start it, it responds:
    ~/gocode/bin $ ./wego
    2015/05/26 14:44:38 Malformed response.
    Is there a logfile?
    How to uninstall it - just delete the gocode folder?

    1. Hello,

      Have you set you API key ? It looks like the API key is not setup in the file ~/.wegorc or a wrong type of key is used.

  2. Hello, i follow the instructions but i have the following error
    i will appreciate any help on this, regards

    pi@raspberrypi:~/gocode $ go get github.com/schachmat/wego
    # github.com/schachmat/ingo
    src/github.com/schachmat/ingo/in.go:92: undefined: flag.UnquoteUsage
    pi@raspberrypi:~/gocode $

  3. Hi,
    For those who it doesnt work, you can always just type:
    curl wttr.in/ and thats it.

    Examples:
    curl wttr.in/JFK
    curl wttr.in/99207
    curl wttr.in/mun