weather script
Andrej Marjan
amarjan-e+AXbWqSrlAAvxtiuMwx3w at public.gmane.org
Thu Sep 16 20:37:50 UTC 2004
Adil Kodian wrote:
>On Thu, 16 Sep 2004 14:31:05 -0400, David J Patrick
>
>export PS1="Current temp: $(wget -nv -q -O -
>http://weather.noaa.gov/weather/current/CYXD.html|grep 'C)' |head -1 |
>awk '{print $5}' |tr -d '(') >"
>
>
Careful about using American data. I've seen their weather info for
Toronto lag by half a day. I used to maintain a screen scraper for
Environment Canada
(http://weatheroffice.ec.gc.ca/forecast/city_e.html?yyz) before they
fixed their pages. Same principle applies, though.
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list