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 ... 15, 16, 17 ... 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
DragnLord
Owner


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

PostPosted: Wed Jul 16, 2008 1:19 pm    Post subject: Reply with quote

anotheregglover wrote:
Hi,

I made the following patch for a friend which seems to work fine. My copy of 4.2.4 never stopped working, so I don't know why it didn't work for some of you guys.

But this patch seems to solve the problem regardless.

Code:

--- weather.tcl.old   2008-07-16 11:40:45.000000000 -0500
+++ weather.tcl   2008-07-16 11:35:10.000000000 -0500
@@ -749,6 +749,7 @@
       lappend html $http
       join html
    }
+   set outtitle ""
    regsub -all {\{|\}} $html {} html
    regsub -all {<script.*?</script>} $html {} html
    regsub -all {<img.*?>} $html {} html


For those not familiar with applying patches, add the following at line 752. The current line 752 would move down to line 753.

Code:

   set outtitle ""


Hope it works for you guys.
outttitle is not initialized for a reason
those using your patch will have problems later on
Back to top
View user's profile Send private message
tilt
Voice


Joined: 13 Feb 2008
Posts: 3

PostPosted: Wed Jul 16, 2008 5:46 pm    Post subject: Reply with quote

Thank you for the patch.

The issue seems to have fixed itself for whatever reason, i had problems this morning, but they are no longer occurring. The bot appears to function with or without the patch at this point.

Thanks for looking into this, everyone!
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri Sep 12, 2008 1:22 pm    Post subject: Reply with quote

These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.

SSH shows this error:
Code:
[12:22] Tcl error [pub_wz]: can't read "idew": no such variable
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Fri Sep 12, 2008 2:15 pm    Post subject: Reply with quote

cache wrote:
These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.

SSH shows this error:
Code:
[12:22] Tcl error [pub_wz]: can't read "idew": no such variable
This is because the reporting station does not show the required dew points. I'll fix it, but it will likely be a couple of days (setting up a new computer).
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Fri Sep 12, 2008 2:43 pm    Post subject: Reply with quote

I suggest using KAGC for your Pitts. weather until I make the adjustments.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri Sep 12, 2008 3:13 pm    Post subject: Reply with quote

Thanks, I'll just be patient and wait Very Happy
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Sat Sep 27, 2008 1:45 pm    Post subject: Reply with quote

The server hosting the script is now down.
When I can locate my copy of the script I will upload it to the archive.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Oct 08, 2008 7:52 am    Post subject: Reply with quote

DragnLord wrote:
cache wrote:
These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.

SSH shows this error:
Code:
[12:22] Tcl error [pub_wz]: can't read "idew": no such variable
This is because the reporting station does not show the required dew points. I'll fix it, but it will likely be a couple of days (setting up a new computer).


I see those zip codes work now, but I guess cause it don't need dew points at this time?
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 Oct 09, 2008 8:41 am    Post subject: Reply with quote

cache wrote:
DragnLord wrote:
cache wrote:
These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.

SSH shows this error:
Code:
[12:22] Tcl error [pub_wz]: can't read "idew": no such variable
This is because the reporting station does not show the required dew points. I'll fix it, but it will likely be a couple of days (setting up a new computer).


I see those zip codes work now, but I guess cause it don't need dew points at this time?
They have worked since the day after you posted that there were problems. This also means there was nothing for me to fix.
Back to top
View user's profile Send private message
rhn1379
Voice


Joined: 12 Oct 2008
Posts: 5

PostPosted: Sun Oct 12, 2008 9:08 pm    Post subject: Reply with quote

I am having difficulties with my weather script.

I am using version 4.2.4.

Everytime someone tries to use the weather script we get nothing. The bot simply just freezes up, and pings out. It returns shortly after.

[20:59] Tcl error [pub_wz]: can't read "outtitle": no such variable

We're just doing the simple .wz zipcode example .wz 44305

Any help would be greatly appreciated.

thanks!
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 Oct 12, 2008 10:43 pm    Post subject: Reply with quote

I'm not getting that issue, please make sure the bot is able to connect to the website.
Back to top
View user's profile Send private message
rhn1379
Voice


Joined: 12 Oct 2008
Posts: 5

PostPosted: Mon Oct 13, 2008 1:33 pm    Post subject: Reply with quote

DragnLord wrote:
I'm not getting that issue, please make sure the bot is able to connect to the website.


how can i tell if the bot is connecting to the website? Question
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Tue Oct 14, 2008 2:20 am    Post subject: Reply with quote

Use a browser to see if it is reachable.
Back to top
View user's profile Send private message
rhn1379
Voice


Joined: 12 Oct 2008
Posts: 5

PostPosted: Wed Oct 15, 2008 12:53 am    Post subject: Reply with quote

DragnLord wrote:
Use a browser to see if it is reachable.


to Wunderground I assume?

and yes, I am able to access Wunderground.
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Wed Oct 15, 2008 3:04 am    Post subject: Reply with quote

Code:

[Oct_15 3:01:36am] <WZ_Test>  Akron, Ohio -- 3:01 AM EDT Updated: 3:01 AM EDT on October 15, 2008
[Oct_15 3:01:37am] <WZ_Test>  Conditions: 58.4°F / 14.7°C | Overcast
[Oct_15 3:01:38am] <WZ_Test>  Humidity:  88%    Dew Point: 55°F / 13°C
[Oct_15 3:01:40am] <WZ_Test>  Pressure: 30.07in / 1018.2hPa (Falling)  Wind: Calm

The problem is apparently on your end somewhere.
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 ... 15, 16, 17 ... 22, 23, 24  Next
Page 16 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