| View previous topic :: View next topic |
| Author |
Message |
masinick Voice
Joined: 04 Feb 2008 Posts: 9
|
Posted: Fri Feb 08, 2008 1:40 am Post subject: Update to weather_cli.tcl ? |
|
|
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 |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Feb 08, 2008 2:15 am Post subject: |
|
|
1) this should be in the "Script Support & Releases" forum
2) this topic is for rosc2112's weather scripts |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Feb 08, 2008 2:49 pm Post subject: |
|
|
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 ) |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Feb 14, 2008 8:25 pm Post subject: |
|
|
| Fixed again. |
|
| Back to top |
|
 |
masinick Voice
Joined: 04 Feb 2008 Posts: 9
|
Posted: Mon Feb 18, 2008 11:55 am Post subject: I am having problems with what I copied - wrong script? |
|
|
| 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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Feb 18, 2008 12:22 pm Post subject: |
|
|
| 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 |
|
 |
masinick Voice
Joined: 04 Feb 2008 Posts: 9
|
Posted: Mon Feb 18, 2008 12:26 pm Post subject: |
|
|
| 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 |
|
 |
masinick Voice
Joined: 04 Feb 2008 Posts: 9
|
Posted: Mon Feb 18, 2008 2:23 pm Post subject: Found a version that works, thanks! |
|
|
| 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 |
|
 |
|