egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DragnLord's weather script
Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 22, 23, 24  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
tilt
Voice


Joined: 13 Feb 2008
Posts: 3

PostPosted: Fri May 30, 2008 12:23 am    Post subject: Reply with quote

Works like a charm, thanks! Very Happy
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri May 30, 2008 2:49 am    Post subject: Re: script updated Reply with quote

DragnLord wrote:
updated to 4.2.3 for the website changes


Thanks so much, you rock!
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri May 30, 2008 3:35 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri May 30, 2008 9:01 am    Post subject: Reply with quote

Looks like they weren't finished with the changes when I posted 4.2.3.
Script updated again.
Back to top
View user's profile Send private message
Meth
Voice


Joined: 04 Jun 2008
Posts: 5

PostPosted: Wed Jun 04, 2008 1:32 am    Post subject: Reply with quote

Getting this error today...

Code:
[01:25] Tcl error [pub_wz_forecast]: invalid command name "get_wz_ver"
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Jun 04, 2008 1:58 am    Post subject: Reply with quote

Meth wrote:
Getting this error today...

Code:
[01:25] Tcl error [pub_wz_forecast]: invalid command name "get_wz_ver"

post result of errorInfo
Back to top
View user's profile Send private message
Meth
Voice


Joined: 04 Jun 2008
Posts: 5

PostPosted: Wed Jun 04, 2008 5:13 am    Post subject: Reply with quote

Here is the errorInfo message from the partyline

Code:

[ 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:
[05:10] Tcl error [pub_wz]: invalid command name "get_wz_ver"


.wzf is tpyed
Code:
[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
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Jun 04, 2008 12:32 pm    Post subject: Reply with quote

Quote:
[ 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:
   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)
Back to top
View user's profile Send private message
tassat
Voice


Joined: 06 Jun 2008
Posts: 5

PostPosted: Fri Jun 06, 2008 6:47 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Jun 06, 2008 11:55 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
tassat
Voice


Joined: 06 Jun 2008
Posts: 5

PostPosted: Sat Jun 07, 2008 11:25 am    Post subject: Reply with quote

thanks dragnlord i knew i was over looking something simple.


Works great
Back to top
View user's profile Send private message
doubleu
Voice


Joined: 10 Feb 2008
Posts: 11

PostPosted: Wed Jul 16, 2008 10:02 am    Post subject: Reply with quote

i think weatherundergound broke it again!

[09:32] Tcl error [pub_wz]: can't read "outtitle": no such variable
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Jul 16, 2008 11:31 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
doubleu
Voice


Joined: 10 Feb 2008
Posts: 11

PostPosted: Wed Jul 16, 2008 12:24 pm    Post subject: Reply with quote

wtf, now it's working!
Back to top
View user's profile Send private message
anotheregglover
Voice


Joined: 13 Jan 2005
Posts: 38

PostPosted: Wed Jul 16, 2008 12:42 pm    Post subject: Reply with quote

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:

--- 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:

   set outtitle ""


Hope it works for you guys.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 22, 23, 24  Next
Page 15 of 24

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber