As I said: "something like" .... "not tested" Then I'd give
outHumidity = extraHumid1 if 'extraHumid1' in locals() else None a try. Still: not tested, an I am just assuming that setting it to None when present it will be ignored when accumulating the value over an archive_interval. gjr80 schrieb am Donnerstag, 9. November 2023 um 03:53:49 UTC+1: > When merging sources it is often useful to run WeeWX directly > <http://weewx.com/docs/4.10/usersguide.htm#Running_directly>, that way > you can see exactly what is/is not in your loop packets. Frequently it is > not what you may expect. > > Gary > > On Thursday, 9 November 2023 at 09:33:30 UTC+10 Graham Eddy wrote: > >> just looking at the intention of the code without having read the thread >> [always dangerous!] >> i cannot quote the original python text here because unfortunately it was >> reported using a screenshot [please don’t do that] >> but note that if extraHumid1 is undefined (not present in packet, as >> opposed to present but with value None) then the assignment fails >> (outHumidity is unchanged). maybe check if it is in locals() instead >> *⊣GE⊢* >> >> On 9 Nov 2023, at 6:01 am, [email protected] <[email protected]> >> wrote: >> >> Still the same .. >> SQL from database: >> >> <Screenshot_1.jpg> >> >> Screenshot from config: >> >> <Screenshot_2.jpg> >> >> And yes I have stopped and restarted weewxd several times. >> >> -- 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/f15afe76-a1ba-48dc-901c-3475686e9379n%40googlegroups.com.
