Yes, the query is not as optimal as it could be. It's returning the right
date, but the time at which maximum rainfall was achieved, rather than
midnight.

You can solve your problem by applying a formatting. For example,

*$week.rain.maxsumtime.format("%A"), $month.rain.maxsumtime("%m/%d/%Y), ...*


The formatting is from Python's strftime() function
<https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior>
.

On Fri, Mar 10, 2023 at 6:03 AM michael.k...@gmx.at <
michael.kainzba...@gmx.at> wrote:

> When I calculate "maxsum" as the maximum daily rain sum per
> week/month/year/alltime, I am a bit confused by the output when it comes to
> formatting the date/time for the value.
>
> For me, having a time for a maximum daily sum doesn't make sense in this
> context.
>
> So, How can I solve this? I couldn't find out so far, if I can specifiy a
> special time format for aggregations like "maxsum"
>
> In the template I use $week.rain.maxsumtime, $month.rain.maxsumtime,
> $year.rain.maxsumtime, $alltime.rain.maxsumtime. The used format makes
> sense for max, min, maxmin, minmax, but not for a sum.
>
> How can I make the web page show "Wednesday" for "This week", "03/08/2023"
> for "This month, etc, without the hh:mm:ss added?
>
> [image: 2023-03-10 14_48_03-The weather in Test - Brave.png]
>
> --
> 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/beb4ca00-11f5-4758-bb89-17aec6b2a956n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/beb4ca00-11f5-4758-bb89-17aec6b2a956n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEBgpZPrBq99n_SJun2bzfO%2BJWYhG4TAw0nD_jJRCfP5eA%40mail.gmail.com.

Reply via email to