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 ... 10, 11, 12 ... 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
Glavata
Voice


Joined: 08 Oct 2009
Posts: 2

PostPosted: Wed Feb 02, 2011 12:58 am    Post subject: Reply with quote

I am getting a few errors, and unsure how to proceed. Using Incith:Weather 2.8r that speechless posted a few posts back.
Code:

!weather new york

and in partyline I see:
Quote:

Tcl error [incith::weather::weather_handler]: can't read "lr": no such variable

Code:

!weather miami, FL

and in partyline I see:
Quote:

Tcl error [incith::weather::weather_handler]: unable to convert date-time string "January</option><option selected="selected" value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">Novem

In both cases, the bot does not respond with anything in the channel.
Back to top
View user's profile Send private message
4everlearning
Voice


Joined: 26 Jan 2011
Posts: 8

PostPosted: Wed Feb 02, 2011 7:13 am    Post subject: Reply with quote

I am receiving same error that Glavata is getting. Did wunderground maybe change again?

I might mention that I am using incith:weather-2.8p
Back to top
View user's profile Send private message
LiquidIce
Halfop


Joined: 09 Jan 2004
Posts: 48
Location: USA

PostPosted: Wed Feb 02, 2011 9:45 am    Post subject: Reply with quote

error just started happening today
Quote:

Tcl error [incith::weather::weather_handler]: unable to convert date-time string "January</option><option selected="selected" value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option>
Back to top
View user's profile Send private message
marx2k
Voice


Joined: 23 Jan 2011
Posts: 10

PostPosted: Wed Feb 02, 2011 9:51 am    Post subject: Reply with quote

I get the same error here.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Wed Feb 02, 2011 10:10 am    Post subject: Reply with quote

@4everlearning : there's no need to copy/paste the info you see on their blog, as the author of the script (or who maintains it) will notice the change and will do the required adjustments to make it work again.

I can't help it wondering why doesn't the author use the API they've made for fetching the weather? Rolling Eyes

By using the API the script would continue working no matter the changes they made to the layout of the main page.
_________________
Once the game is over, the king and the pawn go back in the same box.


Last edited by caesar on Wed Feb 02, 2011 10:20 am; edited 2 times in total
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Feb 02, 2011 10:15 am    Post subject: Reply with quote

This might just be a temp fix, not sure how long 'classic' version will remain up.

Code:

    proc fetch_html {query {query_url "http://www.wunderground.com/cgi-bin/findweather/getForecast?query="} {no_format 0}} {


Change to:

Code:

    proc fetch_html {query {query_url "http://classic.wunderground.com/cgi-bin/findweather/getForecast?query="} {no_format 0}} {
Back to top
View user's profile Send private message
br00
Voice


Joined: 19 Jun 2006
Posts: 9

PostPosted: Wed Feb 02, 2011 10:27 am    Post subject: Reply with quote

nice one cache, works for now Smile
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Wed Feb 02, 2011 1:33 pm    Post subject: Reply with quote

Good call cache Smile
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
LiquidIce
Halfop


Joined: 09 Jan 2004
Posts: 48
Location: USA

PostPosted: Wed Feb 02, 2011 8:03 pm    Post subject: Reply with quote

nice save Smile
thankx
Back to top
View user's profile Send private message
Racquet
Voice


Joined: 28 Aug 2010
Posts: 3

PostPosted: Thu Feb 03, 2011 6:46 pm    Post subject: Reply with quote

Can someone try !weather 15222 and see if it spams your channel with html garbage and other stuff. Odd enough, most other places I have checked return correct format.
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: Thu Feb 03, 2011 8:05 pm    Post subject: Reply with quote

Racquet wrote:
Can someone try !weather 15222 and see if it spams your channel with html garbage and other stuff. Odd enough, most other places I have checked return correct format.


Hmm...

Quote:
<speechles> !wz 15222
<sp33chy> speechles's weather request; Pittsburgh, Pennsylvania (40.4°N/80.0°W); Updated: 6:50 PM EST (February 03, 2011); Conditions: Clear; Temperature: 27.7°F (-2.4°C); Windchill: 28°F (-2°C); High/Low: 29/14°F (-1/-10°C); UV: 0/16; Humidity: 59%; Dew Point: 33.8°F (1.0°C); Wind: SW at 1.0 MPH (1.6 KPH)


Seems.. fine to me... but wait...

Incith-Weather v2.9

That's because I fixed it. Smile

So yeah, it did do that. Just like temperatures, sometimes dew points will not have both Fahrenheit and Celsius. So I've done the same way I fixed the temperatures, only take one, and figure the other out with some simple maths. Enjoys Wink
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Racquet
Voice


Joined: 28 Aug 2010
Posts: 3

PostPosted: Fri Feb 04, 2011 2:55 am    Post subject: Reply with quote

Thanks for the quick reply. It's working properly. I did the url change a few days ago and was wondering in your latest version if line 771 should be changed to ->
array set output [fetch_html "[lindex $lu 0]" "http://classic.wunderground.com" 1]

for those cases. I'd offer an example of which I had two days ago; alas, my bnc didn't keep the messages.
Back to top
View user's profile Send private message
redfeather
Voice


Joined: 04 Feb 2011
Posts: 1
Location: United States

PostPosted: Fri Feb 04, 2011 9:32 am    Post subject: Reply with quote

Unfortunately neither of those fixes work for me.

!weather 90042
Tcl error [incith::weather::weather_handler]: too many nested evaluations (infinite loop?)

!forecast 90042
Tcl error [incith::weather::forecast_handler]: too many nested evaluations (infinite loop?)
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri Feb 04, 2011 12:39 pm    Post subject: Reply with quote

Working fine for me.. did you download the new version 2.9? speechles posted a link to it.
Back to top
View user's profile Send private message
HashPipe
Voice


Joined: 06 Aug 2003
Posts: 10

PostPosted: Sat Feb 05, 2011 5:49 am    Post subject: Reply with quote

cache wrote:
This might just be a temp fix, not sure how long 'classic' version will remain up.

Code:

    proc fetch_html {query {query_url "http://www.wunderground.com/cgi-bin/findweather/getForecast?query="} {no_format 0}} {


Change to:

Code:

    proc fetch_html {query {query_url "http://classic.wunderground.com/cgi-bin/findweather/getForecast?query="} {no_format 0}} {


Thanks for that!!!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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 ... 10, 11, 12 ... 19, 20, 21  Next
Page 11 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