This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

DragnLord's weather script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Still not on tcl archive, are we waiting on webmaster to upload it? I went to your personal website and seen old version listed.

cache
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Re: Update

Post by rosc2112 »

DragnLord wrote: Alphanumeric (letters and numbers) names are still an issue though.
Found an easy way to fix the alpha-numeric issue:

Code: Select all

<       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.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

thanks, I tried that when I added \s and \Z to the switches and forgot to follow through on all the iterations (only changed the first)

nice to see it work for 7-M Ranch, California now
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

v3.8.2

Post by DragnLord »

Script changed to fix non-U.S. forecasts and U.S. precipitation report.

I may remove the precipitation from the script (since it's only applicable to U.S. locations, and this is designed for international weather).
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

side note about script methods

Post by DragnLord »

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.
r
redtube
Voice
Posts: 10
Joined: Wed Mar 01, 2006 4:01 pm

tcl error bug

Post by redtube »

getting error

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
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Re: tcl error bug

Post by DragnLord »

redtube wrote: version is 3.5.9-a.tcl
READ THE FIRST POST, I DO NOT SUPPORT OUTDATED VERSIONS!

Update to the latest version, v3.8.2, which is in egghelp's tcl archive.
r
redtube
Voice
Posts: 10
Joined: Wed Mar 01, 2006 4:01 pm

Post by redtube »

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?
t
thegleek
Voice
Posts: 2
Joined: Fri Aug 04, 2006 2:52 pm
Contact:

Re: 3.7 released to public

Post by thegleek »

popmonkey wrote:i know, i'm already getting ready to be derided for daring to ask (you really have a way with people)

but: is there a change list somewhere?
I second that motion... What happened to the revision changes?

Code: Select all

##
##      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...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

## Script: Weather V3.7-a
## Orignal code by: murf
## Modified and fixed by: DragnLord
thegleek wrote:... nor is there a website that maintains the changelog revisions for each release...
This forum would be where changes, fixes or other pertinent information would be posted.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

about changes

Post by DragnLord »

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.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

redtube wrote:can you add the pressure from weather underground into your script is this possible, you got moon and sunrise - ta?
Of course this is possible, however I have no personal use for this. It may make it into some future version.
m
minted
Halfop
Posts: 64
Joined: Wed Jul 20, 2005 9:58 am

Post by minted »

i just upgraded to the latest version of the script (was previously using 3.5 i think, still worked though).

now this latest version wont work for me

Tcl error [pub_wz]: can't read "wz_quiet": no such variable

set errorInfo

Currently: can't read "wz_quiet": no such variable
Currently: while executing
Currently: "lsearch -exact $wz_quiet $chan"
Currently: (procedure "pub_wz" line 12)
Currently: invoked from within
Currently: "pub_wz $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

did you restart your bot?
by default the script has:

Code: Select all

set wz_quiet "#eggdrop"
so your error makes no sense, unless you have removed that setting
m
minted
Halfop
Posts: 64
Joined: Wed Jul 20, 2005 9:58 am

Post by minted »

just restarted it, and it appears to be working perfect.
no idea what was wrong.
i fugured rehashing would have been enough.

tnx for the speedy responce.
Post Reply