Displays the local weather information. Mostly I'm playing with Rust.
You need to have Rust (incoming branch), then just rustc rweather.rs
to build it.
From the command line: rweather <code>
The code is any code that weather.noaa.gov will return a value for. Try your local ICAO airport code. In the US it's your normal airport code prefixed with a K, e.g. KLAX for Los Angeles, KSFO for San Francisco, etc. In Canada it's the airport code prefixed with a C - CYVR for Vancouver.
You type: rweather CYVR
Output:
Vancouver International Air-Port, B. C., Canada (CYVR) 49-11N 123-10W 2M
Apr 25, 2013 - 01:00 AM EDT / 2013.04.25 0500 UTC
Wind: Calm:0
Visibility: 30 mile(s):0
Sky conditions: mostly cloudy
Temperature: 55 F (13 C)
Dew Point: 41 F (5 C)
Relative Humidity: 58%
Pressure (altimeter): 30.09 in. Hg (1018 hPa)
ob: CYVR 250500Z 00000KT 30SM BKN240 13/05 A3009 RMK CI2 SLP188
cycle: 5
If you actually want something that does this for long term usage, I'd recommend weather-util, which is in Ubuntu repos.