You definitely don't want sunshine_hours (or sunshineHours) because that
implies a unit. I would suggest "daylight".

As for which unit group, the almanac uses group_deltatime for length of
day. It's normally measured in seconds.

On Thu, Mar 24, 2022 at 10:54 AM Karen K <[email protected]> wrote:

> I bought a sunshine duration sensor from Weerhuisje. When integrating it
> in WeeWX I wondered how to call the observation type. There is nothing
> appropriate in the standard schema. I found 2 extensions regarding sunshine
> duration. One of them calls the observation type "sunshine_hours", the
> other one "sunshine_time".
>
> I would guess it is not generally a good idea to include an underscore in
> the observation type name, as the underscore is used to separate the unit
> from the observation type in the widely used MQTT extension.
>
> And I guess it would be better to have the same name irrespective of the
> data source, which extension or hardware is used.
>
> Another thing is the unit group. I would allocate the sunshine duration to
> group_deltatime, as the output would be something like "8 hours, 45
> minutes, 10 seconds" or so. group_interval would be less appropriate, as
> sunshine duration is not exactly an interval but rather a time period.
>
> After all I am not sure.
>
> --
> 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/e8adff2f-8552-4c1e-8cdd-74d2c15dd514n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/e8adff2f-8552-4c1e-8cdd-74d2c15dd514n%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/CAPq0zED0jPNk_zTWC1wnLGBxD_ttEU2e95pry33kcVkmDExdBA%40mail.gmail.com.

Reply via email to