| View previous topic :: View next topic |
| Author |
Message |
sn0r Voice
Joined: 25 Jun 2007 Posts: 2
|
Posted: Mon Jun 25, 2007 11:11 am Post subject: |
|
|
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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Jun 25, 2007 12:18 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
sn0r Voice
Joined: 25 Jun 2007 Posts: 2
|
Posted: Mon Jun 25, 2007 1:34 pm Post subject: |
|
|
Thanks speechles; I'm a klutz at regexps.  |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Wed Jun 27, 2007 3:21 am Post subject: |
|
|
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  |
Yeah, 2.7 is kind of nice. Thanks! _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Wed Jun 27, 2007 9:52 pm Post subject: |
|
|
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 |
|
 |
Gordon Voice
Joined: 04 Apr 2007 Posts: 34
|
Posted: Wed Sep 12, 2007 5:55 am Post subject: |
|
|
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 |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Tue Sep 18, 2007 3:31 pm Post subject: |
|
|
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 |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Thu Dec 06, 2007 1:50 am Post subject: |
|
|
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 |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Fri Feb 01, 2008 4:11 am Post subject: |
|
|
2.8c has been submitted and is available @ incith.com
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 |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
|
| Back to top |
|
 |
johne Voice
Joined: 19 Jul 2005 Posts: 29
|
Posted: Thu Feb 14, 2008 12:00 pm Post subject: |
|
|
| temps are now not displaying *curses wunderground* |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Fri Feb 15, 2008 12:41 am Post subject: |
|
|
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.  _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Feb 25, 2008 11:01 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Feb 26, 2008 2:38 am Post subject: |
|
|
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 |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Tue Feb 26, 2008 4:59 am Post subject: |
|
|
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 |
|
 |
|