Skip to content

Commit

Permalink
average wind speed was being miscalculated with a small number of sam…
Browse files Browse the repository at this point in the history
…ples and UseSpeedForAvgCalc = true
  • Loading branch information
mcrossley committed Dec 18, 2024
1 parent 4dc2d54 commit 6751489
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CumulusMX/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"CumulusMX": {
"commandName": "Project",
"commandLineArgs": "-lang en-GB -port 8998"
"commandLineArgs": "-lang fr-FR -port 8998"
}
}
}
2 changes: 1 addition & 1 deletion CumulusMX/WeatherStation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6751489

Please sign in to comment.