Hi,
you need something like this.
#from weewx.units import ValueTuple, ValueHelper
#set $temprange=($day.outTemp.max.degree_C.raw - $day.outTemp.min.degree_C.raw)
#set temprange_vh=ValueHelper(ValueTuple($temprange,'degree_C','group_temperature'),formatter=$station.formatter)
$temprange_vh.format("%.1f",add_label=True)
and for the
dominant wind, look in the docs pls.
$day.wind.vecavg The vector average wind speed since midnight. If the wind blows east at 5 m/s for 2 hours, then west at 5 m/s for 2 hours, the vector average wind speed is zero.
$day.wind.vecdir The direction of the vector averaged wind speed. If the wind blows northwest at 5 m/s for two hours, then southwest at 5 m/s for two hours, the vector averaged direction is west.
$day.windDir.avg Not a very useful quantity. This is the strict, arithmetic average of all the compass wind directions. If the wind blows at 350° for two hours then at 10° for two hours, then the scalar average wind direction will be 180° — probably not what you expect, nor want.