Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10 day forecast with geektool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10 day forecast with geektool
Authored by: Oryman on Jan 12, '05 08:36:49PM
This script below works just fine with the terminal but when using geektool, there is no output. Any body can help? It would be cool to just have a text output of a weather forecast on the desktop. The script is:
wxurl="http://wwwa.accuweather.com"
wxurl="$wxurl/adcbin/public/local_index_print.asp?zipcode=97489"
size=999; shift
size=5
echo 
lynx -source "${wxurl}$1" | \
sed -n '/Start - Forecast Cell/,/End - Forecast Cell/p' | \
sed 's/<[^>]*>//g;s/^ [ ]*//g' | \
uniq | \
head -97489
exit 0


[ Reply to This | # ]
10 day forecast with geektool
Authored by: Sensei on May 17, '07 09:07:07PM

I know this thread is old, but I just discovered it.

I've noticed some issues with GeekTool requiring full paths for certain commands. I was able to get the 10 day forecast script to work by entering the full path for lynx as /sw/bin/lynx (I got lynx with fink, so that's why it's there).

I did the same thing with fortune that I got from fink.

---

"DON'T PANIC"
Douglas Adams



[ Reply to This | # ]