Thank you!

Tom Keffer schrieb am Samstag, 2. Dezember 2023 um 23:08:20 UTC+1:

> Something like
>
> $span(day_delta=365).length.day.format("%d") <br/>
> $span(day_delta=1).length.day.format("%d")
>
> will generate
>
> 365 days
> 1 day
>
>
>
> On Fri, Dec 1, 2023 at 10:47 PM [email protected] <[email protected]> 
> wrote:
>
>> I have a report that reports the rain sum for the last 365 days:
>>
>> $span(day_delta=365).rain.sum
>>
>> I want to label this value like so:
>>
>> 365 days: 997mm
>>
>> Is there a way to format the number 365 with $units.labels.day?
>> Something like:
>>
>> $format(365, $units.labels.day) => 365 days
>> $format(1, $units.labels.day) => 1 day
>>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>> 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/ce86da41-9f28-41cf-a5c1-bd07b0990cb6n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/ce86da41-9f28-41cf-a5c1-bd07b0990cb6n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/18f87d29-26f2-4ec0-b2c1-d5e07252a5b0n%40googlegroups.com.

Reply via email to