Originally Posted by
davizzy
Do no refresh it too often. I do 10 minutes which is 600 seconds.Add your zip code where you see XXXXX. Two day forcast.curl "
http://xml.weather.yahoo.com/forecastrss?p=XXXXX&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/
//' -e 's/
//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "" | sed "s/High\
\(.*\)\ Low\
\(.*\)/\?H\: \1\ L\
\2/" | sed "s/\?\(.*\)/\\1/"
Go here
http://weather.yahoo.com/. Then input your zipcode. After that it should take you to your current weather conditions fromyour area. I see that your area code is "66506" (my zip code) so ill go ahead and just link you. Sojust copy the script below and put it in a shell. Dont refresh it too often or else it will get messed up. Let me know if it works for you.
For the image you need two scripts. First add the shell script. This will not display anything. Go to yahoo and type in your zip code to obtain the remaining url information. You then paste in the the slot where it says "your remaining link info".curl --silent "
http://weather.yahoo.com/YOUR REMAINING LINK INFO" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /var/tmp/weather10.png\This script you add it as an image not a shell script like you usually would. This should give you an image after you add it.file://localhost/var/tmp/weather10.png