size 300 200 # Now we put in the general info textsize MEDIUM textcolor RGB 0 0 255 textat center 2 "Forecast For" let hwvplace {$hwvplace= ("%%hwvdisplay%%") ? "%%hwvdisplay%% " : "%%lcplace%%, %%lcstate%% "; $hwvplace} textat center 18 "%%hwvplace%% " # if forecast is unavail lets do unavail routine dounavail # other wise keep going textsize TINY textcolor RGB 0 0 0 textat center 34 "Dated: %%forecastdate%%" textwrap 11 # let hwvxoffset {$hwvdays = %%num_zone_days%% +0; $hwvdays=4 if ($hwvdays > 4); (4-$hwvdays) * 40+40; } # Now lets display the 4th icon/day & condition. If the weather for this day # does not exist nothing will show up because it willbe off the right side # of the image textsize MEDIUM textat { 225 +%%hwvxoffset%% } 50 "%%day_title4%% " CENTER image { 225 +%%hwvxoffset%% } 82 %%day_icon4%% CENTER textsize SMALL textat { 225 +%%hwvxoffset%% } 147 "%%day_weather4%% " SPACEWRAPCENTER textsize TINY textat { 225 +%%hwvxoffset%% } 175 "%%day_temps4%% " SPACEWRAPCENTER # # Now lets display the 3rd icon/day & condition. textsize MEDIUM textat { 150 +%%hwvxoffset%% } 50 "%%day_title3%% " CENTER image { 150 +%%hwvxoffset%% } 82 %%day_icon3%% CENTER textsize SMALL textat { 150 +%%hwvxoffset%% } 147 "%%day_weather3%% " SPACEWRAPCENTER textsize TINY textat { 150 +%%hwvxoffset%% } 175 "%%day_temps3%% " SPACEWRAPCENTER # # Now lets display the 2nd icon/day & condition. textsize MEDIUM textat { 75 +%%hwvxoffset%% } 50 "%%day_title2%% " CENTER image { 75 +%%hwvxoffset%% } 82 %%day_icon2%% CENTER textsize SMALL textat { 75 +%%hwvxoffset%% } 147 "%%day_weather2%% " SPACEWRAPCENTER textsize TINY textat { 75 +%%hwvxoffset%% } 175 "%%day_temps2%% " SPACEWRAPCENTER # # Now lets display the 1st icon/day & condition. textsize MEDIUM textat %%hwvxoffset%% 50 "%%day_title1%% " CENTER image %%hwvxoffset%% 82 %%day_icon1%% CENTER textsize SMALL textat %%hwvxoffset%% 147 "%%day_weather1%% " SPACEWRAPCENTER textsize TINY textat %%hwvxoffset%% 175 "%%day_temps1%% " SPACEWRAPCENTER end unavailstart textcolor RGB 0 0 0 textsize LARGE textat center 60 "The Forecast is Unavailable" end