| View previous topic :: View next topic |
| Author |
Message |
random2 Voice
Joined: 18 Dec 2008 Posts: 5
|
Posted: Thu Dec 18, 2008 9:49 pm Post subject: |
|
|
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 |
|
 |
redwolf Voice
Joined: 26 Jun 2007 Posts: 17
|
Posted: Thu Dec 18, 2008 10:00 pm Post subject: hi |
|
|
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 |
|
 |
redwolf Voice
Joined: 26 Jun 2007 Posts: 17
|
Posted: Thu Dec 18, 2008 10:06 pm Post subject: ok now i get the following |
|
|
| Tcl error [pub_wz]: can't read "outtitle": no such variable |
|
| Back to top |
|
 |
redwolf Voice
Joined: 26 Jun 2007 Posts: 17
|
Posted: Thu Dec 18, 2008 10:08 pm Post subject: is this right or wrong?? |
|
|
| 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 |
|
 |
random2 Voice
Joined: 18 Dec 2008 Posts: 5
|
Posted: Thu Dec 18, 2008 10:15 pm Post subject: Re: hi |
|
|
| 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 |
|
 |
random2 Voice
Joined: 18 Dec 2008 Posts: 5
|
Posted: Thu Dec 18, 2008 10:37 pm Post subject: Re: ok now i get the following |
|
|
| 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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Thu Dec 18, 2008 11:02 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Yog Voice
Joined: 18 Dec 2008 Posts: 3
|
Posted: Fri Dec 19, 2008 12:06 am Post subject: |
|
|
@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.
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 ).
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 |
|
 |
Moonster Halfop
Joined: 13 Nov 2002 Posts: 95 Location: Manchester NH USA
|
Posted: Fri Dec 19, 2008 12:44 pm Post subject: |
|
|
| 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  |
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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri Dec 19, 2008 1:01 pm Post subject: |
|
|
| 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  |
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  |
|
| Back to top |
|
 |
hangtough Voice
Joined: 18 Dec 2008 Posts: 1
|
|
| Back to top |
|
 |
stoneone Voice
Joined: 19 Dec 2008 Posts: 6
|
Posted: Fri Dec 19, 2008 6:56 pm Post subject: |
|
|
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 |
|
 |
Suntop Voice

Joined: 19 Dec 2008 Posts: 6
|
Posted: Fri Dec 19, 2008 7:01 pm Post subject: |
|
|
I hope he will come along and fix it
I looked at the code, but dont know how to code with websites  _________________ --==> Wizard Suntop <==-- |
|
| Back to top |
|
 |
stoneone Voice
Joined: 19 Dec 2008 Posts: 6
|
Posted: Fri Dec 19, 2008 7:09 pm Post subject: |
|
|
| Just make the changes to the .tcl file that I mentioned, .rehash, and it will work just fine. |
|
| Back to top |
|
 |
random2 Voice
Joined: 18 Dec 2008 Posts: 5
|
Posted: Fri Dec 19, 2008 7:13 pm Post subject: |
|
|
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. 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. 
Last edited by random2 on Fri Dec 19, 2008 7:20 pm; edited 1 time in total |
|
| Back to top |
|
 |
|