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 ... 14, 15, 16 ... 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
chadrt
Voice


Joined: 19 Mar 2006
Posts: 33

PostPosted: Wed Feb 05, 2014 6:32 am    Post subject: Script outputting html into party line... Reply with quote

When I try to run this it outputs this to the party line! I thought when I first saw it that it was in response to not having http.tcl so I loaded that (above all other scripts) and it still wont respond with anything other than this in the PLine. If anyone has any suggestions I am all ears Very Happy

Code:
[10:27:48] 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
Back to top
View user's profile Send private message
romprod
Halfop


Joined: 19 Oct 2001
Posts: 49

PostPosted: Sun Jun 08, 2014 5:31 am    Post subject: Reply with quote

Tried loading and I get this error messages back in the party line but nothing in the channel.

Code:
[10:24:32] incith:weather-2.9c: <user/#channel> !weather rotherham
[10:24:36] Tcl error [incith::weather::weather_handler]: invalid command name "incith::google::descdecode"


But then I get the following correct response in the partyline, as well as it correctly outputting to the channel.

Code:
[10:27:57] incith:weather-2.9c: <_rp/#premierleague> !weather canada
[10:28:09] [!s] PRIVMSG #premierleague :607 results found, listing first 25: Abbotsford, British Columbia; Acadia Valley, Alberta; Addenbroke Island, British Columbia; Agassiz, British Columbia; Aklavik, Northwest Territories; Amherst, Nova Scotia; Argentia, Newfoundland; Armstrong, Ontario; Arviat, Nunavut; Assiniboia, Saskatchewan; Athabasca Agcm, Canada; Atikokan, Ontario; Atlee, Alberta; Baccaro Pt, Nova Scotia; Bachelors Island


I'm running V2.9c on eggdrop 1.6.21
Back to top
View user's profile Send private message
Bette
Voice


Joined: 10 Jan 2014
Posts: 2

PostPosted: Sun Aug 24, 2014 3:21 pm    Post subject: Reply with quote

romprod wrote:
Tried loading and I get this error messages back in the party line but nothing in the channel.

Code:
[10:24:32] incith:weather-2.9c: <user/#channel> !weather rotherham
[10:24:36] Tcl error [incith::weather::weather_handler]: invalid command name "incith::google::descdecode"


But then I get the following correct response in the partyline, as well as it correctly outputting to the channel.

Code:
[10:27:57] incith:weather-2.9c: <_rp/#premierleague> !weather canada
[10:28:09] [!s] PRIVMSG #premierleague :607 results found, listing first 25: Abbotsford, British Columbia; Acadia Valley, Alberta; Addenbroke Island, British Columbia; Agassiz, British Columbia; Aklavik, Northwest Territories; Amherst, Nova Scotia; Argentia, Newfoundland; Armstrong, Ontario; Arviat, Nunavut; Assiniboia, Saskatchewan; Athabasca Agcm, Canada; Atikokan, Ontario; Atlee, Alberta; Baccaro Pt, Nova Scotia; Bachelors Island


I'm running V2.9c on eggdrop 1.6.21


Getting the samme error

Code:
[21:17:35] incith:weather-2.9c: <Bette/#root> !weather aarhus
[21:17:38] Tcl error [incith::weather::weather_handler]: invalid command name "incith::google::descdecode"
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Sep 06, 2014 3:59 pm    Post subject: Reply with quote

Regarding:
Code:

#---------------------------------------------------------------------#
# incith:weather                                                 v2.9c#



For some time now I have noticed that the return when using
!sky
no longer included:
Visible light
Daylight length
Tomorrow

as it had for so long.

Finally today, I went looking for it.
And found it. Smile

Go approximately line 1026 and find:
Code:

regexp -- {<td>Length Of Visible Light:</td> ... ... ...

and change the first letter of the word "Of" to a lower case letter "o".
Code:

regexp -- {<td>Length of Visible Light:</td> ... ... ...


Save and rehash.

Fixed it for me. Smile

I hope this helps someone else, too.
Back to top
View user's profile Send private message
bunnybump
Voice


Joined: 17 Aug 2012
Posts: 9

PostPosted: Sat Sep 13, 2014 12:34 am    Post subject: Reply with quote

romprod wrote:
Tried loading and I get this error messages back in the party line but nothing in the channel.

Code:
[10:24:32] incith:weather-2.9c: <user/#channel> !weather rotherham
[10:24:36] Tcl error [incith::weather::weather_handler]: invalid command name "incith::google::descdecode"


But then I get the following correct response in the partyline, as well as it correctly outputting to the channel.

Code:
[10:27:57] incith:weather-2.9c: <_rp/#premierleague> !weather canada
[10:28:09] [!s] PRIVMSG #premierleague :607 results found, listing first 25: Abbotsford, British Columbia; Acadia Valley, Alberta; Addenbroke Island, British Columbia; Agassiz, British Columbia; Aklavik, Northwest Territories; Amherst, Nova Scotia; Argentia, Newfoundland; Armstrong, Ontario; Arviat, Nunavut; Assiniboia, Saskatchewan; Athabasca Agcm, Canada; Atikokan, Ontario; Atlee, Alberta; Baccaro Pt, Nova Scotia; Bachelors Island


I'm running V2.9c on eggdrop 1.6.21


what you did with the script? we need to solve the problem, NOT showing off Mad
_________________
In the Beginning... Was the Command Line
Back to top
View user's profile Send private message Visit poster's website
Bette
Voice


Joined: 10 Jan 2014
Posts: 2

PostPosted: Sat Sep 13, 2014 2:00 pm    Post subject: Reply with quote

Any one that have a newer .diff file that is used in version 2.8o to 2.8p ?
Back to top
View user's profile Send private message
play4free2
Voice


Joined: 23 Nov 2013
Posts: 33

PostPosted: Sun Sep 14, 2014 5:54 pm    Post subject: Reply with quote

Thanks for the fix on the !sky willyw,

I just changed mine and it works fine now too Smile

I had noticed the change also just didn't look for a fix to it.
_________________

420-HIGHTIMES IRC Network
Back to top
View user's profile Send private message Visit poster's website
brando
Voice


Joined: 05 Mar 2015
Posts: 1

PostPosted: Thu Mar 05, 2015 12:40 pm    Post subject: Reply with quote

Quote:
[10:24:32] incith:weather-2.9c: <user/#channel> !weather rotherham
[10:24:36] Tcl error [incith::weather::weather_handler]: invalid command name "incith::google::descdecode"


What I have found with the incith-weather.tcl v2.9c is that you need the incith-google v2.1x tcl http://forum.egghelp.org/viewtopic.php?t=13586&postdays=0&postorder=asc&highlight=incith&start=795 loaded along with it.

I'm not sure why this is but I'm assuming elements of the weather script need elements of the google script to work correctly in order to search for the weather. Also, remember to .chanset #channel +google and +weather.
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Mar 05, 2015 1:55 pm    Post subject: new fixes Reply with quote

A little bird (on an #eggdrop channel) just told me that some new fixes are out.

This one:
Code:

 Tcl error [incith::weather::weather_handler]: invalid command name "incith::google::descdecode"


and the one mentioned above, regarding:
!sky
have been fixed.

Grab the script here:
http://ereader.kiczek.com/incith-weather.tcl

Enjoy !
Back to top
View user's profile Send private message
arkadio
Voice


Joined: 13 Dec 2013
Posts: 6

PostPosted: Tue Apr 21, 2015 8:38 pm    Post subject: Reply with quote

Suppose I would like to translate the ''Conditions'' output to my local language. What could I do?

Im looking for some function calling at line 292 and so. I would translate it manually, with a list, like, when the key is 'Overcast', it will retrieve the translated value for it in that function.

Code:

if {[info exists html(conditions)] && [string length $html(conditions)] >= 1} {
          set input [string map "{%w2%} {${incith::weather::seperator}[ibold "Conditions:"] $html(conditions)}" $input]
} else {
          set input [string map "{%w2%} {}" $input]
}



Im not really much of a TCL scripter. Could anyone help me on this?

-----------

Solved:

http://pastebin.com/p9qeAWnv
Back to top
View user's profile Send private message
khalidxpert
Voice


Joined: 26 Jan 2008
Posts: 18

PostPosted: Thu Apr 23, 2015 2:48 am    Post subject: its not working since long Reply with quote

i was using it before many years

but now a days its giving an eror
also it dont show the weather of !lahore

its in Pakistan country Lahore city

pls. check

Khalid
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Apr 23, 2015 9:24 am    Post subject: Re: its not working since long Reply with quote

khalidxpert wrote:

...
also it dont show the weather of !lahore

its in Pakistan country Lahore city
...


For what it is worth:

I just checked on a bot of mine that has incith-weather script loaded on it.
This is what I got:

Quote:

!weather lahore

Lahore, Pakistan (31.5°N/74.4°E)
Updated: 6:00 PM PKT (April 23, 2015)
Conditions: Clear
Temperature: 99°F (37.2°C)
High/Low: 102/69°F (38.9/20.6°C)
Humidity: 17%
Dew Point: 46°F (7.8°C)
Pressure: 29.68 in/1005 hPa
Wind: NNE at 9 MPH (15 KPH)



It appears to be working.


Further, this is at the top of the script - perhaps this is useful info for you:

Code:

#---------------------------------------------------------------------#
# incith:weather                                                 v2.9c#
#                                                                     #


_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
inittab
Voice


Joined: 11 Jan 2012
Posts: 5

PostPosted: Mon May 04, 2015 1:35 pm    Post subject: new error Reply with quote

started getting the following error recently, tried latest scripts from this thread and same thing. any ideas?

[21:25] 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
Hellster
Voice


Joined: 10 Aug 2006
Posts: 22

PostPosted: Mon May 04, 2015 2:27 pm    Post subject: Re: new error Reply with quote

inittab wrote:
started getting the following error recently, tried latest scripts from this thread and same thing. any ideas?

[21:25] Tcl error [incith::weather::weather_handler]: can't read "output(update_time)": no such element in array


Mine says a different error, so maybe a few things are changed on the site ?

Tcl error [incith::weather::weather_handler]: can't read "html(todays_day)": no such element in array

[20:31:40] - incith:weather-2.9a loaded.
Back to top
View user's profile Send private message
play4free2
Voice


Joined: 23 Nov 2013
Posts: 33

PostPosted: Mon May 04, 2015 3:11 pm    Post subject: Reply with quote

Weather Underground has shutdown Classic Wunderground. Classic Wunderground will no longer be available after May 4, 2015.
_________________

420-HIGHTIMES IRC Network
Back to top
View user's profile Send private message Visit poster's website
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 ... 14, 15, 16 ... 19, 20, 21  Next
Page 15 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