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 ... 19, 20, 21, 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
stoneone
Voice


Joined: 19 Dec 2008
Posts: 6

PostPosted: Mon Dec 22, 2008 3:18 pm    Post subject: Reply with quote

@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
View user's profile Send private message
Meth
Voice


Joined: 04 Jun 2008
Posts: 5

PostPosted: Mon Dec 22, 2008 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Bonnie
Voice


Joined: 09 Dec 2004
Posts: 23

PostPosted: Mon Dec 22, 2008 11:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Meth
Voice


Joined: 04 Jun 2008
Posts: 5

PostPosted: Tue Dec 23, 2008 3:50 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
cdr
Voice


Joined: 24 Dec 2008
Posts: 3

PostPosted: Wed Dec 24, 2008 12:15 am    Post subject: Reply with quote

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

Sad Its not working for me...help plz
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Sun Dec 28, 2008 7:14 pm    Post subject: 4.2.5 Reply with quote

Version 4.2.5 has been uploaded to archive.
Back to top
View user's profile Send private message
redwolf
Voice


Joined: 26 Jun 2007
Posts: 17

PostPosted: Sun Dec 28, 2008 10:40 pm    Post subject: hello Reply with quote

where is the new script at dragonlord, cant find it in the archives on here??
your webpage went bye bye
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Sun Dec 28, 2008 11:06 pm    Post subject: Reply with quote

I guess people will be waiting for the upload to be processed, it can take a few days.
Back to top
View user's profile Send private message
redwolf
Voice


Joined: 26 Jun 2007
Posts: 17

PostPosted: Mon Dec 29, 2008 11:35 pm    Post subject: webpage? your webpage dont work now? Reply with quote

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
View user's profile Send private message
points
Voice


Joined: 01 Jan 2009
Posts: 1

PostPosted: Thu Jan 01, 2009 7:21 pm    Post subject: Reply with quote

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


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

PostPosted: Thu Jan 01, 2009 11:25 pm    Post subject: slow processing Reply with quote

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
View user's profile Send private message
stoneone
Voice


Joined: 19 Dec 2008
Posts: 6

PostPosted: Wed Jan 07, 2009 6:28 pm    Post subject: Reply with quote

No problem, thanks for the update!

Happy new year Very Happy
Back to top
View user's profile Send private message
cdr
Voice


Joined: 24 Dec 2008
Posts: 3

PostPosted: Thu Jan 08, 2009 3:11 am    Post subject: Reply with quote

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


This was after stoneone's fix, still not working for me.
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Thu Jan 08, 2009 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
cdr
Voice


Joined: 24 Dec 2008
Posts: 3

PostPosted: Thu Jan 08, 2009 4:35 pm    Post subject: Reply with quote

Yes I don't know what i did but started fresh and it worked fine.
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 ... 19, 20, 21, 22, 23, 24  Next
Page 20 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