What's your script for the weather?
I used 4 different scripts:
image is (here's the video for instruction)
link
curl --silent "http://weather.yahoo.com/forecast/USOR0031.html" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png
file:///tmp/weather.png
conditions is from lynx:
HTML:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=97702|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'
I couldn't get the temp to work from lynx and finally got this to work for me:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=97702&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'
Forecast from post # 772. I just took out the name and current conditions and only forecast for mine:
Weather for specific location:
Vertically listed as: City, State; Current Conditions and Temp; Forecast in one whole section:
echo "Kailua-Kona, HI"
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=96734&u=f" | grep -e "Current Conditions" -A 1 | tail -n 1 | sed -e 's/<BR \/>//'
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=96734&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/High\:\ \(.*\)\ Low\:\ \(.*\)/\?H\: \1\ L\:\ \2/" | sed "s/\?\(.*\)/\\1/"
remember to put your zip code in there