>
> @Tom,
> You assume that the current deltatime value is always less than 1 hour,
>

I'm not assuming anything. You are using the tag $current, which implies
something that is, well, "Current." That is, it is of a time scale
comparable to an archive interval or, perhaps, up to a day. Definitely not
longer than that.

It can't guess your intentions, nor can it guess that "runtime" might be
measured in days. If it can, then tell it that:

$current.runtime.long_form(format_string="%(day)d%(day_label)s,
%(hour)d%(hour_label)s, %(minute)d%(minute_label)s")

The reason why it's done this way is so that you don't end up with a
leading "0 days" for the typically short time intervals associated with
$current.

An alternative is to define a search list extension for "runtime". Then you
can apply any context you wish, not just the "current" context.

Hope this helps.

-tk

-- 
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/CAPq0zEB8M0mrYQYEBYGuOCP6hATCrH-D0x3GYNej9R8AejaU7w%40mail.gmail.com.

Reply via email to