From 6751489cab98b0ead0ef4651e9e4102e7c1a4e14 Mon Sep 17 00:00:00 2001 From: Mark Crossley <1196094+mcrossley@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:58:55 +0000 Subject: [PATCH] average wind speed was being miscalculated with a small number of samples and UseSpeedForAvgCalc = true --- CHANGELOG.md | 1 + CumulusMX/Properties/launchSettings.json | 2 +- CumulusMX/WeatherStation.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 788b37c1..bc117cd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ Alternatively view it [online on GitHub](https://github.com/cumulusmx/CumulusMX/ - Databases migrated by v4.3.0 and v4.3.1 are now scanned for issues, and fixes automatically applied - Fix some errors parsing log file entries, affects load recent data, and graph files - Fix Unknown sensor errors in Ecowitt TCP API sensor info +- Ecowitt historic catch-up average wind speed was being mishandled by MX = a lower value than reality ## [4.3.1 \[b4064\]][10] - 2024-12-09 diff --git a/CumulusMX/Properties/launchSettings.json b/CumulusMX/Properties/launchSettings.json index 781e7aac..ef1c4693 100644 --- a/CumulusMX/Properties/launchSettings.json +++ b/CumulusMX/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "CumulusMX": { "commandName": "Project", - "commandLineArgs": "-lang en-GB -port 8998" + "commandLineArgs": "-lang fr-FR -port 8998" } } } \ No newline at end of file diff --git a/CumulusMX/WeatherStation.cs b/CumulusMX/WeatherStation.cs index d634683d..859a1a41 100644 --- a/CumulusMX/WeatherStation.cs +++ b/CumulusMX/WeatherStation.cs @@ -6678,7 +6678,7 @@ public double GetWindAverageFromArray(DateTime fromTime) } } // average the values, if we have enough samples - if (numvalues > 5) + if (numvalues > 5 || cumulus.StationOptions.UseSpeedForAvgCalc) { avg = totalwind / numvalues; }