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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 10 additions & 5 deletions bundles/binding/org.openhab.binding.davis/README.md
@@ -1,6 +1,6 @@
# Davis Binding

The openHAB Davis binding supports reading data from Davis weather stations. Most Davis weather stations should be supported.
The openHAB Davis binding supports reading data from Davis weather stations. Most Davis weather stations should be supported.

The binding is based on the [Serial Communication Reference Manual](http://www.google.at/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCQQFjAA&url=http%3A%2F%2Fwww.davisnet.com%2Fsupport%2Fweather%2Fdownload%2FVantageSerialProtocolDocs_v261.pdf&ei=yns1VLO9B9Pe7Ab9hYDgDQ&usg=AFQjCNEUP_O6jjV3tHaxc7_faaLKWAtw2g&sig2=0YuJy45Qmk76RlffOqayuA&bvm=bv.76943099,d.ZGU) from Davis.

Expand All @@ -9,10 +9,15 @@ The binding is based on the [Serial Communication Reference Manual](http://www.g

The binding can be configured in the file `services/davis.cfg`.

| Property | Default | Required | Description |
|----------|---------|:--------:|----------------------------------------|
| port | | Yes | The serial port of the Weather station |
| refresh | 10000 | No | The refresh interval (in milliseconds) |
Connection type may be serial (port given in property 'port') or ip (hostName property).

| Property | Default | Required | Description |
|----------------------|----------|-----------------------------|-----------------------------------------------------------------------|
| port | | Yes if serial communication | The serial port of the Weather station |
| hostName | | Yes if ip communication | HostName of the Weather station |
| refresh | 10000 | No | The refresh interval (in milliseconds) |
| readResponseWaitTime | 200|1000 | No | Wait time for response (in milliseconds) 200 if serial - 1000 if ip |



## Item Configuration
Expand Down
Expand Up @@ -40,6 +40,16 @@ public enum DavisCommandType {
}
},

HILOWS {
{
command = "HILOWS";
responsetype = Constants.RESPONSE_TYPE_ACK;
responselimitertype = Constants.RESPONSE_LIMITER_TYPE_FIXED_SIZE;
responselength = 438;
crcchecktype = Constants.CRC_CHECK_TYPE_VAR1;
}
},

GETTIME {
{
command = "GETTIME";
Expand Down Expand Up @@ -155,7 +165,7 @@ public int getCrcchecktype() {

/**
* Get a specific command.
*
*
* @param command
* command key
* @return DavisCommandType identified by command
Expand Down