Black God

Weather report at command line in Linux

Are you a 24×7 command line guy? Chances of not switching to X console in your linux distro are more for you. Here is a command line weather report tool for you. This tool helps you to plan for your week-end trip while you are compiling some junks. It is easy to get it. Here is how I got this weather-util tool version  in Ubuntu 10.04.

How to install it in Ubuntu?

$ sudo apt-get install weather-util

How to use this tool?

Here is a sample usage to get weather report of San Jose, CA.

$ weather –forecast –no-conditions –city=san_jose –st=ca

City Forecast for San Jose, CA
Issued Thursday afternoon – Jul 15, 2010
Thursday night… Low 61, 0% chance of precipitation.
Friday… Sunny, high 90, 0% chance of precipitation.
Friday night… Low 62, 0% chance of precipitation.
Saturday… Sunny, high 88.
Saturday night… Low 59.

You can find your city and state argument in http://weather.noaa.gov/pub/data/forecasts/city/

It is up to you to have a small script to list down your favorite areas. Hope it may be useful for you!

3 comments for “Weather report at command line in Linux

  1. spuffler
    September 23, 2013 at 2:14 am

    2013 Sept 22: Today, I installed version is 2.0, some syntax has changed: do not use = after city or state options.
    FWIW, using weather to search for a popular city name can produce nothing you can use yet have 74 matches. Seems the program dislikes presenting large lists of matches.

    spuffler@Kubuntu-13:~$ weather concord
    Searching via name…
    Your search is too ambiguous, returning 74 matches.
    spuffler@Kubuntu-13:~$

  2. nfo
    September 8, 2010 at 5:17 pm

    sadly this tool gives you only a forecast for US states..

  3. July 19, 2010 at 3:01 pm

    I really appreciate for this post. keep posting up.
    Thanks for sharing useful information about Linux,that is very interesting post.

    Regard: Bill port

Leave a Reply

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