Hi, Chris

1. While the treatment of units is pretty modularized in weewx itself, many
extensions make assumptions that there are only 3 unit systems ("If not
this or this, then it must be that."). It may be too late to add a fourth
unit system. It seems like it would be simpler to add kPa to the set of
units, then use it in group_pressure.

2. As for your specific error, it's impossible to say much without some
context. Are you forking weewx and adding to it? Or, trying to implement
this as an extension? The module weewx has US, METRIC, and METRICWX
defined. It does not have CANMATRIXWX. That would have to be added.

-tk

On Mon, Aug 24, 2020 at 8:37 PM Chris Alemany <[email protected]> wrote:

> Hi All,
>
> I'm trying to extend weewx so that there is a 4th option for unit systems
> called "CANMETRICWX" (Canadian Metric).
>
> This would be the same as "METRIC" except rain values are in mm and
> pressure values are in kPa and eventually would also include a "Humidex"
> calculation as well.
>
> I thought I had added everything I needed throughout the file system for
> the addition of the units system but I'm running into the following
> complaint on startup:
>
> "AttributeError: module 'weewx' has no attribute 'CANMETRICWX'"
>
> Not being familiar enough with python, I am stumped as to where I can add
> that attribute. Any help greatly appreciated.
>
> Cheers
>
> Chris
>
> --
> 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/976de428-315e-4666-838c-fe5677759d4en%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/976de428-315e-4666-838c-fe5677759d4en%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/CAPq0zECWAHSySD3kdpw6LMOr0JCqtVnmawD5mCi_BGm%2BziV2NA%40mail.gmail.com.

Reply via email to