This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Worldtime1.3.tcl working, again.

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

Here's what you need:
hm2k wrote:I wrote a new worldtime.tcl which no longer uses a website to get the data.

I thought you may find this useful...

http://www.hm2k.com/posts/worldtime-tcl

Hope this helps.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

lol it took around 2 minutes and sure no result

Code: Select all

(06:58:09:30:11:10) <@Applets> .tz london
(06:59:52:30:11:10) <@ChatAway>  The time in London,United Kingdom is 
hm2k wrote:Here's what you need:
hm2k wrote:I wrote a new worldtime.tcl which no longer uses a website to get the data.

I thought you may find this useful...

http://www.hm2k.com/posts/worldtime-tcl

Hope this helps.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

Interesting.

If there is no result, it should return the "no result" error, yet in your case it is not.

Are you able to reach www.google.com from the machine that the eggdrop runs on? Try replacing the timeserver setting with www.yahoo.com instead.

Or, better still, change the gettime setting from 1 to 0.

Hope this helps.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

i did it but didnt work :(((

hm2k wrote:Interesting.

If there is no result, it should return the "no result" error, yet in your case it is not.

Are you able to reach www.google.com from the machine that the eggdrop runs on? Try replacing the timeserver setting with www.yahoo.com instead.

Or, better still, change the gettime setting from 1 to 0.

Hope this helps.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

and weather TCL is also making issue got from ur websites

Code: Select all

[22:37] scripts/weather.tcl error: can't find package html
[22:37] scripts/weather.tcl error: http is required, see http://wiki.tcl.tk/1475
[22:37] scripts/weather.tcl error: can't find package htmlparse
[22:37] scripts/weather.tcl error: Tcllib is required, see http://wiki.tcl.tk/12   
hm2k wrote:Interesting.

If there is no result, it should return the "no result" error, yet in your case it is not.

Are you able to reach www.google.com from the machine that the eggdrop runs on? Try replacing the timeserver setting with www.yahoo.com instead.

Or, better still, change the gettime setting from 1 to 0.

Hope this helps.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

Thanhas wrote:i did it but didnt work :(((
Based on the details you're providing (or rather lack of), I'll need shell access in order to diagnose it further.
Thanhas wrote:and weather TCL is also making issue got from ur websites

Code: Select all

[22:37] scripts/weather.tcl error: can't find package html
[22:37] scripts/weather.tcl error: http is required, see http://wiki.tcl.tk/1475
[22:37] scripts/weather.tcl error: can't find package htmlparse
[22:37] scripts/weather.tcl error: Tcllib is required, see http://wiki.tcl.tk/12   
Are you able to follow the links it suggests? You need to install those packages. You really should discuss other scripts somewhere else.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

when i type .wz london in the partyline this is the msg

Code: Select all

[07:45] Tcl error [pub:wz]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
hm2k wrote:
Thanhas wrote:i did it but didnt work :(((
Based on the details you're providing (or rather lack of), I'll need shell access in order to diagnose it further.
Thanhas wrote:and weather TCL is also making issue got from ur websites

Code: Select all

[22:37] scripts/weather.tcl error: can't find package html
[22:37] scripts/weather.tcl error: http is required, see http://wiki.tcl.tk/1475
[22:37] scripts/weather.tcl error: can't find package htmlparse
[22:37] scripts/weather.tcl error: Tcllib is required, see http://wiki.tcl.tk/12   
Are you able to follow the links it suggests? You need to install those packages. You really should discuss other scripts somewhere else.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

What version of tcl do you have installed?
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

how can i check ? which version is that

hm2k wrote:What version of tcl do you have installed?
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

Ask the person who runs the system your eggdrop is on. It's probably out of date so they should upgrade it.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Thanhas wrote:how can i check ? which version is that

hm2k wrote:What version of tcl do you have installed?

If you have enabled the use of
.tcl
command in your eggdrop.conf, then you could do:
.tcl info tclversion
as a command in the partyline.

Code: Select all

<yournick> .tcl info tclversion
<botnick> Tcl: 8.5
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

For the -urlencoding issue, it was already asked and solved as part of this thread.

A link to http2.5 (the version with urlencoding) can be found at the above url as well as how to get it working on eggdrop or windrop.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

speechles wrote:For the -urlencoding issue, it was already asked and solved as part of this thread.

A link to http2.5 (the version with urlencoding) can be found at the above url as well as how to get it working on eggdrop or windrop.
http2.5 is shipped with tcl 8.4 which was released 18-Apr-2008. You should upgrade to tcl 8.4 or above, if you haven't already.

I've updated weather.tcl to reflect this.
User avatar
LOQUILLO
Voice
Posts: 14
Joined: Wed Jul 21, 2004 4:45 pm
Location: Perú

Post by LOQUILLO »

Hi people, this is a worldtime thread and not a weather thread.
Actually I'm working in a fix for worldtime
LOQUILLO
IRC Network: EFnet
Channel: #Spanglish
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

Both worldtime.tcl and weather.tcl are currently fully functional.

No fixes are necessary, just follow the download link for the latest revision.
Post Reply