- May
- 13,123
- 180
Another fun project involvong TPIPE. This is a first attempt and will probably evolve. I don't know if my list of time descriptions is complete.
Code:
copy /q "http://forecast.weather.gov/MapClick.php?zoneid=NYZ018&zflg=1" t:\forecast.raw
tpipe /input=t:\forecast.raw ^
/grep=3,0,0,1,0,0,0,0,"Highs in the" ^
/simple=16 ^
/replace=4,1,0,0,0,0,0,0,0,^
"(This Afternoon|Rest Of Today|Rest Of Tonight|Monday Night|Tuesday Night^
|Wednesday Night|Thursday Night|Friday Night|Saturday Night|Sunday Night^
|Today|Tonight|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday).*",^
"\n\n\x1b[36;1m$0\x1b[0m " ^
/number=2,80 ^
> t:\forecast.txt
type t:\forecast.txt
del /q t:\forecast.*