Ok, but I am not sure what ‘prefer_hardware’ has to do with things; it is
not the same as hardware record generation nor does ‘prefer_hardware’ have
anything to do with corrections. ‘prefer_hardware’ is used with the
StdCalculate service, corrections are used with the StdCalibrate service
and h
Thank you Gary. I use "prefer_hardware", so I am very confident the
expression will do what I want to achieve.
gjr80 schrieb am Sonntag, 27. Dezember 2020 um 13:23:07 UTC+1:
> If extraHumid1 and outHumidity are not in that same loop packet then a
> correction expression will have no effect on t
If extraHumid1 and outHumidity are not in that same loop packet then a
correction expression will have no effect on the loop packet. If you are
using hardware record generation then the correction will be applied to the
archive record as well so that may do what you want for archive records. If
Actually, looking at the StdCalibrate code if extraHumid1 is not present in
the packet the error generated by the above correction expression will be
ignored. So the expression above will effectively cover both cases.
Gary
On Sunday, 27 December 2020 at 21:58:47 UTC+10 michael.k...@gmx.at wrote
But thinking further I have another question: will [[Corrections]] work
with every loop package or every archive interval or both? If on every loop
package is archive value computed from the loop data a mix of both sensors,
since the sensors won't deliver their readings with the same loop packa
Good Question. Since I am currently only thinking about how everything *could
*work out, I can't answer this at the moment. But I guess my question is
answered. If there would be an error, how would one handle it? Or is a
"nasty" log an no effect on "outHumidity" all?
gjr80 schrieb am Sonntag,
Hi,
You want something like:
outHumidity = outHumidity if extraHumid1 is None else extraHumid1
My only question is what behaviour do you see when extraHumid1 is not
provided; is extraHumid1 set to None (in which case the above will work as
you want) or is extraHumid1 omitted from the packe