Exactly.
That's the big advantage of assigning a type to a unit group. All the
formatting and conversion machinery becomes available.
On Sun, Jun 5, 2022 at 8:45 AM 'Peter Fletcher' via weewx-user <
weewx-user@googlegroups.com> wrote:
> Thanks!
> I assume that this works 'out of the box'
Thanks!
I assume that this works 'out of the box' because I have defined the unit
for sunshine time as 'minute' (rather than something like 'sun_minute') and
weewx already 'knows' how to convert between common units of time. For my
solar production example, you would presumably need to use the
Sure. Just tell the report to use hours instead of minutes.
For example, for tags, it becomes $week.sunshine.sum.hour
For a plot, use option 'unit' in skin.conf.
[ImageGenerator]
...
[[week_images]]
...
[[[week_sunshine]]]
unit = hour
sunshine
All documented in
As noted in a different thread, I am working on a small extension to
calculate and store sunshine time (time when the sun is out, rather than
covered by clouds). I am saving the number of *minutes* of sunshine during
the archive period in each archive record. Sunshine minutes are fine for