size 400 300 image 0 0 %%hwitemplate_path%%/ws.gif textsize MEDIUM textcolor RGB 255 255 255 textat 291 95 "%%hsky%% " SPACEWRAPCENTER textsize GIANT textcolor RGB 255 255 0 textwrap 25 let hwvplace {$hwvplace= ("%%hwvdisplay%%") ? "%%hwvdisplay%% " : "%%lcplace%%, %%lcstate%% "; $hwvplace} textat 125 40 "%%hwvplace%% " CENTER # if forecast is unavail lets do unavail routine dounavail # other wise keep going textsize SMALL textwrap 39 textcolor RGB 255 255 255 textat 125 80 {substr("%%day_forecast1%% ",0, 100)} CENTER textwrap 0 textcolor RGB 255 255 0 textat 15 280 "Dated: %%hforecastdate%% " textsize MEDIUM textat 372 42 "%%htempf%%°F" CENTER textsize GIANT textat 68 148 "%%hrh%%%" CENTER textat 173 148 "%%hpressure%%" CENTER textat 281 148 "%%hwind%%" CENTER drawcolor RGB 255 0 0 drawwidth 3 line 382 {265-int(("%%htempf%%"+50)*1.166)} 382 265 # drawwidth 2 let hwvd2r {atan2(1,1) / 45} # let hwvx {67 + int(0.5 + 45 * cos(("%%hrh%%"*2.2 - 200) * %%hwvd2r%%))} let hwvy {218 + int(0.5 + 45 * sin(("%%hrh%%"*2.2 - 200) * %%hwvd2r%%))} line 67 218 %%hwvx%% %%hwvy%% image 60 211 %%hwitemplate_path%%/ws_circle.gif # let hwvpressure {substr("%%hpressure%%",0,5)-27} let hwvx {175 + int(0.5+ 45 *cos(("%%hwvpressure%%"*66.25 - 245) *%%hwvd2r%%))} let hwvy {218 + int(0.5 + 45 * sin(("%%hwvpressure%%"*66.25 - 245) * %%hwvd2r%%))} line 175 218 %%hwvx%% %%hwvy%% image 168 211 %%hwitemplate_path%%/ws_circle.gif # let hwvx {281 + int(0.5+ 45 *cos(("%%hwind_val%%"*4.42 - 245) *%%hwvd2r%%))} let hwvy {218 + int(0.5 + 45 * sin(("%%hwind_val%%"*4.42 - 245) * %%hwvd2r%%))} line 281 218 %%hwvx%% %%hwvy%% image 274 211 %%hwitemplate_path%%/ws_circle.gif # image 264 29 %%hicon_path%% end # unavailstart textsize SMALL textwrap 39 textcolor RGB 255 255 255 textat 125 80 "Weather Information Unavailable" CENTER image 264 29 %%hicon_path%% end