For your specific case I'd just kick zero wind loop packets out: windSpeed = None if windSpeed == 0 else windSpeed, loop
The windDir should be "None" if windSpeed is zero anyway, but to be sure: windDir = None if windSpeed == 0 else windDir, loop [email protected] schrieb am Mittwoch, 15. Januar 2025 um 18:48:53 UTC+1: > See: > https://weewx.com/docs/5.1/reference/weewx-options/stdcalibrate/?h=stdcalibrate#corrections > > [email protected] schrieb am Mittwoch, 15. Januar 2025 um 18:47:38 > UTC+1: > >> Yes it is. I have a station with two Anemometers and I mix them in the >> way, that always the higher windSpeed/windGust will be used, if both are >> there, or the one that's there. Anemometers freeze or sometime I have >> Signal strength issues. I always take the direction of a specific one (an >> ultrasonic with heating, that won't freeze), except it isn't there. It's >> quite a brainf*ck, but it works. Some other Corrections are also done: >> >> [StdCalibrate] >> >> [[Corrections]] >> >> radiation = luminosity/126.7 if luminosity is not None else None >> #gw1000 fix >> lightning_distance = lightning_distance if lightning_strike_count >> > 0 else None >> windSpeed = ws90_windSpeed if 'windSpeed' not in locals() else >> windSpeed if 'ws90_windSpeed' not in locals() else ws90_windSpeed if >> ws90_windSpeed > windSpeed else windSpeed >> windGust = ws90_windGust if 'windGust' not in locals() else >> windGust if 'ws90_windGust' not in locals() else ws90_windGust if >> ws90_windGust > windGust else windGust >> windDir = ws90_windDir if 'ws90_windDir' in locals() and >> ws90_windDir is not None else windDir >> >> >> >> Rory Gillies schrieb am Mittwoch, 15. Januar 2025 um 17:53:42 UTC+1: >> >>> I know I could just try this but interested to hear if it would work, or >>> if I have any other options. WeeWX 5.1. >>> >>> Is it possible to use logic in StdCalibrate in weewx.con? Something like >>> this: >>> >>> [StdCalibrate] >>> if windSpeed == 0 windspeed = windspeed + 15 >>> if windDir == NULL windDir = windDir + 235 >>> >>> The reason is I have a dying anemometer and it's going to take a couple >>> of weeks to get a replacement installed (it's on my chimney 8m above the >>> ground). When the wind blows from SSW to WSW above 20mph it sometimes drops >>> to zero every few loop packets (other times it is perfect). >>> >>> [image: Screenshot 2025-01-15 at 16.49.12.png] >>> >>> I know the observations will be technically incorrect but better than no >>> wind at all! >>> >>> -- 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 visit https://groups.google.com/d/msgid/weewx-user/b8c159e3-5660-4550-9f5f-3dfbdd51e65dn%40googlegroups.com.
