Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

[Davis] Enable IP communication with davis weather station #5227

Merged
merged 4 commits into from Jul 5, 2019

Conversation

enricobaros
Copy link
Contributor

Hi,

I just made a push of my work. This bundle is working fine for about 2 weeks in my openhab2 installation.
Goal of this enhancement is to communicate by IP (new) or SERIAL (existing) with Davis weather station. The protocol remains the same.
Best regards

Copy link
Contributor

@9037568 9037568 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this.

I have a few comments on changes I'd like to have in the design.

First, I feel like the type setting should be eliminated. The binding can choose whether to use serial or IP based on the whether the hostname setting is configured.

The configuration settings should be streamlined to have only 1 of each in the user-facing configuration. Eg. instead of having port and portNumber, only port should exist.

I'd also suggest renaming the sleepResponse setting to "readResponseWaitTime", to better reflect what it does.

Please also ensure you've run all the code through the Eclipse formatter.

@enricobaros
Copy link
Contributor Author

Hi,

I just implemented your suggestion. I suppress the port number property as it is a fixed value from the manufacturer. I suppressed the 'type' property and rename the other one.

One question, what do mean by 'run all the code through the Eclipse formatter' as the option 'formatting' was already activated. Do you mean all other java classes that I didn't modify ?

Best regards

@enricobaros
Copy link
Contributor Author

enricobaros commented Jun 26, 2017 via email

Copy link
Contributor

@9037568 9037568 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. Just a few more issues that need fixing.

@enricobaros
Copy link
Contributor Author

I just made a commit but it will be the last, I switch to Jeedom solution last month, it is by far more reactive and mature. The fact of wiping off Eclipse editor is an error for me (I'm a Mac user). Bye

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/davis-weather-via-ip/43429/1

@9037568 9037568 changed the title Enable IP communication with davis weather station [Davis] Enable IP communication with davis weather station Apr 10, 2018
@9037568
Copy link
Contributor

9037568 commented Jun 29, 2019

Thanks, @enricobaros !
And thanks to @lukqw for testing the IP changes.

@9037568 9037568 merged commit cfe05b1 into openhab:master Jul 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants