-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrong calculation of averagewindDirection #1095
Conversation
Calle Code Time instead of global fromm hires
Codecov Report
@@ Coverage Diff @@
## master #1095 +/- ##
===========================================
- Coverage 90.37% 64.35% -26.02%
===========================================
Files 41 133 +92
Lines 2328 9520 +7192
Branches 151 1510 +1359
===========================================
+ Hits 2104 6127 +4023
- Misses 83 2222 +2139
- Partials 141 1171 +1030
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Ich hadere gerade noch ein wenig ob ich hier merge oder vorher noch einen Test für die sub nach schiebe. Die Berechnung des Durchschnittswertes wird nicht wirklich getestet. Es gibt ja in den Tests immer nur einen. Ich habe mir den History Array für die Berechnung schon zurecht gelegt und mehrere Werte hinterlegt. |
Tja, ich blicke da nicht wirklich durch, wieviel Werte in 10 Minuten benötigt werden um den Mittelwert zu bilden. Ich vermute, das 3 zu wenig sind. Mir fehlen auch Testdaten. |
Ok, ich forsche weiter.
|
|
Ich habe noch zwei Nachrichten gefunden:
|
Check average result with different values
- optimzed code a little bit, removed useless checks
- few perlcritic fixes
fix version
Ich habe den Test fertig und zumindest in dieser sub noch die perlcritic warnungen beseitigt. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Da waren zwar noch mehr Änderungen, aber du wirst schon wissen, was du tust :-)
* Update 14_SD_WS09.pm - usw CORE Time instead of global from hires - optimzed code a little bit, removed useless checks - few perlcritic fixes
* Update 14_SD_WS09.pm - usw CORE Time instead of global from hires - optimzed code a little bit, removed useless checks - few perlcritic fixes
Calle Code Time instead of global fromm hires
(You can also link to an open issue here, if this describes the current behavior)
Average is incorrect die to upstream change
Using time from Code which returns integer instead of float.
No
Rootcause is a change in fhem.pl
https://forum.fhem.de/index.php/topic,127125