< if {[regexp {[0-9]} $location]} {
---
> if {[regexp {[0-9]{5}} $location]} {
Could prolly use anchors in there as well, just to distinguish a zip from other alpha-numeric names. Tested this with several names from antarctica that have alpha-numeric names, with and without hyphens, etc. Seems to be working well for me.
Three months ago I converted the script to use TCL's http package.
Since I changed it over I have seen a few posts about problems with windrop using http, and that version of the script is slower.
I will be keeping the current method (TCL socket) for my script.
after doing .wzf <city> <country> which displays correctly with no problem
then once that report has completed doing another city, example: .wz london uk brings up
Tcl error [pub_wz]: can't use non-numeric string as operand of "-"
rehash of eggdrop gives another successful display provided its only the command .wz <city> <country>
do .wzf <city> <country> again and it returns error as above once more
version is 3.5.9-a.tcl
wondered if it does this with you or if its already been raised?
cheers
Dave London uk
ok thank you, I got the latest version now
can you add the pressure from weather underground into your script is this possible, you got moon and sunrise - ta?
##
## Version Info
##
## v3.5.9-a Feb 28 2006
## -Changes due to website
## -Added variable for output method
##
## v3.5.9 Feb 26 2006
## -Changes to forecastp
^ taken from old weather3.5.9a.tcl code ^
The current weather3.8.2.tcl doesn't have anything in it nor is
there a website that maintains the changelog revisions for each release...
Changes are done as needed to keep the script operational, if you want details on what has changed use a program that compares files (I stated that before).
I got tired of 97% of revisions stating "fix for website changes".
I am not obligated in any manner to include a list of revisions, neither in the script nor on a website. To put this further, I am not obligated to publicly release my scripts.
This script is maintained for my own use, released to the public only due to sheer generosity.
SIMPLE SOLUTION:
If you have a problem with the lack of listed revisions, stop using the script.