Re: [weewx-user] Date/time formatting for aggregation like "maxsum"

2023-03-11 Thread michael.k...@gmx.at
Great, thanks! After all that java, spring, ... during the week, it's not so easy to see the sometimes easiest solutions in another world, thanks again for your inputs. Tom Keffer schrieb am Sonntag, 12. März 2023 um 00:17:15 UTC+1: > Look through the list of strftime() formats I linked to and

Re: [weewx-user] Date/time formatting for aggregation like "maxsum"

2023-03-11 Thread Tom Keffer
Look through the list of strftime() formats I linked to and see if anything fits your needs. For example, the rest of WeeWX uses %x and %X. On Sat, Mar 11, 2023 at 11:40 AM michael.k...@gmx.at < michael.kainzba...@gmx.at> wrote: > That was kind of what I intended to do, but while for $week using

Re: [weewx-user] Date/time formatting for aggregation like "maxsum"

2023-03-11 Thread michael.k...@gmx.at
That was kind of what I intended to do, but while for $week using "%A" may be OK, using "%m/%d%Y", won't fit in many localizations. Is there a default format for date without time that I should reference or should I just add such the format for the sums setting to each lang file? Tom Keffer sc

Re: [weewx-user] Date/time formatting for aggregation like "maxsum"

2023-03-10 Thread Tom Keffer
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), ...*

[weewx-user] Date/time formatting for aggregation like "maxsum"

2023-03-10 Thread michael.k...@gmx.at
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'