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
t
tilt
Voice
Posts: 3
Joined: Wed Feb 13, 2008 1:33 am

Post by tilt »

Works like a charm, thanks! :D
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Re: script updated

Post by cache »

DragnLord wrote:updated to 4.2.3 for the website changes
Thanks so much, you rock!
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

DragnLord wrote:yep, they changed the website
keep an eye out for a version update
Everything works so far but I do get that same error trying .wz London UK and same error for .wz canberra australia
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

Looks like they weren't finished with the changes when I posted 4.2.3.
Script updated again.
M
Meth
Voice
Posts: 5
Joined: Wed Jun 04, 2008 1:21 am
Contact:

Post by Meth »

Getting this error today...

Code: Select all

[01:25] Tcl error [pub_wz_forecast]: invalid command name "get_wz_ver"
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

Meth wrote:Getting this error today...

Code: Select all

[01:25] Tcl error [pub_wz_forecast]: invalid command name "get_wz_ver"
post result of errorInfo
M
Meth
Voice
Posts: 5
Joined: Wed Jun 04, 2008 1:21 am
Contact:

Post by Meth »

Here is the errorInfo message from the partyline

Code: Select all

[ 5:43am ] Currently: invalid command name "get_wz_ver"
[ 5:43am ] Currently:     while executing
[ 5:43am ] Currently: "get_wz_ver"
[ 5:43am ] Currently:     (procedure "wz_parse" line 3)
[ 5:43am ] Currently:     invoked from within
[ 5:43am ] Currently: "wz_parse $nick $handle $location $outtarg"
[ 5:43am ] Currently:     (procedure "pub_wz" line 18)
[ 5:43am ] Currently:     invoked from within
[ 5:43am ] Currently: "pub_wz $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
.wz is typed in chan

Code: Select all

[05:10] Tcl error [pub_wz]: invalid command name "get_wz_ver"
.wzf is tpyed

Code: Select all

[05:10] 05:11] Tcl error [pub_wz_forecast]: invalid command name "get_wz_ver"
Not sure if you are looking for some other info let me know.

Appreciate the help m8, as well as all your hardwork.

Meth
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

[ 5:43am ] Currently: "get_wz_ver"
[ 5:43am ] Currently: (procedure "wz_parse" line 3)
tells me that your editor broke that line, possibly due to a "word wrap" feature.

this is what line 2 is in the script

Code: Select all

   global allow_user_def_wz botnick wz_long wz_cache wz_unit wz_tunit get_time_f get_pn_f get_sr_f get_mn_f wzshort get_wz_ver
(all on one line)
t
tassat
Voice
Posts: 5
Joined: Fri Jun 06, 2008 6:43 pm

Post by tassat »

SOLVED


i need a nudge in the right direction. i have installed the latest script and can /msg mybot .wz .... and can obtain the weather info.

from the channel i cannot get .wz to work and ideas would be helpfull.
Last edited by tassat on Sat Jun 07, 2008 11:22 am, edited 1 time in total.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

tassat wrote:i need a nudge in the right direction. i have installed the latest script and can /msg mybot .wz .... and can obtain the weather info.

from the channel i cannot get .wz to work and ideas would be helpfull.
Try reading the information that is in the top part of the script. Give lots of attention to the part that involves the chanset command.
t
tassat
Voice
Posts: 5
Joined: Fri Jun 06, 2008 6:43 pm

Post by tassat »

thanks dragnlord i knew i was over looking something simple.


Works great
d
doubleu
Voice
Posts: 11
Joined: Sun Feb 10, 2008 11:19 pm

Post by doubleu »

i think weatherundergound broke it again!

[09:32] Tcl error [pub_wz]: can't read "outtitle": no such variable
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

doubleu wrote:i think weatherundergound broke it again!

[09:32] Tcl error [pub_wz]: can't read "outtitle": no such variable
What location are you asking for?
I've had one other report of this, however, I have not encountered this for any location I check.
d
doubleu
Voice
Posts: 11
Joined: Sun Feb 10, 2008 11:19 pm

Post by doubleu »

wtf, now it's working!
a
anotheregglover
Voice
Posts: 38
Joined: Thu Jan 13, 2005 12:01 am
Contact:

Post by anotheregglover »

Hi,

I made the following patch for a friend which seems to work fine. My copy of 4.2.4 never stopped working, so I don't know why it didn't work for some of you guys.

But this patch seems to solve the problem regardless.

Code: Select all

--- weather.tcl.old	2008-07-16 11:40:45.000000000 -0500
+++ weather.tcl	2008-07-16 11:35:10.000000000 -0500
@@ -749,6 +749,7 @@
 		lappend html $http
 		join html
 	}
+	set outtitle ""
 	regsub -all {\{|\}} $html {} html
 	regsub -all {<script.*?</script>} $html {} html
 	regsub -all {<img.*?>} $html {} html
For those not familiar with applying patches, add the following at line 752. The current line 752 would move down to line 753.

Code: Select all

	set outtitle ""
Hope it works for you guys.
Post Reply