| View previous topic :: View next topic |
| Author |
Message |
chadrt Voice
Joined: 19 Mar 2006 Posts: 33
|
Posted: Wed Feb 05, 2014 6:32 am Post subject: Script outputting html into party line... |
|
|
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
| 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 |
|
 |
romprod Halfop
Joined: 19 Oct 2001 Posts: 49
|
Posted: Sun Jun 08, 2014 5:31 am Post subject: |
|
|
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 |
|
 |
Bette Voice
Joined: 10 Jan 2014 Posts: 2
|
Posted: Sun Aug 24, 2014 3:21 pm Post subject: |
|
|
| 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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Sep 06, 2014 3:59 pm Post subject: |
|
|
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.
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.
I hope this helps someone else, too. |
|
| Back to top |
|
 |
bunnybump Voice

Joined: 17 Aug 2012 Posts: 9
|
Posted: Sat Sep 13, 2014 12:34 am Post subject: |
|
|
| 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  _________________ In the Beginning... Was the Command Line |
|
| Back to top |
|
 |
Bette Voice
Joined: 10 Jan 2014 Posts: 2
|
Posted: Sat Sep 13, 2014 2:00 pm Post subject: |
|
|
| Any one that have a newer .diff file that is used in version 2.8o to 2.8p ? |
|
| Back to top |
|
 |
play4free2 Voice

Joined: 23 Nov 2013 Posts: 33
|
Posted: Sun Sep 14, 2014 5:54 pm Post subject: |
|
|
Thanks for the fix on the !sky willyw,
I just changed mine and it works fine now too
I had noticed the change also just didn't look for a fix to it. _________________
420-HIGHTIMES IRC Network |
|
| Back to top |
|
 |
brando Voice
Joined: 05 Mar 2015 Posts: 1
|
Posted: Thu Mar 05, 2015 12:40 pm Post subject: |
|
|
| 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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Mar 05, 2015 1:55 pm Post subject: new fixes |
|
|
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 |
|
 |
arkadio Voice
Joined: 13 Dec 2013 Posts: 6
|
Posted: Tue Apr 21, 2015 8:38 pm Post subject: |
|
|
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 |
|
 |
khalidxpert Voice
Joined: 26 Jan 2008 Posts: 18
|
Posted: Thu Apr 23, 2015 2:48 am Post subject: its not working since long |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Apr 23, 2015 9:24 am Post subject: Re: its not working since long |
|
|
| 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 |
|
 |
inittab Voice
Joined: 11 Jan 2012 Posts: 5
|
Posted: Mon May 04, 2015 1:35 pm Post subject: new error |
|
|
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 |
|
 |
Hellster Voice
Joined: 10 Aug 2006 Posts: 22
|
Posted: Mon May 04, 2015 2:27 pm Post subject: Re: new error |
|
|
| 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 |
|
 |
play4free2 Voice

Joined: 23 Nov 2013 Posts: 33
|
Posted: Mon May 04, 2015 3:11 pm Post subject: |
|
|
Weather Underground has shutdown Classic Wunderground. Classic Wunderground will no longer be available after May 4, 2015. _________________
420-HIGHTIMES IRC Network |
|
| Back to top |
|
 |
|
|
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
|
|