I've finished porting this script to the http package. And as an added bonus, you can choose to use either the socket code, or the http package with a config option. Many other enhancements, and much changed throughout.
This is a beta release and testing/bug reporting is appreciated
More tweakage: Switches are no longer mutually exclusive, and can be used in any combination to show their respective outputs (except for -d to set defaults.)
Eg, .wz -t -s -m -p -r will show time, sun, moon, precip and record data if available. .wzf -t -s -m -p -r will show all plus the forecast.
This script is a damn obsession: More tweaks
- Fixed max_forecast to adjust for locations with less than $max_forecast lines.
- Added option to show help for switches when also using seperate binds (as for .moon, .sun, etc)
- Fixed -o output, I forgot to add the switch for it back into wz_parse when re-writing..doh
- Test for alpha chars in numerics in final output (shouldn't be any, except when wunderground changes their html and it throws alpha chars into the regex's, which would otherwise break [expr]
DragnLord wrote:Interesting that you have used my script for most of "your" coding and give no credit for that.
I request that, since you don't want to credit my work, that you download murf's 3.4.1 script
off the archive and go from there.
rosc2112 wrote:Its at the bottom. I tried to offer the changes to you, you didn't want them.
So I published my own copy. Take it or leave it.
Seems to me murf was the original coder for this project and you took it
over DragnLord... And now you're complaining about murf stealing your
modifications to put back into the code that he originally coded?
oh soz I have the correct latest version - set wzscript "Weather v2112.3j"
and now, following that previous error, a repeat of the same city brings up no problem hmmm maybe just a one-off
could it be sommat to do with the time being different when the call was made? bringing up the error? I dunno I'm no tcl'er Its a source problem from the weather underground I guess not your script.
If you see the problem again, try to get the html source page from wunderground so I can look at the strings and fix the regexp if needed. I can't seem to duplicate the problem at the moment but I'll keep my eyes open for it.