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 

incith:weather (2.8p) (Dec. 18th, 2008)
Goto page Previous  1, 2, 3, 4 ... 19, 20, 21  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
sn0r
Voice


Joined: 25 Jun 2007
Posts: 2

PostPosted: Mon Jun 25, 2007 11:11 am    Post subject: Reply with quote

Hi incith,

After many years of enjoying your script it started doing the following all of a sudden during requests which ended in multiple results:

Code:

04:45PM <dogbert> Multiple Results Found: Berlin, Connecticut</a><a href="/US/CT/Berlin.html#PUB"><img
          src="http://icons-aa.wunderground.com/graphics/PUB.gif" alt="Public Information Statement" height="17" width="17" />; Berlin, Florida; Berlin,
          Georgia; Berlin, Germany; Berlin, Illinois</a><a href="/US/IL/Berlin.html#FOG"><img src="http://icons-aa.wunderground.com/graphics/FOG.gif"
          alt="Dense Fog Advisory" height="17" width="17" /></a><a
04:45PM <dogbert> href="/US/IL/Berlin.html#PUB"><img src="http://icons-aa.wunderground.com/graphics/PUB.gif" alt="Public Information Statement" height="17"
          width="17" />; Berlin, Maryland; Berlin, Massachusetts</a><a href="/US/MA/Berlin.html#PUB"><img
          src="http://icons-aa.wunderground.com/graphics/PUB.gif" alt="Public Information Statement" height="17" width="17" />; Berlin, Michigan</a><a
          href="/US/MI/Berlin.html#PUB"><img
04:45PM <dogbert> src="http://icons-aa.wunderground.com/graphics/PUB.gif" alt="Public Information Statement" height="17" width="17" />; Berlin, New
          Hampshire; Berlin, New Jersey</a><a href="/US/NJ/Berlin.html#PUB"><img src="http://icons-aa.wunderground.com/graphics/PUB.gif" alt="Public
          Information Statement" height="17" width="17" />; Berlin, New York</a><a href="/US/NY/Berlin.html#PUB"><img
          src="http://icons-aa.wunderground.com/graphics/PUB.gif"


I narrowed it down to problems with the following line on line number 475 and the preceeding regexp (i think).

Code:
set output(error) "Multiple Results Found: ${loop_reply}"


Hope it helps. I really enjoy your scripting, by the way. Keep up the brilliant work!

Edit: sorry I missed your changelog for 2.7 at the end there. Seems you've already seen the problem. My apple-ogies for the double. Perhaps the line number will help people write a little work around until you get the new version up.
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Mon Jun 25, 2007 12:18 pm    Post subject: Reply with quote

sn0r wrote:
Perhaps the line number will help people write a little work around until you get the new version up.

line 475:
Code:
regexp -- {<td class="sortC"><a href=".+?">(.+?)</a>(?:</td>|  <a href.+?><img.+?>)} $html - loop_loc

change to:
Code:
regexp -- {<td class="sortC"><a href=".+?">(.+?)</a>} $html - loop_loc


@incith, your new version looks feature rich, i like it..hehe.. looking forward to it Wink
Back to top
View user's profile Send private message
sn0r
Voice


Joined: 25 Jun 2007
Posts: 2

PostPosted: Mon Jun 25, 2007 1:34 pm    Post subject: Reply with quote

Thanks speechles; I'm a klutz at regexps. Wink
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Wed Jun 27, 2007 3:21 am    Post subject: Reply with quote

I'm always available on IRC generally, and will usually have a CVS version if something breaks.

Version 2.7 has been released. Please see the first post for more details.

speechles wrote:
@incith, your new version looks feature rich, i like it..hehe.. looking forward to it Wink

Yeah, 2.7 is kind of nice. Smile Thanks!
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Wed Jun 27, 2007 9:52 pm    Post subject: Reply with quote

If you are getting the silly 'unable to convert date/time' string error, it's because I forgot to strip out the timezones from the local_time and local_date variables that I added last-minute in 2.7.

I released 2.7a now to fix this problem.

Regards,
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
Gordon
Voice


Joined: 04 Apr 2007
Posts: 33

PostPosted: Wed Sep 12, 2007 5:55 am    Post subject: Reply with quote

WIth some cities I get this error:
Code:
Tcl error [incith::weather::weather_handler]: can't read "output(update_time)": no such element in array
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Tue Sep 18, 2007 3:31 pm    Post subject: Reply with quote

Can you give examples of the cities? I will work on this as soon as I get a bit of free time.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Thu Dec 06, 2007 1:50 am    Post subject: Reply with quote

Version 2.8a has been released, fixing multiple results for India. What I've done is, when looking at the wunderground page and searching for india I noticed not all locations have temperatures and the like, so if you are doing a search and searching for a location that has multiple results, the script will remove locations without temperatures, giving you a multiple results list with only available locations. This significantly reduced the size of results given with a "!weather india", which is still 3 paragraphs for me.

There will probably still be a few instances of "cannot read update_time" but not as many and if you encounter any please come and post which search broke it for you.

As always it'll be available on the Tcl archive soon and is available now @ incith.com

Edit: 2.8a has since been posted to incith.com to fix some more things with multiple results -_-

Edit #2: I realise there are still some issues now.. notably searching for Australia doesn't do anything useful. I'll have to work on these in due time.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Fri Feb 01, 2008 4:11 am    Post subject: Reply with quote

2.8c has been submitted and is available @ incith.com Smile

2.8c:
Code:
#  2.8c: fixed conditions/location/todays_day/UV, and astronomy.      #


One more quick release available on the first post, 2.8d, will fix location problems and forecast.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Wed Feb 13, 2008 5:20 am    Post subject: Reply with quote

2.8e is available on incith.com which resolves the forecast not working.

http://incith.com/eggdrop/
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
johne
Voice


Joined: 19 Jul 2005
Posts: 29

PostPosted: Thu Feb 14, 2008 12:00 pm    Post subject: Reply with quote

temps are now not displaying *curses wunderground*
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Fri Feb 15, 2008 12:41 am    Post subject: Reply with quote

I have been making constant updates and fixes to the script the last couple of days, please keep checking incith.com/eggdrop/ for the latest release candidate version (currently 2.8f-rc4). If you are having problems with your location then please feel free to e-mail me or come on IRC and we'll get it fixed up in no time. Smile
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Mon Feb 25, 2008 11:01 pm    Post subject: Reply with quote

2.8g has been submitted and released tonight to solve various things not displaying (wunderground decided to randomly add back <nobr> tags, so whatever they do with them now it doesn't matter).

Available @ incith.com until the Tcl archive updates as well.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Feb 26, 2008 2:38 am    Post subject: Reply with quote

Getting to be a real pain in the arse aren't they =p

Shame METAR doesn't provide more data, at least that format doesn't change.
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Tue Feb 26, 2008 4:59 am    Post subject: Reply with quote

Yeah, they are, and then I forgot some crap too.. *sigh*

Oh well, if anyone downloaded 2.8g in the last couple hours, you may want to download it again, as I just couldn't warrant going up to 2.8j or so within a couple hours, heh.

If your version of 2.8g does not work with !sky then you will want to download it again.
_________________
; Answer a few unanswered posts!
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, 4 ... 19, 20, 21  Next
Page 3 of 21

 
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