$cat /home/rajulocal/.weatherrcAfter that you can get the current weather conditions and forecast by using the weather command.
City = ITHACA
Forecast = True
ID = KITH
St = NY
$weatherWeather uses METAR data that it fetches from the the National Oceanic and Atmospheric Administration and forecasts from the National Weather Service. The list of weather stations and their codes can be obtained from http://www.rap.ucar.edu/weather/surface/stations.txt .
Current conditions at Ithaca Tompkins Regional Airport (KITH)
Last updated Feb 26, 2008 - 05:56 PM EST / 2008.02.26 2256 UTC
Wind: from the WNW (300 degrees) at 3 MPH (3 KT)
Sky conditions: obscured
Weather: light snow; mist
Precipitation last hour: A trace
Temperature: 31.1 F (-0.5 C)
Relative Humidity: 95%
City Forecast for Ithaca, NY
Issued Tuesday afternoon - Feb 26, 2008
Tuesday night... Low 21, 100% chance of precipitation.
Wednesday... Snow showers, high 22, 80% chance of precipitation.
Wednesday night... Low 9, 40% chance of precipitation.
Thursday... Very cold, high 19.
Thursday night... Low 9.
Tested on Debian Etch using
$weather --versionRelated links :-