The only symbols that can be used in the [[Corrections]] formula are other
types in the archive record. So unless 'ampere', 'linevoltage', and 'pf'
all appear in the record, the correction will not work.

On Tue, Oct 17, 2023 at 9:48 AM Mks Mk <mksm1...@gmail.com> wrote:

> we want to improve the accuracy of our home energy monitor and we added
> new sensor to read the main line voltage so we got two sensors and the data
> is logged in weewx database.
>
>     [[sensor_map]]
>
>         ampere = current.***.EfPacket
>         linevoltage = payload5.*****.RadioHeadASKPacket
>
> the database have these columns which we created
>
> consumption
> ampere
> linevoltage
> pf
>
> we want to calculate the energy consumption so we added this correction
>
> [StdCalibrate]
>
>     [[Corrections]]
>         # For each type, an arbitrary calibration expression can be given.
>         # It should be in the units defined in the StdConvert section.
>         # Example:
>         foo = foo + 0.2
> pf = 0.88
>         consumption = ((ampere * linevoltage) /1000) * pf
>
> unfortunately weewx did nothing nor it complained about it. can weewx
> process such formula?
>
> thanks
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/26effb7c-ad33-4de8-a9a0-f1390012ec5an%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/26effb7c-ad33-4de8-a9a0-f1390012ec5an%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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEB7PFF_--bbC6_vbtd51FPTEoAAB6qHh_4wc2Rx7DXwmw%40mail.gmail.com.

Reply via email to