O T weather underground

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is a weather script I us.  Works real nice.  I just type at a 
prompt for example:

wxw 80222

And I get the weather for Denver Colorado.

Script follows:

#!/bin/bash

if [ "$#" -lt "1" -o "$#" -gt "2" ] ;then
	echo "Usage: wxw zip or wxw cityname."
	echo "Example: wxw 66212 or wxw Overland Park"
	exit 1
fi

if [ "$#" -eq "1" ] ;then
	QUERY="$1"
	else
	QUERY="$1+$2"
fi

lynx "http://braille.wunderground.com/cgi-bin/findweather/getForecast?query=$QUERY";

- -- 
Raul a. Gallegos - http://www.asmodean.net
Do you like 80's music?  Do you want to spend some time on Saturdays listening?
Visit http://www.chosen80s.com for all the details.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAHHeYas0vKmIuNMcRAqciAJ9RtWnxOf3NWz8CP7ZNFfdj8y8zTACgrhfU
PkA1pBQiFuwqz+N94VGRobg=
=Qxpu
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux