Title says it all.
My GeekTool weather scripts, specifically, "Current Conditions" along with the PNG file grab and the "Four-day Forecast" have gone AWOL.
Everything was fine, it was working, then there was a day or maybe two where it looked as though it was pulling forecast information for somewhere else, the highs, lows, and weather were off from what the National Weather Service forecasts were. Then, finally, nothing. Just gone.
Does anyone have any information or resolution for this issue?
Here is the curl code that I've been using, location is Mount Shasta, CA
Weather Image Grab =
curl --silent "https://uk.weather.yahoo.com/23424977/california/mount-shasta-2455436/" | grep "current-weather" | sed "s/.*background\:url(\'\(.*\)\') .*/\1/" | xargs curl --silent -o /tmp/weather1.png\
Current Conditions =
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USCA0741&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>//'
Four Day Forecast =
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USCA0741&u=f" | grep -E '(High' | sed -e 's/<BR \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<br \/>//'
[edit] The smilie after 'High' is actually a colon and close parenthesis.
My GeekTool weather scripts, specifically, "Current Conditions" along with the PNG file grab and the "Four-day Forecast" have gone AWOL.
Everything was fine, it was working, then there was a day or maybe two where it looked as though it was pulling forecast information for somewhere else, the highs, lows, and weather were off from what the National Weather Service forecasts were. Then, finally, nothing. Just gone.
Does anyone have any information or resolution for this issue?
Here is the curl code that I've been using, location is Mount Shasta, CA
Weather Image Grab =
curl --silent "https://uk.weather.yahoo.com/23424977/california/mount-shasta-2455436/" | grep "current-weather" | sed "s/.*background\:url(\'\(.*\)\') .*/\1/" | xargs curl --silent -o /tmp/weather1.png\
Current Conditions =
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USCA0741&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>//'
Four Day Forecast =
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USCA0741&u=f" | grep -E '(High' | sed -e 's/<BR \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<br \/>//'
[edit] The smilie after 'High' is actually a colon and close parenthesis.
Last edited: