Yes, that is what is intended.

The ValueTuple can use any unit valid for group_pressure --- it has nothing
to do with the final reporting unit, which is set under Units/Groups in
weewx.conf or skin.conf.




On Sat, Jul 23, 2022 at 1:15 PM Karen K <[email protected]> wrote:

> I wrote an XType extension, that calculates some value like this:
>
>     def get_scalar(self, obs_type, record, db_manager, **option_dict):
>         if obs_type!='myObsType': *raise* weewx.UnknownType(obs_type)
>         # some calculation here
>         return weewx.units.ValueTuple(x,'hPa','group_pressure')
>
> get_scalar() returns a ValueTuple containing a unit. But it seems to me
> that the unit is ignored.
>
> For example, if the function returns (20,'hPa','group_pressure'), then
> WeeWX reports 20 inHg.
>
> Is that intended?
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/weewx-development/acadc603-7df3-4a6c-bf7b-b1be8384665en%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/acadc603-7df3-4a6c-bf7b-b1be8384665en%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 on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zECJgJpREeCbrf%2B8dGZdiubQo42cgHi4N9teDZfLTeOjOQ%40mail.gmail.com.

Reply via email to