| View previous topic :: View next topic |
| Author |
Message |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sat Dec 20, 2008 3:38 am Post subject: |
|
|
| ron wrote: | | Hi all, I am new to using eggdrop/windrops. I am starting to get the hang of it. I downloaded this weather script however the !w for the weather does not work and I get the following error: |
Yeah, as mentioned above, until the Tcl archive here updates with the latest version, it can be obtained at incith.com. (I know it must seem like I whore this URL a fair bit come to think of it. But there's nothing there that I am trying to attract people to, other than the availability of updates.) _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
ron Voice

Joined: 19 Dec 2008 Posts: 6
|
Posted: Sat Dec 20, 2008 12:11 pm Post subject: |
|
|
| The update to version p did the trick. I had version n installed. Thanks for a great script!! |
|
| Back to top |
|
 |
lailoken Voice
Joined: 21 Dec 2008 Posts: 3
|
Posted: Sun Dec 21, 2008 1:32 pm Post subject: |
|
|
| incith wrote: | | Branden wrote: | | Tcl error [incith::weather::weather_handler]: invalid command name "clock" |
Um, what version of Tcl are you using? Windrop or eggdrop? etc etc
There's no reason your Tcl should be missing the clock command.. |
I'm getting this error as well, I submitted a support ticket with my shell provider, and got this response back.
| Quote: | Hello,
Since this is a LINUX command it won't work on our servers as they're FreeBSD.
Please let us know if we can be any further assistance.
|
|
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Dec 22, 2008 8:38 am Post subject: |
|
|
Strange... :/
I'll look into this and find a solution hopefully. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Dec 22, 2008 1:33 pm Post subject: |
|
|
| lailoken wrote: | | Quote: | Hello,
Since this is a LINUX command it won't work on our servers as they're FreeBSD.
Please let us know if we can be any further assistance. |
|
The Tcl devs confirmed my belief that your shell provider does not know what they are talking about.
DKF's profile can be found @ http://wiki.tcl.tk/73 who is a member of the Tcl Core Team (http://wiki.tcl.tk/977). You can also see Donald Porter ("dgp"), another member of the Core Team, saying they (your shell provider) is misinformed. Clock manpage for Tcl 8.5 (Tcl 8.4). So, take this to your shell provider and tell them WTF?:
| #tcl wrote: | (10:30:08) +|+ Irssi: Join to #tcl was synced in 0 secs
(10:30:45) <incith> Hi.. I have a user who submitted a ticket to there shell provider, and they told them [clock] is a Linux command and therefore will not work on FreeBSD. Is this true? o.O?
(10:31:06) <incith> [clock] is a built in Tcl command I thought, and thus should work everywhere?
(10:31:11) <dkf> [clock] is an inherent part of Tcl
(10:31:19) <dkf> has been for ages
(10:31:27) <incith> Right, so, his shell provider is high?
(10:31:33) <dgp> misinformed
(10:31:36) <incith> :)
(10:31:37) <dkf> full of it :)
(10:31:49) <incith> Thank you, I thought it was absurd |
Sorry, but there is nothing I can do. [clock] as mentioned should be working, regardless of your flavor of BSD/Linux. Works well on the Windows Windrop I just installed, too. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
lailoken Voice
Joined: 21 Dec 2008 Posts: 3
|
Posted: Mon Dec 22, 2008 3:45 pm Post subject: |
|
|
Submitted a new ticket to santrex and asked them to clarify and see if they are up to date with tcl.
If all else fails, well, it's just a 3 month prepaid shell account, there's others I can take my eggy to. |
|
| Back to top |
|
 |
lailoken Voice
Joined: 21 Dec 2008 Posts: 3
|
Posted: Mon Dec 22, 2008 9:14 pm Post subject: |
|
|
Ah well.
The response back:
| Quote: | Hello,
I already explained to you the situation that it's a Linux command and we run unix/FreeBSD servers so it won't work. Please try finding a unix/freebsd tcl script.
|
Guess I'm looking for a new eggdrop shell provider. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Tue Dec 23, 2008 12:20 am Post subject: |
|
|
| lailoken wrote: | Ah well.
The response back:
| Quote: | Hello,
I already explained to you the situation that it's a Linux command and we run unix/FreeBSD servers so it won't work. Please try finding a unix/freebsd tcl script.
|
Guess I'm looking for a new eggdrop shell provider. |
Rofl, man.. even the response is arrogant. I feel bad for you. Crap like this kind of pisses me off. I sent them (http://www.santrex.net/contact.php) an email of my own, too, fwiw. (Edit: Heh, they told me I need to google more. *sigh*)
Another Core Team member, Kevin Kenny:
| kbk wrote: | <kbk> incith - "We already explained to you that the hosting provider is clueless. Please try finding a clueful provider."
<kbk> And FWIW a disembuggerated Tcl runs fine on the BSD's - [clock] and all. |
Update 12/23: In fact I am still e-mailing these guys. They seem to confusing /bin/clock with Tcl [clock], maybe this will get resolved yet. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
NWH Voice
Joined: 03 Jan 2009 Posts: 7
|
Posted: Sat Jan 03, 2009 1:20 pm Post subject: |
|
|
Hi .
running eggdrop v1.6.17
script v2.8p
I have a strange error .
[18:18] <bot> User defined channel flags:
[18:18] <bot> +weather
[18:18] <bot> [18:18] Ask for weather on #xmen-fr by User, but script not active here
What wrong ?
thanks |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sat Jan 03, 2009 4:45 pm Post subject: |
|
|
.chanset #xmen-fr +weather
What happens when you do a search? Can you paste some more output? _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
NWH Voice
Joined: 03 Jan 2009 Posts: 7
|
Posted: Sun Jan 04, 2009 10:45 am Post subject: |
|
|
Hi .
Yes i do the .chanset .
The chaninfo told me :
[18:18] <bot> User defined channel flags:
[18:18] <bot> +weather
And the !weather city give no answer.
The partyline just told me
[18:18] <bot> [18:18] Ask for weather on #channel by User, but script not active here .
I haven't more output . !! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Sun Jan 04, 2009 11:52 am Post subject: |
|
|
Doesn't look like my script... "[18:18] <bot> [18:18] Ask for weather on #channel by User, but script not active here ." is not something my code says.
| eggdrop wrote: | (08:50:33) (incith) .chanset #incith +weather
(08:50:33) <visitant> Successfully set modes { +weather } on #incith. | Is the output you should receive.
Try messaging your bot "!w", private messages will always work as long as variable private_messages is set to 1 in the Tcl file. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
sn1ck Voice
Joined: 08 Jan 2009 Posts: 2
|
Posted: Thu Jan 08, 2009 3:59 am Post subject: |
|
|
This weather script has been working wonderfully. I've tried to stay up to date and am currently running 2.8p. The last couple of days when triggering the script i've gotten an error mesg of "The operation timed out after 15 seconds."
wunderground is up, so i'm assuming there's some kind of change in how the shell talks to the website. any suggestions? |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Thu Jan 08, 2009 5:43 am Post subject: |
|
|
Hmm.. honestly, not really. There is a 'variable timeout' for setting it higher/lower, but this isn't really what you want I'm sure.
What happens if you try to ping wunderground.com from the shell (if available)? And what happens if you ping the IP (64.243.174.104)? It's possible that maybe DNS lookups are just going slowly or something and perhaps the IP method below will help. Otherwise I cannot think of many options.
Original lines: | Code: | proc fetch_html {query {query_url "http://www.wunderground.com/cgi-bin/findweather/getForecast?query="} {no_format 0}} {
array set output [fetch_html "$loop_url" "http://www.wunderground.com" 1] |
Modified (english.wunderground.com): | Code: | proc fetch_html {query {query_url "http://english.wunderground.com/cgi-bin/findweather/getForecast?query="} {no_format 0}} {
array set output [fetch_html "$loop_url" "http://english.wunderground.com" 1] |
Modified (IP address): | Code: | proc fetch_html {query {query_url "http://64.243.174.104/cgi-bin/findweather/getForecast?query="} {no_format 0}} {
array set output [fetch_html "$loop_url" "http://64.243.174.104" 1] |
_________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
sn1ck Voice
Joined: 08 Jan 2009 Posts: 2
|
Posted: Thu Jan 08, 2009 4:06 pm Post subject: |
|
|
yes, it would appear the shell can't ping wunderground. When trying to load the website in lynx no data is displayed. I wonder if wunderground is blocking them.
is it possible to modify your script to query noaa.gov. seems to me they had a way of doing this thru telnet...and web browser of course.
edit: nevermind, that'd limit the scope of the script to the usa |
|
| Back to top |
|
 |
|