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
[Meteostick] Add windvane calibration #16270
Conversation
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.
Left some minor comments
bundles/org.openhab.binding.meteostick/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...k/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickSensorHandler.java
Show resolved
Hide resolved
...ostick/src/main/java/org/openhab/binding/meteostick/internal/MeteostickBindingConstants.java
Outdated
Show resolved
Hide resolved
For some reason I did not commit and push all changes. Although the README was changed to include the "rain-today" channel, the code change for this channel was not included in the commit/push/pull. Will do a rebase, add commit and repush. |
28044ff
to
74010cc
Compare
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.
LGTM, @cdjackson would be nice if you can comment as codeowner.
Had to push once more as apparently the channel for rain-today was not showing up in the binding due to missing info in OH-INF/i18n/meteostick.properties and OH-INF/thing/thing-types.xml. Fixed these files as well to show the new channel (tested in my production OH server at home). |
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.
Minor label adjustment.
bundles/org.openhab.binding.meteostick/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
The Davis wind vanes 6410, 7911 and 7914 are mounted to a flat surface on the shaft. To ensure correct orientation of the wind vane, the anemometer must be mounted so that the arm points true north. This is not always possible. In these cases the wind direction must be calibrated. This commit adds the option to enter the direction the arm is facing and the binding will recalculate the wind direction as received from the Meteostick before publishing to the relevant channel. Furthermore in my opinion one rain channel was missing: accumulative rainfall for the current date. Added this channel, which required some code changes (adding of cronScheduler so the value is reset at midnight of the selected timezone). Tried to improve the code. Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com>
In other commit mentioned adding daily rain accumulation but forgot to add the code. This commit adds the code for the daily rain accumulation channel. Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com>
In previous commit did not add the channel for daily accumulated rain. Fixed with this commit. Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com>
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com>
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.
LGTM, thanks
* [Meteostick] Add windvane calibration * [Meteostick] Added daily rain accumulation Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Ref. issue 16268
The Davis wind vanes 6410, 7911 and 7914 are
mounted to a flat surface on the shaft. To ensure
correct orientation of the wind vane, the
anemometer must be mounted so that the arm points
true north. This is not always possible. In these
cases the wind direction must be calibrated. This
commit adds the option to enter the direction the
arm is facing and the binding will recalculate the wind direction as received from the Meteostick
before publishing to the relevant channel.
Furthermore in my opinion one rain channel was
missing: accumulative rainfall for the current
date. Added this channel, which required some code changes (adding of cronScheduler so the value is
reset at midnight of the selected timezone). Tried to improve the code.