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 package? Or won't outHumidity be affected at all, because the never is a extraHumid1 value available? [email protected] schrieb am Sonntag, 27. Dezember 2020 um 12:58:47 UTC+1:
> > 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, 27. Dezember 2020 um 12:50:51 UTC+1: > >> 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 packet (in which case the >> above will produce an error and have no effect on outHumidity (which >> arguably is what you want)). >> >> Gary >> >> On Sunday, 27 December 2020 at 21:22:34 UTC+10 [email protected] wrote: >> >>> Let's say I have two sensors, "outHumidity" and "extraHumid1". >>> "outHumidity" ist a sensor that delivers data very reliable but not very >>> precise measurements, it's the stations built-in sensor. >>> "extraHumid1" delivers data a little less reliable, but very precise >>> values. It's a custom built ESP8266 using a SHT35, sending data over MQTT. >>> >>> Is it possible to prefer extraHumid1 over outHumidity, if there are >>> extraHumid1 values in the archive Interval? If not, use outHumidity? >>> >>> Something like >>> [[Corrections]] >>> outHumidity = if extraHumid1 == 'None' outHumidity else extraHumid1 >>> >>> >>> -- 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/de01e02e-c5bd-4a18-a806-8511d34dae6an%40googlegroups.com.
