weather program

Steve Holmes steve at holmesgrown.com
Wed Jun 16 16:00:23 EDT 2004


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

I think people have mentioned such a beast but I have a shell script
here that invokes lynx and retrieves weather info from
braille.wunderground.com.  It takes a city or zip code as a single
parm to retrieve the information appropriate to the area you request.
It works pretty good and is fun to pipe through software dectalk or
flite too.:)

BTW, Thanks to Raul Gallegos for having posted this to the list before.
- ----- Begin script -----
#!/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 -dump -nostatus "http://braille.wunderground.com/cgi-bin/findweather/getForecast?query=$QUERY"
- ----- End script -----

On Wed, Jun 16, 2004 at 01:18:46PM -0400, Roy Nickelson wrote:
> Hi,
> is there a program for linux that will go out on the internet and getthe 
> current temperature?  Sort of like tweather for windows?
> Roy
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 

- -- 
HolmesGrown Solutions
The best solutions for the best price!
http://ld.net/?holmesgrown
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFA0KbMWSjv55S0LfERAvPBAJ40XEgpYFnaoI/M0VsPfjxrjMH6bgCgx7cp
PBMoGzL4cOaBg5JNjjL8utY=
=6s8V
-----END PGP SIGNATURE-----




More information about the Speakup mailing list