Based on the values being calculated in order (as it says in the docs) I tried the following which didn't work (although no errors when starting WeeWX):
windSpeed = 20 if windSpeed == 0 else windSpeed == windSpeed * 1.15 windGust = windSpeed + 10 if windGust == 0 else windGust == windGust * 1.15
windDir = windDir if windDir is not None else windDir == 220
So I reversed it based on windDir being null which didn't work either:
windSpeed = windSpeed * 1.15 if winDir is not None else windSpeed == 20
windGust = windGust * 1.15 if windDir is not None else windGust == windSpeed + 10
windDir = windDir if windDir is not None else windDir == 220
This is the overnight plot, you can see it went off completely for a couple of hours after 04:00. I was working on it around between 22:00 and 00:00 when it started to drop.
Also, I noticed a strange effect with the force_null setting, if I set it to True windDir appears to stay at the last known direction, if I set it as False windDir moves to north, I thought this was supposed to work the other way round?
Thanks,
Rory