:: weatherWidgets[widget]
<<widget 'weatherImage'>>

	<<set _weatherImage = 'system/weather/wthr'>>
	<<set _weatherImage = _weatherImage + $time.dayStage>>
	<<if $weather.temperature < -10>>
		<<set _weatherImage += '1'>>
	<<elseif $weather.temperature <= 5>>
		<<set _weatherImage += '2'>>
	<<elseif $weather.temperature <= 19>>
		<<set _weatherImage += '3'>>
	<<else>>
		<<set _weatherImage += '4'>>
	<</if>>

	<<set _clouds = $weather.clouds>>
	<<if _clouds < 30>>
		<<set _weatherImage += '1'>>
	<<elseif _clouds < 60>>
		<<set _weatherImage += '2'>>
	<<else>>
		<<set _weatherImage += '3'>>
	<</if>>
	
	<<if !$weather.isRaining>>
		<<set _weatherImage += '1'>>
	<<else>>
		<<set _weatherImage += '2'>>
	<</if>>
	<<set _weatherImage += '.jpg'>>

	<<imageWithTooltip _weatherImage>>
		<<=$weather.desc>>
	<</imageWithTooltip>>
<</widget>>