| View previous topic :: View next topic |
| Author |
Message |
tilt Voice
Joined: 13 Feb 2008 Posts: 3
|
Posted: Fri May 30, 2008 12:23 am Post subject: |
|
|
Works like a charm, thanks!  |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri May 30, 2008 2:49 am Post subject: Re: script updated |
|
|
| DragnLord wrote: | | updated to 4.2.3 for the website changes |
Thanks so much, you rock! |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri May 30, 2008 3:35 am Post subject: |
|
|
| 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 |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri May 30, 2008 9:01 am Post subject: |
|
|
Looks like they weren't finished with the changes when I posted 4.2.3.
Script updated again. |
|
| Back to top |
|
 |
Meth Voice
Joined: 04 Jun 2008 Posts: 5
|
Posted: Wed Jun 04, 2008 1:32 am Post subject: |
|
|
Getting this error today...
| Code: | | [01:25] Tcl error [pub_wz_forecast]: invalid command name "get_wz_ver" |
|
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Jun 04, 2008 1:58 am Post subject: |
|
|
| 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 |
|
 |
Meth Voice
Joined: 04 Jun 2008 Posts: 5
|
Posted: Wed Jun 04, 2008 5:13 am Post subject: |
|
|
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 |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Jun 04, 2008 12:32 pm Post subject: |
|
|
| 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 |
|
 |
tassat Voice
Joined: 06 Jun 2008 Posts: 5
|
Posted: Fri Jun 06, 2008 6:47 pm Post subject: |
|
|
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 |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Jun 06, 2008 11:55 pm Post subject: |
|
|
| 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 |
|
 |
tassat Voice
Joined: 06 Jun 2008 Posts: 5
|
Posted: Sat Jun 07, 2008 11:25 am Post subject: |
|
|
thanks dragnlord i knew i was over looking something simple.
Works great |
|
| Back to top |
|
 |
doubleu Voice
Joined: 10 Feb 2008 Posts: 11
|
Posted: Wed Jul 16, 2008 10:02 am Post subject: |
|
|
i think weatherundergound broke it again!
[09:32] Tcl error [pub_wz]: can't read "outtitle": no such variable |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Jul 16, 2008 11:31 am Post subject: |
|
|
| 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 |
|
 |
doubleu Voice
Joined: 10 Feb 2008 Posts: 11
|
Posted: Wed Jul 16, 2008 12:24 pm Post subject: |
|
|
| wtf, now it's working! |
|
| Back to top |
|
 |
anotheregglover Voice
Joined: 13 Jan 2005 Posts: 38
|
Posted: Wed Jul 16, 2008 12:42 pm Post subject: |
|
|
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.
Hope it works for you guys. |
|
| Back to top |
|
 |
|