############################################################################### ############################################################################### ## Weather V3.0 ## ## by Murf ## ## ## ## Undernet Lives! ## ## ## ## This script is the third rev of my weather script and it now pulls ## ## weather from www.wunderground.com and gets US weather by city or zip and ## ## international weather by city. Added improvements to this version, ## ## check the version info for changes. ## ## ## ############################################################################### ## Runs on tcl 8.0, most likley on egg 1.4 (not tested) and up ## ## (tested on 1.6.2, TCL 8.3.2). ## ############################################################################### ## Parsing of the input is very klunky and hopefully will get better. ## ## ## ## These are public and message commands, not partyline! ## ## Usage: .wz [-d] [-o] [help] [country] ## ## or /msg bot .wz [-d] [-o] [country] ## ## ## ## state should be the two letter state code ## ## country defaults to US and is not needed for US weather ## ## ex. .wz denver,co ## ## .wz 11111 ## ## ## ## Canada is a special case, and requires the following syntax ## ## ## ## .wz city,province ca ## ## ex .wz toronto,on ca ## ## ## ## -d will set a default allowing user to just type .wz ## ## -o will give output in long format ## ## ## ## Country codes now match standard internet country codes as closely as ## ## possible, but .wzc allows users to search for their code. Input to .wz ## ## can be entererd as full country name. ## ## ## ## .wzc or /msg bot .wzc ## ## ## ## Version Info ## ## - Added caching to spead things up a bit ## ## - Fixed bug when temp reports N/A ## ## ## ## v3.0 Feb 20 2001 ## ## - Major rewrite to switch site to www.wunderground.com ## ## - Made country codes match internet country codes as closely as ## ## possible. ## ## ## ## ## ## v2.1 Jan 28 2001 ## ## - Rewrote function to capitalize city names to remove ## ## string replace, also a damn 8.1 function. ## ## - Removed some garbage on a toupper command that 8.1 ignored ## ## but 8.0 doesn't. ## ## - Removed advanced regexp commands which rely on Tcl 8.1, ## ## hopefully that is the last of the 8.1 dependancies ## ## - Added message commands ## ## - Removed string is and string totitle ## ## - Added option to turn off public commands per channel or ## ## completely ## ## - Added last update time for weather report ## ## - Added error catching to socket open ## ## - Cleaned up code ## ## - Added -o flag. -o will reverse default output between long ## ## and short output ## ## ## ## ## ## Questons & comments to murf@mindless.com ## ############################################################################### ###############################################################################