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.

Update to weather_cli.tcl ?

Support & discussion of released scripts, and announcements of new releases.
Post Reply
m
masinick
Voice
Posts: 9
Joined: Mon Feb 04, 2008 9:54 pm

Update to weather_cli.tcl ?

Post by masinick »

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
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

1) this should be in the "Script Support & Releases" forum
2) this topic is for rosc2112's weather scripts
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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 :P)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Fixed again.
m
masinick
Voice
Posts: 9
Joined: Mon Feb 04, 2008 9:54 pm

I am having problems with what I copied - wrong script?

Post by masinick »

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: Select all

./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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
m
masinick
Voice
Posts: 9
Joined: Mon Feb 04, 2008 9:54 pm

Post by masinick »

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
m
masinick
Voice
Posts: 9
Joined: Mon Feb 04, 2008 9:54 pm

Found a version that works, thanks!

Post by masinick »

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
Post Reply