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 ... 17, 18, 19 ... 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
random2
Voice


Joined: 18 Dec 2008
Posts: 5

PostPosted: Thu Dec 18, 2008 9:49 pm    Post subject: Reply with quote

Did you change it everywhere?

Find every place that has "GET" (in capitals) and that's every place that needs to have a similar change made. I count three places. (It only *really* needs to be in one place for this to work, but I did it in all three for consistency [and the one place isn't the line number in the diff])
Back to top
View user's profile Send private message
redwolf
Voice


Joined: 26 Jun 2007
Posts: 17

PostPosted: Thu Dec 18, 2008 10:00 pm    Post subject: hi Reply with quote

changed it in all 3 places, are you on irc at all?
i was runningh 4.2.4
is the port still 80?
Back to top
View user's profile Send private message
redwolf
Voice


Joined: 26 Jun 2007
Posts: 17

PostPosted: Thu Dec 18, 2008 10:06 pm    Post subject: ok now i get the following Reply with quote

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


Joined: 26 Jun 2007
Posts: 17

PostPosted: Thu Dec 18, 2008 10:08 pm    Post subject: is this right or wrong?? Reply with quote

if {[catch {puts $wzsock "GET $pn_url HTTP/1.0"} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
Back to top
View user's profile Send private message
random2
Voice


Joined: 18 Dec 2008
Posts: 5

PostPosted: Thu Dec 18, 2008 10:15 pm    Post subject: Re: hi Reply with quote

redwolf wrote:
changed it in all 3 places, are you on irc at all?


Laugh. No, I just edit eggdrop scripts but am nowhere on irc.

Quote:

i was runningh 4.2.4
is the port still 80?


Yes.

The bit you just pasted needs to be fixed still.
Back to top
View user's profile Send private message
random2
Voice


Joined: 18 Dec 2008
Posts: 5

PostPosted: Thu Dec 18, 2008 10:37 pm    Post subject: Re: ok now i get the following Reply with quote

redwolf wrote:
Tcl error [pub_wz]: can't read "outtitle": no such variable


This would be highly dependent on your input. What are you trying to get?

This looks vaguely like an error I've seen before relating to cities with multiple words, but is probably just related to any error page.

This isn't my bug, nor is it one that I caused. Try zip codes, different cities, US, international, etc.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu Dec 18, 2008 11:02 pm    Post subject: Reply with quote

I wonder if Dragon is still around? I tried to go to his chat room and forum as mentioned in the .tcl but its gone no longer there Mad
Back to top
View user's profile Send private message
Yog
Voice


Joined: 18 Dec 2008
Posts: 3

PostPosted: Fri Dec 19, 2008 12:06 am    Post subject: Reply with quote

@random2: Yeah I figured it'd be something like that from watching the HTTP GETs using live headers and ngrep. Was going to form those full HTTP headers and try again, but ran out of time.

As for the legal issues, who knows. I've been using this script for years and years. I think it was derived from another script. I don't think it was Murf who originally wrote it (I could be wrong about this though). I sort of remember when he took it over. Was a long time ago though, so memory may be a bit foggy. Razz

I also fixed it a few times over the years and sent diffs to Murf before he stopped supporting it and Dragnlord took it over (I'm the "Jim B" that's thanked in the change logs Razz ).

By the way, incith also has a wunderground script that is actively supported, and works well. It doesn't have as many features, and works a bit differently, and the output is a bit more terse, but it works. Check it out here: http://incith.com/eggdrop/
Back to top
View user's profile Send private message
Moonster
Halfop


Joined: 13 Nov 2002
Posts: 95
Location: Manchester NH USA

PostPosted: Fri Dec 19, 2008 12:44 pm    Post subject: Reply with quote

cache wrote:
I wonder if Dragon is still around? I tried to go to his chat room and forum as mentioned in the .tcl but its gone no longer there Mad


Dragnlord is still around but isnt on IRC too much. He was running BCMHosting that closed its doors after an Uplink issue that brought their services to a halt. The Site that was linked in the script was also lost.

He is aware of the changes that were made via the website but whether or not he will be coming up with an update to it I dont know.
_________________
"Knowledge is Power"
BeastNH/Moonster on Undernet/EFnet IRC Network
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri Dec 19, 2008 1:01 pm    Post subject: Reply with quote

Moonster wrote:
cache wrote:
I wonder if Dragon is still around? I tried to go to his chat room and forum as mentioned in the .tcl but its gone no longer there Mad


Dragnlord is still around but isnt on IRC too much. He was running BCMHosting that closed its doors after an Uplink issue that brought their services to a halt. The Site that was linked in the script was also lost.

He is aware of the changes that were made via the website but whether or not he will be coming up with an update to it I dont know.


Ok thanks, I'll wait patiently unless someone has a fix to share with us Confused
Back to top
View user's profile Send private message
hangtough
Voice


Joined: 18 Dec 2008
Posts: 1

PostPosted: Fri Dec 19, 2008 6:02 pm    Post subject: Reply with quote

I prefer Dragnlord's script, but I got this Weather v2112 and it was simple enough and works.

Weather v2112
http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1365

I'd much rather have the original. I will patiently wait as well. Cool
Back to top
View user's profile Send private message
stoneone
Voice


Joined: 19 Dec 2008
Posts: 6

PostPosted: Fri Dec 19, 2008 6:56 pm    Post subject: Reply with quote

Dragonlords script will work with the fixes mentioned before. My 4.2.4 had the mtemp problem and the outtitle problems also. For clarification the patches I made are shown below:

Line 878:
puts $wzsock "GET $pn_url HTTP/1.0"
puts $wzsock "Host: www.wunderground.com"
puts $wzsock "Cookie: Units=both"
puts $wzsock ""
flush $wzsock

where before it was only:
puts $wzsock "GET $pn_url"
flush $wzsock

also line 745:
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


where before it was:
if {[catch {puts $wzsock "GET $webpage"} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
flush $wzsock

Thanks.

Edit: Changed line 745 to execute as catch block.


Last edited by stoneone on Fri Dec 19, 2008 8:07 pm; edited 3 times in total
Back to top
View user's profile Send private message
Suntop
Voice


Joined: 19 Dec 2008
Posts: 6

PostPosted: Fri Dec 19, 2008 7:01 pm    Post subject: Reply with quote

I hope he will come along and fix it Smile

I looked at the code, but dont know how to code with websites Confused
_________________
--==> Wizard Suntop <==--
Back to top
View user's profile Send private message
stoneone
Voice


Joined: 19 Dec 2008
Posts: 6

PostPosted: Fri Dec 19, 2008 7:09 pm    Post subject: Reply with quote

Just make the changes to the .tcl file that I mentioned, .rehash, and it will work just fine.
Back to top
View user's profile Send private message
random2
Voice


Joined: 18 Dec 2008
Posts: 5

PostPosted: Fri Dec 19, 2008 7:13 pm    Post subject: Reply with quote

stoneone, the 745 fix needs to be inside the catch block (yep, in that big now-one-longer-line -- side note, the original coding style and back in weather4 even was better). Otherwise if there's a problem, you'll be writing to the closed socket. It needs to go right after the "GET ...".

The inconsistencies in the coding style here (look at the difference in all three of the places "GET" is in the code makes this rather unmaintainable code.

The script hangtough mentioned is, like this one, also a successor to murf's. If you want the "original" go back to murf's. Razz I've looked at that one as well. I'm not fond of the output format of that one either, but note that the parser on that one is better (it looks at the properties of the html, sort of the way you would in XML [simplified explanation]) rather than the structure of the page. It also didn't need to be updated for this page breakage. Smile


Last edited by random2 on Fri Dec 19, 2008 7:20 pm; edited 1 time in total
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 ... 17, 18, 19 ... 22, 23, 24  Next
Page 18 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