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.