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
s
stoneone
Voice
Posts: 6
Joined: Fri Dec 19, 2008 6:51 pm

Post by stoneone »

@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: Select all

## 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.
M
Meth
Voice
Posts: 5
Joined: Wed Jun 04, 2008 1:21 am
Contact:

Post by Meth »

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

## 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.
B
Bonnie
Voice
Posts: 23
Joined: Thu Dec 09, 2004 11:20 am

Post by Bonnie »

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
M
Meth
Voice
Posts: 5
Joined: Wed Jun 04, 2008 1:21 am
Contact:

Post by Meth »

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.
c
cdr
Voice
Posts: 3
Joined: Wed Dec 24, 2008 12:14 am

Post by cdr »

Tcl error [pub_wz_forecast]: can't read "forecast": no such variable

:( Its not working for me...help plz
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

4.2.5

Post by DragnLord »

Version 4.2.5 has been uploaded to archive.
r
redwolf
Voice
Posts: 17
Joined: Tue Jun 26, 2007 11:24 pm

hello

Post by redwolf »

where is the new script at dragonlord, cant find it in the archives on here??
your webpage went bye bye
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

I guess people will be waiting for the upload to be processed, it can take a few days.
r
redwolf
Voice
Posts: 17
Joined: Tue Jun 26, 2007 11:24 pm

webpage? your webpage dont work now?

Post by redwolf »

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
p
points
Voice
Posts: 1
Joined: Thu Jan 01, 2009 7:16 pm

Post by points »

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

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

slow processing

Post by DragnLord »

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.
s
stoneone
Voice
Posts: 6
Joined: Fri Dec 19, 2008 6:51 pm

Post by stoneone »

No problem, thanks for the update!

Happy new year :D
c
cdr
Voice
Posts: 3
Joined: Wed Dec 24, 2008 12:14 am

Post by cdr »

Tcl error [pub_wz]: wrong # args: should be "flush channelId"


This was after stoneone's fix, still not working for me.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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.
c
cdr
Voice
Posts: 3
Joined: Wed Dec 24, 2008 12:14 am

Post by cdr »

Yes I don't know what i did but started fresh and it worked fine.
Post Reply