genLoopPackets() assigns the variable ‘humidity’ to the ‘outHumidity’ field in the loop packet (line 341) but when genLoopPackets() is iterating continuously it calls the sampleAndDisplay() method to (presumably) obtain updated sensor values. As far as I can tell variable ‘humidity’ is not set by sampleAndDisplay(). ‘humidity’ is only set at line 254 when the driver module is first loaded. This probably explains why the value is only correct/updated when WeeWX is started/restarted.
I think you need to revise you driver to ensure that that variable ‘humidity’ is in fact updated on a regular basis. Gary -- 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/3cb12d15-ae45-48da-85ac-ae5b184f1c4a%40googlegroups.com.
