# HG changeset patch # User paulo # Date 1336550452 25200 # Node ID 4d71846e56eee4271ed7f50df6a77f8ec4fe139f # Parent fa86ad0325ad6e4f7b4c81c1d73096d0b16af9af remove weather/ diff -r fa86ad0325ad -r 4d71846e56ee weather/getweather.sh --- a/weather/getweather.sh Sun Jan 08 17:57:08 2012 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/bin/sh - -URL=ftp://tgftp.nws.noaa.gov/data/forecasts/zone/ca/caz043.txt - -wget -O - ${URL} diff -r fa86ad0325ad -r 4d71846e56ee weather/index.css --- a/weather/index.css Sun Jan 08 17:57:08 2012 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -@import "../index.css"; diff -r fa86ad0325ad -r 4d71846e56ee weather/index.php --- a/weather/index.php Sun Jan 08 17:57:08 2012 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ - - -Weather - - - - - - 0) - $cache_mtime = filemtime($cache_fn); - -$newbody = ''; - -if ((time() - $cache_mtime >= $cache_life)) { - $newbody = shell_exec('./getweather.sh'); - file_put_contents($cache_fn, $newbody); -} else { - $newbody = file_get_contents($cache_fn); -} - -$end_time = microtime(true); -$elapsed_time = $end_time - $start_time; - -echo "
";
-echo $newbody;
-echo "
"; - -echo "
Time elapsed: " . sprintf("%.3f", $elapsed_time) . " seconds.
"; -?> - - -