I have implemented a workaround by putting in conditionals to display power
values greater than 1000W as kW, which avoids the thousands separator
issue. The whole thing is a bit odd, because my locale is US, which I
thought should be using the separators by default.
On Sunday, July 20, 2025 at 8:19:08 PM UTC-4 Tom Keffer wrote:
> Whole numbers can easily be specified with a custom format. Something like:
>
> $week.power.sum.format("%.0f")
>
> Unfortunately, use of thousands separators depends on the specified locale
> and cannot be overridden. It really should be.
>
>
>
>
>
> On Fri, Jul 18, 2025 at 3:59 PM 'Peter Fletcher' via weewx-development <
> [email protected]> wrote:
>
>> Is there a way in the relevant .inc files of overriding the default
>> numeric formatting (which seems to be) defined by the group a data value is
>> included in? The predefined power group appears to want to use one decimal
>> place, and no thousands separator. Because of the magnitude of the numbers
>> I am displaying, I would like to have whole numbers with a thousands
>> separator. The customization section of the manual does not seem to address
>> this particular aspect of customization.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion visit
>> https://groups.google.com/d/msgid/weewx-development/80308a49-183d-4592-8898-529890835d70n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-development/80308a49-183d-4592-8898-529890835d70n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/weewx-development/fd667c36-42a3-42ee-80ab-8a6f1304ec97n%40googlegroups.com.