| View previous topic :: View next topic |
| Author |
Message |
stoneone Voice
Joined: 19 Dec 2008 Posts: 6
|
Posted: Mon Dec 22, 2008 3:18 pm Post subject: |
|
|
@Fl00k and the others with wzsock var errors.
When you modify the line 745, you must keep this before the second catch statement:
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
If not you never set the wzsock var to anything and thus it returns that (my best guess at what is going wrong in pub_wz). Let me know if this doesn't work. Accordingly, here is the full snippit of code:
| Code: | ## Open socket to www.wunderground.com and read in webpage...use async for faster
## response.
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
if {[catch {
puts $wzsock "GET $webpage HTTP/1.0"
puts $wzsock "Host: www.wunderground.com"
puts $wzsock "Cookie: Units=both"
puts $wzsock ""
} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
flush $wzsock
|
Edit: I know the formatting is a little bit different than what I posted a few pages back, but the second catch statement is the exact same. I just copy pasted from my .tcl. |
|
| Back to top |
|
 |
Meth Voice
Joined: 04 Jun 2008 Posts: 5
|
Posted: Mon Dec 22, 2008 6:56 pm Post subject: |
|
|
| stoneone wrote: | @Fl00k and the others with wzsock var errors.
When you modify the line 745, you must keep this before the second catch statement:
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
If not you never set the wzsock var to anything and thus it returns that (my best guess at what is going wrong in pub_wz). Let me know if this doesn't work. Accordingly, here is the full snippit of code:
| Code: | ## Open socket to www.wunderground.com and read in webpage...use async for faster
## response.
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
if {[catch {
puts $wzsock "GET $webpage HTTP/1.0"
puts $wzsock "Host: www.wunderground.com"
puts $wzsock "Cookie: Units=both"
puts $wzsock ""
} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
flush $wzsock
|
Edit: I know the formatting is a little bit different than what I posted a few pages back, but the second catch statement is the exact same. I just copy pasted from my .tcl. |
Thanks stone that worked perfectly happy holidays m8. _________________ -We all go a little mad SomeTymes. |
|
| Back to top |
|
 |
Bonnie Voice
Joined: 09 Dec 2004 Posts: 23
|
Posted: Mon Dec 22, 2008 11:43 pm Post subject: |
|
|
Is this the error that you all are getting?
couldn't open socket: host is unreachable
Try again later, look out the window till then!
Bonnie |
|
| Back to top |
|
 |
Meth Voice
Joined: 04 Jun 2008 Posts: 5
|
Posted: Tue Dec 23, 2008 3:50 am Post subject: |
|
|
| Bonnie wrote: | Is this the error that you all are getting?
couldn't open socket: host is unreachable
Try again later, look out the window till then!
Bonnie |
I was just getting no such var wzsock but its all good after the above explanation from stone. _________________ -We all go a little mad SomeTymes. |
|
| Back to top |
|
 |
cdr Voice
Joined: 24 Dec 2008 Posts: 3
|
Posted: Wed Dec 24, 2008 12:15 am Post subject: |
|
|
Tcl error [pub_wz_forecast]: can't read "forecast": no such variable
Its not working for me...help plz |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Dec 28, 2008 7:14 pm Post subject: 4.2.5 |
|
|
| Version 4.2.5 has been uploaded to archive. |
|
| Back to top |
|
 |
redwolf Voice
Joined: 26 Jun 2007 Posts: 17
|
Posted: Sun Dec 28, 2008 10:40 pm Post subject: hello |
|
|
where is the new script at dragonlord, cant find it in the archives on here??
your webpage went bye bye |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Dec 28, 2008 11:06 pm Post subject: |
|
|
| I guess people will be waiting for the upload to be processed, it can take a few days. |
|
| Back to top |
|
 |
redwolf Voice
Joined: 26 Jun 2007 Posts: 17
|
Posted: Mon Dec 29, 2008 11:35 pm Post subject: webpage? your webpage dont work now? |
|
|
| do you need a website for this script to be on? I can put it on my ftp, and several other friends of mine can |
|
| Back to top |
|
 |
points Voice
Joined: 01 Jan 2009 Posts: 1
|
Posted: Thu Jan 01, 2009 7:21 pm Post subject: |
|
|
Thanks stoneone - have been trying to download the newer script, but it's still coming down as 4.2.4. Back online and working fine. Guess the upload is still processing, possibly.
Points
| stoneone wrote: | @Fl00k and the others with wzsock var errors.
When you modify the line 745, you must keep this before the second catch statement:
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
If not you never set the wzsock var to anything and thus it returns that (my best guess at what is going wrong in pub_wz). Let me know if this doesn't work. Accordingly, here is the full snippit of code:
| Code: | ## Open socket to www.wunderground.com and read in webpage...use async for faster
## response.
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
if {[catch {
puts $wzsock "GET $webpage HTTP/1.0"
puts $wzsock "Host: www.wunderground.com"
puts $wzsock "Cookie: Units=both"
puts $wzsock ""
} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
flush $wzsock
|
Edit: I know the formatting is a little bit different than what I posted a few pages back, but the second catch statement is the exact same. I just copy pasted from my .tcl. |
_________________ To Err is Human, Embrace Your Humanity! |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Thu Jan 01, 2009 11:25 pm Post subject: slow processing |
|
|
My best guess would be that uploads are being processed a little slow due to the holidays.
Many thanks to stoneone for posting a fix. |
|
| Back to top |
|
 |
stoneone Voice
Joined: 19 Dec 2008 Posts: 6
|
Posted: Wed Jan 07, 2009 6:28 pm Post subject: |
|
|
No problem, thanks for the update!
Happy new year  |
|
| Back to top |
|
 |
cdr Voice
Joined: 24 Dec 2008 Posts: 3
|
Posted: Thu Jan 08, 2009 3:11 am Post subject: |
|
|
Tcl error [pub_wz]: wrong # args: should be "flush channelId"
This was after stoneone's fix, still not working for me. |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Thu Jan 08, 2009 12:06 pm Post subject: |
|
|
| cdr wrote: | Tcl error [pub_wz]: wrong # args: should be "flush channelId"
This was after stoneone's fix, still not working for me. | My updated script is still not available in archive. You might have broken something when you altered the script. |
|
| Back to top |
|
 |
cdr Voice
Joined: 24 Dec 2008 Posts: 3
|
Posted: Thu Jan 08, 2009 4:35 pm Post subject: |
|
|
| Yes I don't know what i did but started fresh and it worked fine. |
|
| Back to top |
|
 |
|