If you must modify the code then yes that will do what you want provided there is no min_sunshine setting in weewx.conf.
Gary -- 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/43be554d-e7f3-41c8-95ac-df80f64f15aa%40googlegroups.com.