It's treated the same as any other override
<https://www.weewx.com/docs/5.1/custom/custom-reports/#processing-order>.
In weewx.conf:
[StdReport]
...
[[Defaults]]
...
[[[Units]]]
...
[[[[StringFormats]]]]
kPa = %.1f
On Wed, Dec 11, 2024 at 5:55 PM Jacques Desroches <[email protected]>
wrote:
> Hi Tom,
>
> Sorry, I was confused about hPa (in Cumulus) and the kPa.
> Could you tell me how to display it with only one decimal?
>
> Thanks,
> Jacques
>
> Le mercredi 11 décembre 2024 à 20 h 42 min 29 s UTC-5, Tom Keffer a écrit :
>
>> I'm a little confused here. Pressure in kPa is usually around 100 kPa,
>> not 1000. Are you sure you don't mean hPa or mbar?
>>
>> On Wed, Dec 11, 2024 at 5:31 PM Jacques Desroches <[email protected]>
>> wrote:
>>
>>> Hi Tom,
>>>
>>> I'm using my own template for my site (www.meteostours.ca)
>>> and display barometer pressure with this command :
>>>
>>> $current.barometer.kPa.format(add_label=False)
>>>
>>> I'm working to adapt my other templates (on weatherbyyou.com) to weewx
>>>
>>> Regards,
>>> Jacques
>>> Le mercredi 11 décembre 2024 à 20 h 04 min 18 s UTC-5, Tom Keffer a
>>> écrit :
>>>
>>>> Hello, Jacques
>>>>
>>>> Which skin, and where?
>>>>
>>>> On Wed, Dec 11, 2024 at 4:58 PM Jacques Desroches <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>> In Canada, we display barometer in kPa (with only one decimal)
>>>>> but when pressure is below 1000kPa, Weewx display only 2 digits
>>>>> (99,xxkPa instead of 999,xx), is this a bug?
>>>>>
>>>>> Regards,
>>>>> Jacques
>>>>>
>>>>> --
>>>>> 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/8973d6f9-684f-4333-ab1a-9f12c647a9den%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/weewx-development/8973d6f9-684f-4333-ab1a-9f12c647a9den%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/1b1d0915-8582-47ac-97d4-b384f5e86fd4n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-development/1b1d0915-8582-47ac-97d4-b384f5e86fd4n%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/247b0ff9-87ad-4b30-8ac0-0a31cf2afc85n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/247b0ff9-87ad-4b30-8ac0-0a31cf2afc85n%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/CAPq0zEBDY%2BfaQ6kQZ3%2Bsgdhe70NAXMCLjwN7JovCA_cSc3nvBg%40mail.gmail.com.