On Thursday, 14 May 2020 08:17:07 UTC+10, Tom Keffer wrote:
>
> Yes, that could do it. I'm surprised that worked in V3.9. Use this instead
>
> $day.rain.sum.nolabel("%.2f","0.0")
>Been thinking about this too as it puzzled me. I note there are a number of $hour tags in the template. I have found that $hour tags can be susceptible to returning (seemingly) unexpected None values if you are missing a full (top of the hour to top of the hour) of data in the day concerned. I am wondering that since the 0.0 is the value used if the tag is None, perhaps it was an $hour tag that threw the error, the 0.0 in a $day tag will sit there quite happily until the $day tag returns a None and there is probably less chance of this happening, the changeover from 3.9.2 to 4.0.0 could easily have resulted in an hour devoid of data. Also, since the error is non-fatal if it did show up under 3.9.2 it would be easily missed unless your are paying attention to the logs. 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/defb1234-6f22-4f3a-aa9c-ff4ffb757bbf%40googlegroups.com.
