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 

Update to weather_cli.tcl ?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
masinick
Voice


Joined: 04 Feb 2008
Posts: 9

PostPosted: Fri Feb 08, 2008 1:40 am    Post subject: Update to weather_cli.tcl ? Reply with quote

DragnLord was kind enough to suggest that it was the 2112 weather_cli.tcl script that I was probably using, and indeed it was. Recently wunderground.com made some changes to their site that seem to change the behavior of the scripts that reference the site. DragnLord already changed his Eggdrop script to reflect these changes.

I have been using a nice, simple, CLI based TCL script which, when expanded, becomes weather_cli.tcl. By any chance, if the author of that script is nearby or if anyone knows where I could reach them, I'd sure appreciate an update to that script that takes into account the recent wunderground.com changes.

Anyone happen to know the whereabouts of the person who has expertise with this script? Would sure appreciate any tips that would lead to getting that fine script updated.

Appreciate it, thanks!
_________________
Brian Masinick
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Feb 08, 2008 2:15 am    Post subject: Reply with quote

1) this should be in the "Script Support & Releases" forum
2) this topic is for rosc2112's weather scripts
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Feb 08, 2008 2:49 pm    Post subject: Reply with quote

I am aware of the site changes and have been working on fixing the commandline and eggdrop versions. Wunderground really fscked things up with their most recent changes, I'm having to do a kludgey bit of work-around on the moon and precipitation data, but the other parts are fixed.

I've been offline til I can get my EVDO modem working in linux (need an WinXP box to activate the dang thing ;/ )

Should have the fixes posted shortly.

Other projects I've got in my todo list have also been put on hold til I can get back online (dialup sucks Razz)
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Feb 11, 2008 6:12 pm    Post subject: Reply with quote

Fix uploaded.

http://members.dandy.net/~fbn/weather_cli.tcl.txt
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Feb 14, 2008 8:25 pm    Post subject: Reply with quote

Fixed again.
Back to top
View user's profile Send private message
masinick
Voice


Joined: 04 Feb 2008
Posts: 9

PostPosted: Mon Feb 18, 2008 11:55 am    Post subject: I am having problems with what I copied - wrong script? Reply with quote

rosc2112 wrote:
Fixed again.


Thanks! For some reason the new version is not working for me. I am wondering if I got the right one. I am getting these message:

Code:
./weather.tcl 03301
Retrieving data..One moment..

missing close-bracket
    while compiling
"set cwind "\\[1;36mWind:\[0;36m $wind\mph/[expr {round([expr {$wind * 1.609344}])}]\kmh"
        "
    ("if" then script line 4)
    while compiling
"if {($outwind == "") && ($wind != "") && (![regexp {[:alpha:]} $wind]) && ($wind != "-")} {
                set iwind "\[1;36mWind:\[0;36m $wind\mph"
                set mwind "\..."
    (compiling body of proc "wz_socket", line 273)
    invoked from within
"wz_socket $webpage $location $wzcity $wzoutput $wzzip $wzcountry"
    (procedure "wz_parse" line 128)
    invoked from within
"wz_parse $location"
    (procedure "wz_commandline" line 3)
    invoked from within
"wz_commandline $argv"
    invoked from within
"if {[info exists argc]} {
        if {$argc} {
                puts "Retrieving data..One moment..\n"
                wz_commandline $argv
        } else {
                puts "$::wzscript"
                puts "Usage: ..."
    (file "./weather.tcl" line 1380)


I called the script I copied weather.tcl. Do I have the right version - the one in http://members.dandy.net/~fbn/weather_cli.tcl.txt. Can you please set me straight? Did I copy the wrong script?

Appreciate the help!
_________________
Brian Masinick
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Feb 18, 2008 12:22 pm    Post subject: Reply with quote

Might be something about the location you tried, let me know what loc you're using so I can test. I don't get any errors and that section of code hasn't changed, so I can only assume there's some odd data going in from your particular location.
Back to top
View user's profile Send private message
masinick
Voice


Joined: 04 Feb 2008
Posts: 9

PostPosted: Mon Feb 18, 2008 12:26 pm    Post subject: Reply with quote

rosc2112 wrote:
Might be something about the location you tried, let me know what loc you're using so I can test. I don't get any errors and that section of code hasn't changed, so I can only assume there's some odd data going in from your particular location.


I am using Concord, NH as my site, zip code 03301.
_________________
Brian Masinick
Back to top
View user's profile Send private message
masinick
Voice


Joined: 04 Feb 2008
Posts: 9

PostPosted: Mon Feb 18, 2008 2:23 pm    Post subject: Found a version that works, thanks! Reply with quote

masinick wrote:
rosc2112 wrote:
Might be something about the location you tried, let me know what loc you're using so I can test. I don't get any errors and that section of code hasn't changed, so I can only assume there's some odd data going in from your particular location.


I am using Concord, NH as my site, zip code 03301.


I grabbed the file weather_cli.02b.tcl.gz and that seems to be working again. Thank you very much!
_________________
Brian Masinick
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
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