Hi, With this extension, the sunshine time is recorded as minutes. So in your case, to have the number of hours, you should divide the sum by 60:
#set hours = int($day.sunshine_hours.sum.raw*/60*) #set minutes = $day.sunshine_hours.sum.raw - ($hours*60) With a daily sum of 135 minutes , this give: hours = int(135/60) = 2 minutes = 135-(2*60)= 15 So <sun value="$hours h $minutes m"/> should give now 2 h 15 m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ca7b1e63-e43d-4710-ade2-6408b4226817%40googlegroups.com.