Projects / E-Forecast / Comments

Comments for E-Forecast

05 Nov 2002 15:24 truth

my fix for E-Forecast epplet
This is what i did to get the 0.2 version working, not sure why it wasnt working, think maybe a change in web page layout on weather.com's side. Change E-Forecast.c section under fetch_forecast_image_url function
FROM:

Esnprintf(str_cmd, sizeof(str_cmd),
"wget -q -O - %s|grep %s|sed 1d|awk -F'\"' '{print $2}'|head -n 1", str_url, __FORECAST_STRING);


TO:

Esnprintf(str_cmd, sizeof(str_cmd),
"wget -q -O - %s|grep %s|grep current| awk -F'\"' '{print $2}'|head -n 1", str_url, __FORECAST_STRING);


dont blame me if anything goes wrong as i have never coded before and this was done out of sheer desperation to get the epplet working.

--truth
crim@rochester.rr.com

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.